- 修复GetStores中没有限制new_config未删除的bug
This commit is contained in:
@@ -180,7 +180,7 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa
|
||||
CONCAT('[', GROUP_CONCAT(DISTINCT CONCAT('{"vendorStoreID":"', m2.vendor_store_id, '", "vendorID":', m2.vendor_id,
|
||||
', "status":', m2.status, '}')), ']') courier_map_str
|
||||
FROM store t1
|
||||
LEFT JOIN new_config bank ON bank.type = ? AND bank.key = t1.payee_bank_code
|
||||
LEFT JOIN new_config bank ON bank.deleted_at = ? AND bank.type = ? AND bank.key = t1.payee_bank_code
|
||||
LEFT JOIN place city ON t1.city_code = city.code AND city.level = 2
|
||||
LEFT JOIN place district ON t1.district_code = district.code AND district.level = 3
|
||||
LEFT JOIN store_map m1 ON t1.id = m1.store_id AND m1.deleted_at = ?
|
||||
@@ -189,6 +189,7 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa
|
||||
LEFT JOIN store_courier_map m2 ON t1.id = m2.store_id AND m2.deleted_at = ?
|
||||
`
|
||||
sqlParams := []interface{}{
|
||||
utils.DefaultTimeValue,
|
||||
model.ConfigTypeBank,
|
||||
utils.DefaultTimeValue,
|
||||
utils.DefaultTimeValue,
|
||||
|
||||
@@ -122,7 +122,7 @@ func GetActStoreSkuVendorList(db *DaoDB, actID int, vendorIDs, storeIDs, skuIDs
|
||||
)
|
||||
if keyword != "" {
|
||||
keywordLike := "%" + keyword + "%"
|
||||
sql += " AND (t7.namke LIKE ? OR t6.name LIKE ?"
|
||||
sql += " AND (t7.name LIKE ? OR t6.name LIKE ?"
|
||||
sqlParams = append(sqlParams, keywordLike, keywordLike)
|
||||
if intKeyword := int(utils.Str2Int64WithDefault(keyword, 0)); intKeyword > 0 {
|
||||
sql += " OR t1.sku_id = ? OR t1.store_id = ?"
|
||||
|
||||
Reference in New Issue
Block a user