From 75c3c13b083e2d3ffa0aefdf5e1c117697a032e7 Mon Sep 17 00:00:00 2001
From: mg <maokecheng@163.com>
Date: 星期五, 14 十月 2022 09:01:18 +0800
Subject: [PATCH] 处理流程问题。
---
ycl-platform/src/main/resources/mapper/caseHandler/ViolationsMapper.xml | 21 +++++++++++++++++++--
1 files changed, 19 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 3fb21d4..bc3d42d 100644
--- a/ycl-platform/src/main/resources/mapper/caseHandler/ViolationsMapper.xml
+++ b/ycl-platform/src/main/resources/mapper/caseHandler/ViolationsMapper.xml
@@ -17,10 +17,27 @@
<result column="informant_phone_code" property="informantPhoneCode" />
<result column="informant_id_card" property="informantIdCard" />
</resultMap>
-
+ <resultMap type="com.ycl.entity.caseHandler.Violations" id="CondMapResultMap" extends="BaseResultMap">
+ <result column="category_text" property="categoryText" />
+ <result column="type_text" property="typeText" />
+ <result column="grade_text" property="gradeText" />
+ </resultMap>
<!-- 閫氱敤鏌ヨ缁撴灉鍒� -->
<sql id="Base_Column_List">
id, category_id, type_id, grade_id, action_cause, link_shop, shop_name, car_number, description, informant, informant_phone_code, informant_id_card
</sql>
-
+ <select id="selectCondMap" parameterType="map" resultMap="CondMapResultMap">
+ SELECT
+ uv.*,
+ udd.name category_text,
+ udd2.name type_text,
+ udd3.name grade_text
+ FROM
+ ums_violations uv
+ LEFT JOIN ums_data_dictionary udd on uv.category_id = udd.id and udd.type_code = '01'
+ LEFT JOIN ums_data_dictionary udd2 on uv.type_id = udd2.id and udd2.type_code = '01'
+ LEFT JOIN ums_data_dictionary udd3 on uv.grade_id = udd3.id and udd3.type_code = '02'
+ WHERE
+ uv.`id` = #{id}
+ </select>
</mapper>
--
Gitblit v1.8.0