소스 검색

fix:对公转账校验

duxin 1 년 전
부모
커밋
11ab1e3ba5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/order/orderService.go

+ 1 - 1
src/order/orderService.go

@@ -33,7 +33,7 @@ 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 or (pay_way=='transferAccounts' and order_status != 1)) and " + condition
+	q := "select count(id) from dataexport_order where user_phone=? and (audit_status != 3 or (pay_way='transferAccounts' and order_status = 0)) and " + condition
 	rs := config.JysqlDB.CountBySql(q, phone)
 	return rs > 0
 }