| | |
| | | ) |
| | | </insert> |
| | | |
| | | <insert id="insertBatchByDepartmentExamine"> |
| | | insert into t_user_department (user_id, department_id) |
| | | values |
| | | <foreach collection="departmentIds.split(',')" item="item" separator=","> |
| | | (#{userId}, #{item}) |
| | | </foreach> |
| | | </insert> |
| | | |
| | | <select id="selectByUserId" parameterType="java.lang.Integer" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | |
| | | </set> |
| | | where id = #{id} |
| | | </update> |
| | | </mapper> |
| | | |
| | | <select id="getDeptUserList" resultType="com.mindskip.xzs.domain.vo.BaseSelect" > |
| | | SELECT |
| | | tu.id, |
| | | tu.real_name as 'value' |
| | | FROM |
| | | t_user tu |
| | | INNER JOIN t_user_department tud ON tud.user_id = tu.id |
| | | <where> |
| | | AND tud.department_id = #{depId} |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |