From 8ba5c432338b400eae32180d6ece584601d7947b Mon Sep 17 00:00:00 2001 From: wl <173@qq.com> Date: 星期五, 04 十一月 2022 09:55:06 +0800 Subject: [PATCH] 修改bug --- 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..ca15c09 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 + LEFT JOIN ums_data_dictionary udd2 on uv.type_id = udd2.id + LEFT JOIN ums_data_dictionary udd3 on uv.grade_id = udd3.id + WHERE + uv.`id` = #{id} + </select> </mapper> -- Gitblit v1.8.0