From 1160b99f7d7dfc9522144fed29e60009ead28af5 Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期四, 08 十二月 2022 11:32:22 +0800
Subject: [PATCH] fix: 案件关联店铺id 预警研判确定

---
 ycl-platform/src/main/resources/mapper/caseHandler/ViolationsMapper.xml |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ycl-platform/src/main/resources/mapper/caseHandler/ViolationsMapper.xml b/ycl-platform/src/main/resources/mapper/caseHandler/ViolationsMapper.xml
index ca15c09..eea6a07 100644
--- a/ycl-platform/src/main/resources/mapper/caseHandler/ViolationsMapper.xml
+++ b/ycl-platform/src/main/resources/mapper/caseHandler/ViolationsMapper.xml
@@ -3,14 +3,14 @@
 <mapper namespace="com.ycl.mapper.caseHandler.ViolationsMapper">
 
     <!-- 閫氱敤鏌ヨ鏄犲皠缁撴灉 -->
-    <resultMap id="BaseResultMap" type="com.ycl.entity.caseHandler.Violations">
+    <resultMap id="BaseResultMap" type="com.ycl.entity.caseHandler.ViolationsVO">
         <id column="id" property="id" />
         <result column="category_id" property="categoryId" />
         <result column="type_id" property="typeId" />
         <result column="grade_id" property="gradeId" />
         <result column="action_cause" property="actionCause" />
         <result column="link_shop" property="linkShop" />
-        <result column="shop_name" property="shopName" />
+        <result column="store_name" property="shopName" />
         <result column="car_number" property="carNumber" />
         <result column="description" property="description" />
         <result column="informant" property="informant" />
@@ -29,6 +29,7 @@
     <select id="selectCondMap" parameterType="map" resultMap="CondMapResultMap">
         SELECT
             uv.*,
+            t4.store_name ,
             udd.name category_text,
             udd2.name type_text,
             udd3.name grade_text
@@ -37,6 +38,7 @@
                 LEFT JOIN ums_data_dictionary udd on uv.category_id = udd.id
                 LEFT JOIN ums_data_dictionary udd2 on uv.type_id = udd2.id
                 LEFT JOIN ums_data_dictionary udd3 on uv.grade_id = udd3.id
+                LEFT JOIN ums_store_store_info t4 on  t4.id=uv.shop_name
         WHERE
             uv.`id` =  #{id}
     </select>

--
Gitblit v1.8.0