value
2024-05-27 9e7a2db4b0c309cd7dd653857302a123211372ce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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.yuanchu.mom.mapper.CustomMapper">
    <update id="delCustomById">
        update user set is_custom = 0
        where id = #{id}
    </update>
    <select id="selectCustomPageList" resultType="com.yuanchu.mom.dto.Custom">
        select * from (
            select u1.id, u1.account, u1.name, u1.state, u1.update_time, u1.update_user, u1.age, u1.email, u1.phone, u1.department, u1.company, u1.address, u2.name update_user_name, u1.code,u1.company_en,u1.address_en
            from user u1
            left join user u2 on u2.id = u1.update_user
            where u1.is_custom = 1
        ) a
        <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
            ${ew.customSqlSegment}
        </if>
    </select>
</mapper>