diff --git a/business/model/dao/store.go b/business/model/dao/store.go index 9ba5cbc09..894cd2f85 100644 --- a/business/model/dao/store.go +++ b/business/model/dao/store.go @@ -1527,7 +1527,7 @@ func GetBrandBill2(db *DaoDB, brandID int, vendorOrderID string, billType, feeTy brandID2 := []int{131, 132, 137, 139} sql := ` select a.vendor_order_id order_id from brand_bill a - inner JOIN order_status os on a.vendor_order_id = os.ref_vendor_order_id and os.status = and os.vendor_id in IN (` + GenQuestionMarks(len(vendor)) + `)` + ` + inner JOIN order_status os on a.vendor_order_id = os.ref_vendor_order_id and os.status = ? and os.vendor_id IN (` + GenQuestionMarks(len(vendor)) + `)` + ` WHERE a.brand_id in (` + GenQuestionMarks(len(brandID2)) + `)` + ` and a.bill_type <> ? and os.remark <> ? and os.status <> ? GROUP BY a.vendor_order_id ` var data []*RefundOrder