| | |
| | | <!--派遣记录分页数据--> |
| | | <select id="selectDispatcherPage" resultType="org.springblade.modules.dispatcher.vo.DispatcherVO"> |
| | | select |
| | | sd.*,bu.real_name securityName,sdu.name dispatcherCompany,bu.cardid idCardNo |
| | | sd.*,bu.real_name securityName,sdu.name dispatcherCompany,bu.cardid idCardNo,bd.dept_name deptName |
| | | from |
| | | sys_dispatcher sd |
| | | left join |
| | |
| | | blade_user bu |
| | | on |
| | | bu.id = sd.user_ids |
| | | left join |
| | | blade_dept bd |
| | | on |
| | | bd.id = bu.dept_id |
| | | left join |
| | | sys_jurisdiction sj |
| | | on |
| | |
| | | </if> |
| | | <if test="dispatcher.securityName!=null and dispatcher.securityName!=''"> |
| | | and bu.real_name like concat('%', #{dispatcher.securityName},'%') |
| | | </if> |
| | | <if test="dispatcher.deptName!=null and dispatcher.deptName!=''"> |
| | | and bd.dept_name like concat('%', #{dispatcher.deptName},'%') |
| | | </if> |
| | | <if test="dispatcher.cardid!=null and dispatcher.cardid!=''"> |
| | | and sd.cardid like concat('%', #{dispatcher.cardid},'%') |
| | |
| | | where |
| | | 1=1 |
| | | and dispatcher_unit_id = #{dispatcherUnitVO1.id} |
| | | and status = 0 |
| | | </select> |
| | | |
| | | <!--查询用的派遣信息--> |