1
This commit is contained in:
@@ -268,14 +268,16 @@ func QueryOrderDetail(typeCode int, orderNo string) (*bida.OrderDetail, error) {
|
||||
}
|
||||
|
||||
// 本地查询获取真是支付快递费用
|
||||
//sql := `SELECT * FROM user_vendor_order a WHERE a.other_way_bill = ? and a.type = ? `
|
||||
//data := &model.UserVendorOrder{}
|
||||
//param := []interface{}{orderNo, typeCode}
|
||||
//if err := dao.GetRow(dao.GetDB(), data, sql, param); err != nil {
|
||||
// return nil, err
|
||||
//}
|
||||
sql := `SELECT * FROM user_vendor_order a WHERE a.other_way_bill = ? and a.type = ? `
|
||||
data := &model.UserVendorOrder{}
|
||||
param := []interface{}{orderNo, typeCode}
|
||||
if err := dao.GetRow(dao.GetDB(), data, sql, param); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
addFee := int(detail.PayFee*100) + detail.Weight*MarkupAmount
|
||||
detail.PayFee = utils.Int2Float64(addFee) / float64(100)
|
||||
detail.Images = data.Img
|
||||
return detail, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user