“linengliang”
2023-11-29 9dfba88030f4f1a8e620e03e0d432439aaf0a99b
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="org.jeecg.modules.eam.mapper.StreamMapper">
    <select id="myPage" resultType="org.jeecg.modules.eam.entity.Stream">
        select t1.*
        from mom_eam_stream t1
        left join sys_user t2 on t2.id = t1.create_by
        where 1=1
        <choose>
            <when test="areaId != null and areaId != ''">
                and t2.area_id = #{areaId}
            </when>
            <otherwise>
                and t2.area_id = '-1'
            </otherwise>
        </choose>
 
    </select>
 
</mapper>