maven
2025-11-20 5c0bc75816a7b5fa348d658897a304f588d9d0ed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?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.lavorissue.mapper.LaborConfMapper">
 
    <select id="listPage" resultType="com.ruoyi.lavorissue.pojo.LaborConf">
        SELECT
        t1.*,
        t3.dict_label as dictName
        FROM labor_conf t1
        left join sys_dict_data t3 on t1.dict_id = t3.dict_value
        <where>
            <if test="req.deptPositionId != null">
                AND t1.dept_position_id = #{req.deptPositionId}
            </if>
        </where>
    </select>
    <select id="list" resultType="com.ruoyi.lavorissue.pojo.LaborConf">
        SELECT
        t1.*,
        t3.dict_label as dictName
        FROM labor_conf t1
        left join sys_dict_data t3 on t1.dict_id = t3.dict_value
        <where>
            <if test="req != null and req.size() > 0">
                AND t1.dept_position_id in(<foreach collection="req" item="item" separator=",">#{item}</foreach>)
            </if>
        </where>
    </select>
</mapper>