From 1e43db19088307b843ba865dcbb47b9809e55400 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?=
<8605635+zhang3064194730@user.noreply.gitee.com>
Date: Tue, 11 Mar 2025 11:02:30 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E4=B8=BB=E9=A1=B5?=
=?UTF-8?q?=E5=95=86=E5=93=81=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/main/resources/mapper/ProductMapper.xml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cash-service/product-service/src/main/resources/mapper/ProductMapper.xml b/cash-service/product-service/src/main/resources/mapper/ProductMapper.xml
index cb0f702c..15a81f42 100644
--- a/cash-service/product-service/src/main/resources/mapper/ProductMapper.xml
+++ b/cash-service/product-service/src/main/resources/mapper/ProductMapper.xml
@@ -171,7 +171,7 @@
from tb_prod_sku as a
left join tb_product c on c.id=a.product_id
left join tb_shop_info as b on a.shop_id=b.id
- where c.id is not null and c.group_category_id is not null
+ where c.id is not null and c.group_category_id is not null and c.group_category_id != '[]'
and (b.cities like concat('%', #{address}, '%') or b.districts like concat('%', #{address}, '%'))
@@ -180,7 +180,7 @@
and c.name like concat('%', #{name}, '%')
- and c.group_category_id = #{classify}
+ and c.group_category_id like concat('%', #{classify}, '%')
and ST_Distance_Sphere(POINT(b.lng, b.lat), POINT(#{lng}, #{lat})) <= #{distanceType}
@@ -213,7 +213,7 @@
from tb_prod_sku as a
left join tb_product c on c.id=a.product_id
left join tb_shop_info as b on a.shop_id=b.id
- where c.group_category_id is not null and c.create_time >= date_format(now(), '%Y-%m-%d 00:00:00')
+ where c.group_category_id is not null and c.group_category_id != '[]' and c.create_time >= date_format(now(), '%Y-%m-%d 00:00:00')
update tb_product