zss
2025-05-26 51ec98113c6d49d0f7eec4e3c030e55e337e97db
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.yuanchu.mom.mapper.InconsistentDistributionMapper">
 
    <!-- 不符合项分页查询 -->
    <select id="pageInconsistentDistribution" resultType="com.yuanchu.mom.dto.InconsistentDistributionDto">
        select *
        from (select cid.*,
                     u1.name create_user_name,
                     u2.name update_user_name
              from cnas_inconsistent_distribution cid
                       left join user u1 on u1.id = cid.create_user
                       left join user u2 on u2.id = cid.update_user
              order by cid.create_time desc) a
        <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
            ${ew.customSqlSegment}
        </if>
    </select>
 
</mapper>