yangys
2024-10-30 c27b939fa5fa6ce4d712f7e9ced2ad811d69d5ec
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.qianwen.smartman.modules.smis.mapper.OrganizationMapper">
 
 
    <select id="getOneEmployeeByOrganizationIdList" resultType="com.qianwen.smartman.modules.smis.entity.Employee">
        select b.id
        from blade_common_group_of_item a
        join blade_employee b on b.id = a.item_id and b.is_deleted=0
        <where>
            <if test="organizationIdList != null and organizationIdList.size() > 0">
                AND a.group_id IN
                <foreach collection="organizationIdList" item="organizationId" open="(" separator="," close=")">
                    #{organizationId}
                </foreach>
            </if>
            AND rownum <![CDATA[<=]]> 1
        </where>
    </select>
</mapper>