| | |
| | | </if> |
| | | order by sd.id desc |
| | | </select> |
| | | <!-- app从业单位查询 --> |
| | | <select id="queryDispatcher" resultType="org.springblade.modules.dispatcher.vo.DispatcherVO"> |
| | | select |
| | | sd.*,bu.real_name securityName |
| | | ,sdu.name dispatcherCompany |
| | | ,sdu.address dispatcherAddress |
| | | ,sdu.linkman dispatcherPerson |
| | | ,sdu.phone dispatcherPhone |
| | | ,bu.cardid idCardNo |
| | | from |
| | | sys_dispatcher sd |
| | | left join |
| | | sys_dispatcher_unit sdu |
| | | on |
| | | sdu.id = sd.dispatcher_unit_id |
| | | left join |
| | | blade_user bu |
| | | on |
| | | bu.id = sd.user_ids |
| | | left join |
| | | sys_information si |
| | | on |
| | | si.departmentid = bu.dept_id |
| | | where 1=1 |
| | | and bu.is_deleted = 0 |
| | | and bu.status = 1 |
| | | <if test="dispatcher.userIds!=null and dispatcher.userIds!=''"> |
| | | and sd.user_ids like concat('%', #{dispatcher.userIds},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | <!--派遣记录详情--> |
| | | <select id="getDispatcherInfo" resultType="org.springblade.modules.dispatcher.vo.DispatcherVO"> |