zhuo
2025-04-03 eb975b40828b3a930fb38b75c739a7385b14ee12
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.basic.mapper.StandardProductListUpdateRecordMapper">
    <select id="standardProductListRecordPage" resultType="com.ruoyi.basic.dto.StandardProductListUpdateRecordDto">
        SELECT *,
               T2.name AS create_user_name,
               T3.name AS update_user_name
        FROM
            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>