diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 53864b610..e050e2f75 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -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 ?)"