소스 검색

order purchase limit logic edit

abiao 5 년 전
부모
커밋
f4ce502c37
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      go/gopath/src/fohow.com/apps/models/order_model/order.go

+ 1 - 0
go/gopath/src/fohow.com/apps/models/order_model/order.go

@@ -569,6 +569,7 @@ func GetOrderCountByPIdAndWxUId(pId, wxUId int64) int64 {
 			order_details
 		WHERE
 			order_id in (select order_id from orders where wx_user_id = %d and status in ('processing','complete','dispatch','unconfirmed'))
+		and
 			product_id = ?
 	`
 	sql = fmt.Sprintf(sql, wxUId)