From 9969bea2a8c1eab64c12a51a2d24d65e5b6c0dd0 Mon Sep 17 00:00:00 2001 From: wl <173@qq.com> Date: 星期一, 24 十月 2022 18:12:41 +0800 Subject: [PATCH] 日志导出乱码 日志查询导出 代码重构 --- ycl-platform/src/main/resources/mapper/caseHandler/PartyInfoMapper.xml | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/ycl-platform/src/main/resources/mapper/caseHandler/PartyInfoMapper.xml b/ycl-platform/src/main/resources/mapper/caseHandler/PartyInfoMapper.xml index 5b2c634..ad8472e 100644 --- a/ycl-platform/src/main/resources/mapper/caseHandler/PartyInfoMapper.xml +++ b/ycl-platform/src/main/resources/mapper/caseHandler/PartyInfoMapper.xml @@ -19,10 +19,30 @@ <result column="create_user" property="createUser" /> <result column="create_time" property="createTime" /> </resultMap> + <resultMap type="com.ycl.entity.caseHandler.PartyInfo" id="CondMapResultMap" extends="BaseResultMap"> + <result column="certificate_type_text" property="certificateTypeText" /> + <result column="education_degree_text" property="educationDegreeText" /> + <result column="nation_text" property="nationText" /> + </resultMap> <!-- 閫氱敤鏌ヨ缁撴灉鍒� --> <sql id="Base_Column_List"> id, name, phone_code, certificate_type, certificate_code, education_degree, career, work, nation, native_place, live_address, register_address, create_user, create_time </sql> + <select id="selectCondMap" parameterType="map" resultMap="CondMapResultMap"> + SELECT + upi.*, + udd.name certificate_type_text, + udd2.name education_degree_text, + udd3.name nation_text + FROM + ums_party_info upi + LEFT JOIN ums_data_dictionary udd on upi.certificate_type = udd.id and udd.type_code = '03' + LEFT JOIN ums_data_dictionary udd2 on upi.education_degree = udd2.id and udd2.type_code = '04' + LEFT JOIN ums_data_dictionary udd3 on upi.nation = udd3.id and udd3.type_code = '05' + WHERE + upi.`id` = #{id} + </select> + </mapper> -- Gitblit v1.8.0