This commit is contained in:
suyl
2021-10-08 13:53:45 +08:00
parent 2985fb7f4a
commit 3c6dffcfaf

View File

@@ -367,16 +367,28 @@ func getStoresSql(ctx *jxcontext.Context, keyword string, params map[string]inte
sqlWhereParams = append(sqlWhereParams, params["marketManPhone"].(string))
}
if params["jdPhone"] != nil {
jdPhone := params["jdPhone"].(string)
sqlWhere += " AND t1.operator_phone = ?"
sqlWhereParams = append(sqlWhereParams, params["jdPhone"].(string))
if jdPhone == "0" {
jdPhone = "''"
}
sqlWhereParams = append(sqlWhereParams, jdPhone)
}
if params["mtPhone"] != nil {
mtPhone := params["mtPhone"].(string)
if mtPhone == "0" {
mtPhone = "''"
}
sqlWhere += " AND t1.operator_phone2 = ?"
sqlWhereParams = append(sqlWhereParams, params["mtPhone"].(string))
sqlWhereParams = append(sqlWhereParams, mtPhone)
}
if params["ebaiPhone"] != nil {
ebaiPhone := params["ebaiPhone"].(string)
if ebaiPhone == "0" {
ebaiPhone = "''"
}
sqlWhere += " AND t1.operator_phone3 = ?"
sqlWhereParams = append(sqlWhereParams, params["ebaiPhone"].(string))
sqlWhereParams = append(sqlWhereParams, ebaiPhone)
}
if params["tel"] != nil {
sqlWhere += " AND (t1.tel1 LIKE ? OR t1.tel2 LIKE ?)"