| | |
| | | <if test="dispatcher.deptId!=null"> |
| | | and sd.dept_id = #{dispatcher.deptId} |
| | | </if> |
| | | <if test="dispatcher.dispatch!=null and dispatcher.dispatch!=''"> |
| | | and bu.dispatch = #{dispatcher.dispatch} |
| | | and sd.status = #{dispatcher.dispatch} |
| | | </if> |
| | | <if test="dispatcher.userIds!=null and dispatcher.userIds!=''"> |
| | | and sd.user_ids like concat('%', #{dispatcher.userIds},'%') |
| | | </if> |
| | |
| | | and dispatcher_unit_id = #{dispatcherUnitVO1.id} |
| | | </select> |
| | | |
| | | <!--查询用的派遣信息--> |
| | | <select id="getDispatcherInfoByUserId" resultType="org.springblade.modules.dispatcher.vo.DispatcherVO"> |
| | | select |
| | | sd.* |
| | | from |
| | | sys_dispatcher sd |
| | | left join |
| | | sys_dispatcher_unit sdu |
| | | on |
| | | sdu.id = sd.dispatcher_unit_id |
| | | where sd.user_ids = #{userId} |
| | | and sd.status = 0 |
| | | </select> |
| | | |
| | | </mapper> |