| | |
| | | </update> |
| | | |
| | | <select id="getDeptAdminIds" resultType="java.lang.Integer" parameterType="java.lang.Integer"> |
| | | select department_id from t_user_department where dept_admin = 1 and user_id = #{id} |
| | | select department_id from t_user_department where dept_admin = 1 and user_id = #{userId} |
| | | </select> |
| | | |
| | | <select id="getDeptAdminIdAndInfo" resultType="com.mindskip.xzs.domain.Department"> |
| | | select |
| | | d.id, d.name, d.special |
| | | from |
| | | t_user_department ud |
| | | INNER JOIN t_department d ON ud.department_id = d.id |
| | | WHERE |
| | | dept_admin = 1 and user_id = #{userId} |
| | | </select> |
| | | |
| | | <select id="getDeptAdmins" resultType="com.mindskip.xzs.domain.Department" parameterType="java.lang.Integer"> |