1、优化查询零售订单支付状态接口,新增pay_init状态查询;

This commit is contained in:
chenlin 2024-11-29 09:42:27 +08:00
parent c1729db5f4
commit 7610e1d8a6

View File

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