getstores修改

This commit is contained in:
苏尹岚
2020-07-24 15:13:36 +08:00
parent b88a9c0032
commit f2bc43f18b

View File

@@ -384,9 +384,11 @@ func getStoresSql(ctx *jxcontext.Context, keyword string, params map[string]inte
if err = utils.UnmarshalUseNumber([]byte(params["marketManPhones"].(string)), &phones); err != nil { if err = utils.UnmarshalUseNumber([]byte(params["marketManPhones"].(string)), &phones); err != nil {
return "", nil, "", nil, err return "", nil, "", nil, err
} }
if len(phones) > 0 {
sqlWhere += " AND t1.market_man_phone IN (" + dao.GenQuestionMarks(len(phones)) + ")" sqlWhere += " AND t1.market_man_phone IN (" + dao.GenQuestionMarks(len(phones)) + ")"
sqlWhereParams = append(sqlWhereParams, phones) sqlWhereParams = append(sqlWhereParams, phones)
} }
}
if params["storeLevels"] != nil { if params["storeLevels"] != nil {
var storeLevels []string var storeLevels []string
if err = jxutils.Strings2Objs(utils.Interface2String(params["storeLevels"]), &storeLevels); err != nil { if err = jxutils.Strings2Objs(utils.Interface2String(params["storeLevels"]), &storeLevels); err != nil {