Browse Source

wip:回款优化

wkyuer 7 tháng trước cách đây
mục cha
commit
19b3181261
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/jfw/modules/subscribepay/src/entity/returnMoney.go

+ 1 - 1
src/jfw/modules/subscribepay/src/entity/returnMoney.go

@@ -61,7 +61,7 @@ func (m *returnMoneyStruct) PayCallBack(param *CallBackParam) bool {
 
 // CloseOrder 关闭其他未支付的订单
 func (m *returnMoneyStruct) CloseOrder(orderOrder string) {
-	res := util.Mysql.Query("SELECT p.pay_way,p.out_trade_no FROM return_money_online r inner join return_money_online_pay p on (r.id = p.return_id and p.status=1)  WHERE p.status=0 and r.order_code=? and r.expire_time>?", orderOrder, time.Now().Format(time.DateTime))
+	res := util.Mysql.Query("SELECT p.pay_way,p.out_trade_no FROM return_money_online r inner join return_money_online_pay p on (r.id = p.return_id and p.status=0)  WHERE r.order_code=? and r.expire_time>?", orderOrder, time.Now().Format(time.DateTime))
 	if res != nil && len(*res) > 0 {
 		for _, m := range *res {
 			var (