| | |
| | | select * from sys_dept where find_in_set(#{deptId}, ancestors) |
| | | </select> |
| | | |
| | | <select id="selectByParentId" resultType="java.lang.Integer"> |
| | | select dept_id from sys_dept |
| | | where del_flag = 0 and parent_id = #{id} |
| | | </select> |
| | | |
| | | <select id="selectNormalChildrenDeptById" parameterType="Long" resultType="int"> |
| | | select count(*) from sys_dept where status = '0' and del_flag = 0 and find_in_set(#{deptId}, ancestors) |
| | | </select> |
| | |
| | | level DESC |
| | | </select> |
| | | |
| | | <select id="dashboard" resultType="com.ycl.platform.domain.vo.screen.DeptAreaVO"> |
| | | SELECT dept_id, area FROM sys_dept WHERE status = '0' AND del_flag = 0 AND area IS NOT NULL |
| | | </select> |
| | | |
| | | </mapper> |