a
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user