This commit is contained in:
苏尹岚
2021-01-05 17:44:19 +08:00
parent dd9306927d
commit 756b39711d
2 changed files with 5 additions and 0 deletions

View File

@@ -338,6 +338,10 @@ func getStoresSql(ctx *jxcontext.Context, keyword string, params map[string]inte
sqlWhere += " AND t1.id >= ?"
sqlWhereParams = append(sqlWhereParams, params["startStoreID"])
}
if params["brandID"] != nil {
sqlWhere += " AND t1.brand_id = ?"
sqlWhereParams = append(sqlWhereParams, params["brandID"])
}
if params["name"] != nil {
sqlWhere += " AND t1.name LIKE ?"
sqlWhereParams = append(sqlWhereParams, "%"+params["name"].(string)+"%")

View File

@@ -44,6 +44,7 @@ type StoreController struct {
// @Param marketManPhone query string false "市场负责人电话"
// @Param briefLevel query int false "返回信息精简模式"
// @Param storeLevels query string false "门店等级"
// @Param brandID query int false "品牌ID"
// @Param marketManPhones query string false "市场负责人电话们"
// @Param earningType query int false "结算方式1为报价2为扣点"
// @Param offset query int false "门店列表起始序号以0开始缺省为0"