门店等级

This commit is contained in:
苏尹岚
2020-06-11 13:56:03 +08:00
parent 14c1ee13a0
commit d624b5a06f
2 changed files with 12 additions and 0 deletions

View File

@@ -370,6 +370,17 @@ func getStoresSql(ctx *jxcontext.Context, keyword string, params map[string]inte
}
}
if params["storeLevels"] != nil {
var storeLevels []string
if err = jxutils.Strings2Objs(utils.Interface2String(params["storeLevels"]), &storeLevels); err != nil {
return "", nil, "", nil, err
}
if len(storeLevels) > 0 {
sqlWhere += " AND t1.store_level IN (" + dao.GenQuestionMarks(len(storeLevels)) + ")"
sqlWhereParams = append(sqlWhereParams, storeLevels)
}
}
sql = sqlFrom + sqlWhere
sqlParams = append(sqlParams, sqlFromParams...)
sqlParams = append(sqlParams, sqlWhereParams...)

View File

@@ -42,6 +42,7 @@ type StoreController struct {
// @Param orderCountTo query int false "订单量结束"
// @Param marketManPhone query string false "市场负责人电话"
// @Param briefLevel query int false "返回信息精简模式"
// @Param storeLevels query string false "门店等级"
// @Param offset query int false "门店列表起始序号以0开始缺省为0"
// @Param pageSize query int false "门店列表页大小缺省为50-1表示全部"
// @Success 200 {object} controllers.CallResult