Pārlūkot izejas kodu

fix:对公转账校验

duxin 1 gadu atpakaļ
vecāks
revīzija
49fbc01231
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/order/orderService.go

+ 2 - 2
src/order/orderService.go

@@ -32,8 +32,8 @@ func ExistProcessOrder(phone string, productType string, orderCode string) bool
 	}
 	if orderCode != "" {
 		condition += fmt.Sprintf(" and order_code!='%s'", orderCode)
-	}
-	q := "select count(id) from dataexport_order where user_phone=? and audit_status!=3 and " + condition
+	} //对公转账
+	q := "select count(id) from dataexport_order where user_phone=? and (audit_status != 3 or (pay_way=='transferAccounts' and order_status != 1)) and " + condition
 	rs := config.JysqlDB.CountBySql(q, phone)
 	return rs > 0
 }