<?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>
|