lin
2024-03-01 43501d34151d28ef35eba7263076834a8ea7d7f3
src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -229,8 +229,7 @@
            )
    </select>
    <select id="getUserInfoByDistrictIds" resultType="org.flowable.idm.engine.impl.persistence.entity.UserEntity"
            parameterType="java.util.List">
    <select id="getUserInfoByDistrictIds" resultType="org.springblade.modules.system.entity.User">
        SELECT
        bu.id,
@@ -250,7 +249,7 @@
        LEFT JOIN jczz_house jhe ON jhe.house_code = jh.house_code
        LEFT JOIN jczz_district jd on jd.aoi_code=jhe.district_code
        <where>
            and jd.id = in
            and jd.id  in
            <foreach collection="list" index="index" item="item" open="(" separator="," close=")">
                #{item}
            </foreach>
@@ -259,4 +258,24 @@
    </select>
    <select id="selectUserByDept" resultMap="userResultMap">
        select * from blade_user where is_deleted = 0
        and id != 1123598821738675201
        <if test="deptIdList!=null and deptIdList.size>0">
            and id in (
            SELECT
            user_id
            FROM
            blade_user_dept
            WHERE
            dept_id IN
            <foreach collection="deptIdList" index="index" item="item" open="(" separator="," close=")">
                #{item}
            </foreach>
            )
        </if>
        ORDER BY create_time desc
    </select>
</mapper>