getstroes增加字段

This commit is contained in:
苏尹岚
2020-05-13 13:55:16 +08:00
parent a3beb2ceaf
commit 39b1583f1f
2 changed files with 5 additions and 0 deletions

View File

@@ -398,6 +398,10 @@ func getStoresSql(ctx *jxcontext.Context, keyword string, params map[string]inte
sqlWhere += " AND t1.address LIKE ?"
sqlWhereParams = append(sqlWhereParams, "%"+params["address"].(string)+"%")
}
if params["marketManPhone"] != nil {
sqlWhere += " AND t1.marketManPhone = ?"
sqlWhereParams = append(sqlWhereParams, params["marketManPhone"].(string))
}
if params["tel"] != nil {
sqlWhere += " AND (t1.tel1 LIKE ? OR t1.tel2 LIKE ?)"
sqlWhereParams = append(sqlWhereParams, "%"+params["tel"].(string)+"%")

View File

@@ -39,6 +39,7 @@ type StoreController struct {
// @Param orderTimeTo query string false "订单创建结束时间"
// @Param orderCountFrom query int false "订单量起始"
// @Param orderCountTo query int false "订单量结束"
// @Param marketManPhone query string false "市场负责人电话"
// @Param briefLevel query int false "返回信息精简模式"
// @Param offset query int false "门店列表起始序号以0开始缺省为0"
// @Param pageSize query int false "门店列表页大小缺省为50-1表示全部"