From eb975b40828b3a930fb38b75c739a7385b14ee12 Mon Sep 17 00:00:00 2001 From: zhuo <2089219845@qq.com> Date: 星期四, 03 四月 2025 14:48:57 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/radio_frequency' into radio_frequency --- basic-server/src/main/resources/mapper/StandardProductListUpdateRecordMapper.xml | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/basic-server/src/main/resources/mapper/StandardProductListUpdateRecordMapper.xml b/basic-server/src/main/resources/mapper/StandardProductListUpdateRecordMapper.xml index e9388ef..e3a5a2e 100644 --- a/basic-server/src/main/resources/mapper/StandardProductListUpdateRecordMapper.xml +++ b/basic-server/src/main/resources/mapper/StandardProductListUpdateRecordMapper.xml @@ -5,12 +5,16 @@ <mapper namespace="com.ruoyi.basic.mapper.StandardProductListUpdateRecordMapper"> <select id="standardProductListRecordPage" resultType="com.ruoyi.basic.dto.StandardProductListUpdateRecordDto"> SELECT *, - ( SELECT NAME FROM `user` WHERE id = create_user ) AS createUserName, - ( SELECT NAME FROM `user` WHERE id = update_user ) AS updateUserName + T2.name AS create_user_name, + T3.name AS update_user_name FROM - standard_product_list_update_record - <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> - ${ew.customSqlSegment} - </if> + standard_product_list_update_record T1 + LEFT JOIN user T2 ON T1.create_user = T2.id + LEFT JOIN user T3 ON T1.update_user = T3.id + <where> + <if test="record.createUserName != null and record.createUserName != ''"> + T2.name like concat('%',#{record.createUserName},'%') + </if> + </where> </select> </mapper> -- Gitblit v1.9.3