吉安感知网项目-后端
linwei
2026-04-13 79ac8d0cee3b8dfea64b4d9a1ebdeb846490ecf0
drone-service/drone-system/src/main/java/org/sxkj/system/mapper/UserMapper.xml
@@ -46,10 +46,10 @@
            and u.tenant_id = #{user.tenantId}
        </if>
        <if test="user.account!=null and user.account != ''">
            and u.account = #{user.account}
            and u.account like CONCAT('%', #{user.account}, '%')
        </if>
        <if test="user.realName!=null and user.realName != ''">
            and u.real_name = #{user.realName}
            and u.real_name like CONCAT('%', #{user.realName}, '%')
        </if>
        <if test="user.userType!=null and user.userType != ''">
            and u.user_type = #{user.userType}
@@ -97,4 +97,12 @@
        </foreach>
    </update>
    <!-- 根据部门ID查询用户列表 -->
    <select id="selectUsersByDeptId" resultMap="userResultMap">
        SELECT *
        FROM blade_user
        WHERE dept_id = #{deptId}
        AND is_deleted = 0
    </select>
</mapper>