<?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.jeeplus.test.garbageClearance.mapper.LookOverMapper">
    <select id="getUserInfoByOffId" resultType="com.jeeplus.sys.service.dto.UserDTO">
        select su.id, su.name, su.mobile from sys_user su
        left join sys_office so on su.office_id = so.id
        left join sys_user_role sur on su.id = sur.user_id
        left join sys_role sr on sur.role_id = sr.id
        where su.office_id = #{officeId} and sr.name = '村负责人'
    </select>
</mapper>
