- use RefreshMissingDadaStores in AddStoreVendorMap
This commit is contained in:
@@ -116,7 +116,7 @@ func GetMissingDadaStores(db *DaoDB, storeID int) (storeList []*StoreDetail2, er
|
||||
JOIN place city ON city.code = t1.city_code
|
||||
JOIN place district ON district.code = t1.district_code
|
||||
LEFT JOIN store_courier_map t3 ON t3.store_id = t1.id AND t3.vendor_id = ? AND t3.deleted_at = ?
|
||||
WHERE t1.deleted_at = ? AND t1.status <> ? AND t3.id IS NULL
|
||||
WHERE t1.deleted_at = ? AND t3.id IS NULL
|
||||
`
|
||||
sqlParams := []interface{}{
|
||||
model.VendorIDJD,
|
||||
@@ -124,7 +124,6 @@ func GetMissingDadaStores(db *DaoDB, storeID int) (storeList []*StoreDetail2, er
|
||||
model.VendorIDDada,
|
||||
utils.DefaultTimeValue,
|
||||
utils.DefaultTimeValue,
|
||||
model.StoreStatusDisabled,
|
||||
}
|
||||
if storeID != 0 {
|
||||
sql += " AND t1.id = ?"
|
||||
|
||||
Reference in New Issue
Block a user