diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 54efb1534..91954233d 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -370,14 +370,14 @@ func getStoresSql(ctx *jxcontext.Context, keyword string, params map[string]inte jdPhone := params["jdPhone"].(string) sqlWhere += " AND t1.operator_phone = ?" if jdPhone == "0" { - jdPhone = "''" + jdPhone = "" } sqlWhereParams = append(sqlWhereParams, jdPhone) } if params["mtPhone"] != nil { mtPhone := params["mtPhone"].(string) if mtPhone == "0" { - mtPhone = "''" + mtPhone = "" } sqlWhere += " AND t1.operator_phone2 = ?" sqlWhereParams = append(sqlWhereParams, mtPhone) @@ -385,7 +385,7 @@ func getStoresSql(ctx *jxcontext.Context, keyword string, params map[string]inte if params["ebaiPhone"] != nil { ebaiPhone := params["ebaiPhone"].(string) if ebaiPhone == "0" { - ebaiPhone = "''" + ebaiPhone = "" } sqlWhere += " AND t1.operator_phone3 = ?" sqlWhereParams = append(sqlWhereParams, ebaiPhone)