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