This commit is contained in:
suyl
2021-08-30 17:10:46 +08:00
parent 6e5ee2c25a
commit 7a706a316e

View File

@@ -796,11 +796,9 @@ func OrderNotifyReport(ctx *jxcontext.Context, storeIDs, brandIDs []int, vendorI
LEFT JOIN store b ON IF(a.store_id = 0 ,a.jx_store_id, a.store_id) = b.id
LEFT JOIN user c ON c.mobile = b.market_man_phone
LEFT JOIN user d ON d.mobile = b.operator_phone
WHERE a.status = ? AND a.notify_type <> ?
WHERE a.notify_type <> ?
`
sqlParams := []interface{}{
model.OrderStatusFinished, 0,
}
sqlParams := []interface{}{0}
if len(storeIDs) > 0 {
sql += ` AND IF(a.jx_store_id != 0, a.jx_store_id, a.store_id) IN(` + dao.GenQuestionMarks(len(storeIDs)) + `)`
sqlParams = append(sqlParams, storeIDs)