aa
This commit is contained in:
@@ -351,7 +351,6 @@ func GetUserStoresResultMap(userID string) (resultMap map[int]int, err error) {
|
||||
if cityCodeMap[0] != 0 {
|
||||
stores, err = dao.GetStoreList(db, nil, nil, nil, nil, nil, "")
|
||||
} else {
|
||||
fmt.Println("22222222222222222222222222222222222222222", cityCodes, storeIDs)
|
||||
stores, err = dao.GetStoreList(db, storeIDs, cityCodes, nil, nil, nil, "")
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -343,8 +343,10 @@ func getStoresSql(ctx *jxcontext.Context, keyword string, params map[string]inte
|
||||
sqlWhereParams = append(sqlWhereParams, params["startStoreID"])
|
||||
}
|
||||
if params["brandID"] != nil {
|
||||
sqlWhere += " AND t1.brand_id = ?"
|
||||
sqlWhereParams = append(sqlWhereParams, params["brandID"])
|
||||
if utils.MustInterface2Int64(params["brandID"]) != 0 {
|
||||
sqlWhere += " AND t1.brand_id = ?"
|
||||
sqlWhereParams = append(sqlWhereParams, params["brandID"])
|
||||
}
|
||||
}
|
||||
if params["name"] != nil {
|
||||
sqlWhere += " AND t1.name LIKE ?"
|
||||
|
||||
Reference in New Issue
Block a user