aa
This commit is contained in:
@@ -1262,11 +1262,9 @@ func GetStoreManageStateSimple(db *DaoDB, storeIDs, brandIDs []int, vendorID int
|
|||||||
SELECT a.*
|
SELECT a.*
|
||||||
FROM store_manage_state a
|
FROM store_manage_state a
|
||||||
LEFT JOIN store b ON b.id = a.store_id AND b.deleted_at = ?
|
LEFT JOIN store b ON b.id = a.store_id AND b.deleted_at = ?
|
||||||
WHERE a.vendor_status <> ?
|
|
||||||
`
|
`
|
||||||
sqlParams := []interface{}{
|
sqlParams := []interface{}{
|
||||||
utils.DefaultTimeValue,
|
utils.DefaultTimeValue,
|
||||||
model.StoreStatusDisabled,
|
|
||||||
}
|
}
|
||||||
if len(storeIDs) > 0 {
|
if len(storeIDs) > 0 {
|
||||||
sql += " AND a.store_id IN (" + GenQuestionMarks(len(storeIDs)) + ")"
|
sql += " AND a.store_id IN (" + GenQuestionMarks(len(storeIDs)) + ")"
|
||||||
|
|||||||
Reference in New Issue
Block a user