pay
This commit is contained in:
@@ -152,19 +152,15 @@ type MixPayDetail struct {
|
|||||||
func GetMixPayDetail(orderID string) (details *MixPayDetail, err error) {
|
func GetMixPayDetail(orderID string) (details *MixPayDetail, err error) {
|
||||||
//var info []*MixPayDetail
|
//var info []*MixPayDetail
|
||||||
info := make([]*MixPayDetail, 0)
|
info := make([]*MixPayDetail, 0)
|
||||||
sqlParams := []interface{}{}
|
var sqlParams []interface{}
|
||||||
sql := ""
|
sql := ""
|
||||||
if orderID != "" {
|
if orderID != "" {
|
||||||
sql += "SELECT order_id,balance_price,total_price,wx_price,status FROM mix_pay WHERE order_id = ?"
|
sql += "SELECT order_id,balance_price,total_price,wx_price,status FROM mix_pay WHERE order_id = ?"
|
||||||
sqlParams = append(sqlParams, orderID)
|
sqlParams = append(sqlParams, orderID)
|
||||||
}
|
}
|
||||||
err = GetRow(GetDB(), &info, sql, sqlParams)
|
err = GetRows(GetDB(), &info, sql, sqlParams)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
details = &MixPayDetail{
|
details = &MixPayDetail{
|
||||||
ID: info[0].ID,
|
|
||||||
LastOperator: info[0].LastOperator,
|
|
||||||
CreatedAt: info[0].CreatedAt,
|
|
||||||
UpdateAt: info[0].UpdateAt,
|
|
||||||
OrderID: info[0].OrderID,
|
OrderID: info[0].OrderID,
|
||||||
BalancePrice: info[0].BalancePrice,
|
BalancePrice: info[0].BalancePrice,
|
||||||
TotalPrice: info[0].TotalPrice,
|
TotalPrice: info[0].TotalPrice,
|
||||||
|
|||||||
Reference in New Issue
Block a user