From 6a0e97f55567d119d242b7e8bad19f96c54a2bc6 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Thu, 3 Jun 2021 18:11:27 +0800 Subject: [PATCH] aa --- business/jxstore/cms/store.go | 12 ++++++++++++ controllers/cms_store.go | 3 +++ 2 files changed, 15 insertions(+) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index ad59d1278..52ede6421 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -380,6 +380,18 @@ func getStoresSql(ctx *jxcontext.Context, keyword string, params map[string]inte sqlWhere += " AND t1.market_man_phone = ?" sqlWhereParams = append(sqlWhereParams, params["marketManPhone"].(string)) } + if params["jdPhone"] != nil { + sqlWhere += " AND t1.operator_phone = ?" + sqlWhereParams = append(sqlWhereParams, params["jdPhone"].(string)) + } + if params["mtPhone"] != nil { + sqlWhere += " AND t1.operator_phone2 = ?" + sqlWhereParams = append(sqlWhereParams, params["mtPhone"].(string)) + } + if params["ebaiPhone"] != nil { + sqlWhere += " AND t1.operator_phone3 = ?" + sqlWhereParams = append(sqlWhereParams, params["ebaiPhone"].(string)) + } if params["tel"] != nil { sqlWhere += " AND (t1.tel1 LIKE ? OR t1.tel2 LIKE ?)" sqlWhereParams = append(sqlWhereParams, "%"+params["tel"].(string)+"%") diff --git a/controllers/cms_store.go b/controllers/cms_store.go index 9b05cf9f3..dea3da936 100644 --- a/controllers/cms_store.go +++ b/controllers/cms_store.go @@ -46,6 +46,9 @@ type StoreController struct { // @Param storeLevels query string false "门店等级" // @Param brandID query int false "品牌ID" // @Param marketManPhones query string false "市场负责人电话们" +// @Param jdPhone query string false "京东运营负责人电话" +// @Param mtPhone query string false "美团运营负责人电话" +// @Param ebaiPhone query string false "饿百运营负责人电话" // @Param earningType query int false "结算方式(1为报价,2为扣点)" // @Param isBussinessStatus query bool false "查不查门店上下线状态" // @Param offset query int false "门店列表起始序号(以0开始,缺省为0)"