This commit is contained in:
邹宗楠
2022-07-05 10:39:44 +08:00
parent 030bc04fa5
commit 4b196bf5be
4 changed files with 16 additions and 11 deletions

View File

@@ -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
}