getstroes增加字段
This commit is contained in:
@@ -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)+"%")
|
||||
|
||||
Reference in New Issue
Block a user