This commit is contained in:
suyl
2021-06-03 18:11:27 +08:00
parent e0bba30696
commit 6a0e97f555
2 changed files with 15 additions and 0 deletions

View File

@@ -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)+"%")