From 7a7d324af48e2134314c7b44b72e4e7d1fccf4f9 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期一, 24 十月 2022 17:30:06 +0800
Subject: [PATCH] bug修改

---
 ycl-platform/src/main/resources/mapper/caseHandler/BaseCaseMapper.xml |   12 ++++++------
 ycl-platform/src/main/resources/mapper/store/UmsStoreInfoMapper.xml   |    2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/ycl-platform/src/main/resources/mapper/caseHandler/BaseCaseMapper.xml b/ycl-platform/src/main/resources/mapper/caseHandler/BaseCaseMapper.xml
index 924fc2e..4ab84c8 100644
--- a/ycl-platform/src/main/resources/mapper/caseHandler/BaseCaseMapper.xml
+++ b/ycl-platform/src/main/resources/mapper/caseHandler/BaseCaseMapper.xml
@@ -59,9 +59,9 @@
         FROM
         `ums_base_case` AS ubc
         JOIN ums_violations AS uv ON ubc.id = uv.id
-        JOIN ums_data_dictionary AS t3 ON uv.category_id = t3.id
-        JOIN ums_data_dictionary AS t4 ON uv.type_id = t4.id
-        JOIN ums_sccg_region t5 ON ubc.street_id = t5.id
+        LEFT JOIN ums_data_dictionary AS t3 ON uv.category_id = t3.id
+        LEFT JOIN ums_data_dictionary AS t4 ON uv.type_id = t4.id
+        LEFT JOIN ums_sccg_region t5 ON ubc.street_id = t5.id
         <where>
             <if test="state!=null">
                 ubc.state=#{state}
@@ -91,9 +91,9 @@
         uib.materials
         FROM
         `ums_base_case` AS ubc
-        JOIN ums_illegal_building AS uib ON ubc.id = uib.base_case_id
-        JOIN ums_data_dictionary AS t1 ON uib.category_id = t1.id
-        JOIN ums_sccg_region t2 ON ubc.community_id = t2.id
+        left JOIN ums_illegal_building AS uib ON ubc.id = uib.base_case_id
+        left JOIN ums_data_dictionary AS t1 ON uib.category_id = t1.id
+        left JOIN ums_sccg_region t2 ON ubc.community_id = t2.id
         <where>
             <if test="state!=null">
                 ubc.state=#{state}
diff --git a/ycl-platform/src/main/resources/mapper/store/UmsStoreInfoMapper.xml b/ycl-platform/src/main/resources/mapper/store/UmsStoreInfoMapper.xml
index 074510f..2355f19 100644
--- a/ycl-platform/src/main/resources/mapper/store/UmsStoreInfoMapper.xml
+++ b/ycl-platform/src/main/resources/mapper/store/UmsStoreInfoMapper.xml
@@ -20,7 +20,7 @@
             t2.`name`
         FROM
             ums_store_store_info t1
-                JOIN ums_data_dictionary t2 ON t1.type = t2.id
+               left JOIN ums_data_dictionary t2 ON t1.type = t2.id
         <where>
             <if test="keyword!=null and keyword!=''">
                 t1.store_name LIKE  CONCAT('%', #{keyword}, '%')

--
Gitblit v1.8.0