1、优化查询零售订单支付状态接口,新增pay_init状态查询;
This commit is contained in:
parent
c1729db5f4
commit
7610e1d8a6
|
@ -2516,7 +2516,7 @@ func QueryErpOrderPayStatus(billSn string) (*ErpOrderPayResp, error) {
|
|||
|
||||
// 查询待支付订单
|
||||
var orderRecordInfo ErpOrderRecord
|
||||
err = orm.Eloquent.Table("erp_order_record").Where("bill_sn = ? and status in (?)", billSn, []string{Paying, PayOk}).
|
||||
err = orm.Eloquent.Table("erp_order_record").Where("bill_sn = ? and status in (?)", billSn, []string{PayInit, Paying, PayOk}).
|
||||
Find(&orderRecordInfo).Error
|
||||
if err != nil {
|
||||
logger.Error("未查询到订单:", logger.Field("err", err))
|
||||
|
|
Loading…
Reference in New Issue
Block a user