| | |
| | | </resultMap> |
| | | |
| | | <select id="OrganizationalTree" resultMap="OrganizationalMap"> |
| | | SELECT o.id, o.`department` FROM organizational o where o.`father_id` = #{father_id} |
| | | SELECT o.id, o.`department` |
| | | FROM organizational o |
| | | where o.`father_id` = #{father_id} |
| | | and o.state = 1 |
| | | </select> |
| | | |
| | | <select id="getDepartmentListTable" resultType="map"> |
| | | SELECT o.`id`, o.`department` |
| | | FROM organizational o |
| | | WHERE o.`father_id` = #{departmentId} |
| | | AND o.`state` = 1 |
| | | </select> |
| | | |
| | | <select id="deleteDepartment"> |
| | | update lims_laboratory.organizational |
| | | set state=0 |
| | | where id in (${ids}) |
| | | </select> |
| | | </mapper> |