diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index bfcbd87b6..c01c4157b 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -384,8 +384,10 @@ func getStoresSql(ctx *jxcontext.Context, keyword string, params map[string]inte if err = utils.UnmarshalUseNumber([]byte(params["marketManPhones"].(string)), &phones); err != nil { return "", nil, "", nil, err } - sqlWhere += " AND t1.market_man_phone IN (" + dao.GenQuestionMarks(len(phones)) + ")" - sqlWhereParams = append(sqlWhereParams, phones) + if len(phones) > 0 { + sqlWhere += " AND t1.market_man_phone IN (" + dao.GenQuestionMarks(len(phones)) + ")" + sqlWhereParams = append(sqlWhereParams, phones) + } } if params["storeLevels"] != nil { var storeLevels []string