| | |
| | | } |
| | | |
| | | /** |
| | | * APP-从业单位查询(派遣单位) |
| | | */ |
| | | @GetMapping("/queryDispatcher") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页", notes = "传入dispatcher") |
| | | public R<IPage<DispatcherVO>> queryDispatcher(DispatcherVO dispatcher, Query query) { |
| | | IPage<DispatcherVO> pages = dispatcherService.queryDispatcher(Condition.getPage(query), dispatcher); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * 新增 |
| | | */ |
| | | @PostMapping("/save") |
| | |
| | | * @return |
| | | */ |
| | | List<DispatcherVO> selectDispatcherPage(IPage page, @Param("dispatcher") DispatcherVO dispatcher); |
| | | /** |
| | | * app从业单位查询 |
| | | * |
| | | * @param page |
| | | * @param dispatcher |
| | | * @return |
| | | */ |
| | | List<DispatcherVO> queryDispatcher(IPage page, @Param("dispatcher") DispatcherVO dispatcher); |
| | | |
| | | /** |
| | | * 派遣记录详情 |
| | |
| | | </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"> |
| | |
| | | IPage<DispatcherVO> selectDispatcherPage(IPage<DispatcherVO> page, DispatcherVO dispatcher); |
| | | |
| | | /** |
| | | * app从业单位查询 |
| | | * |
| | | * @param page |
| | | * @param dispatcher |
| | | * @return |
| | | */ |
| | | IPage<DispatcherVO> queryDispatcher(IPage<DispatcherVO> page, DispatcherVO dispatcher); |
| | | |
| | | /** |
| | | * 派遣记录详情 |
| | | * @param dispatcher 派遣记录对象 |
| | | * @return |
| | |
| | | return page.setRecords(dispatcherVOS); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<DispatcherVO> queryDispatcher(IPage<DispatcherVO> page, DispatcherVO dispatcher) { |
| | | List<DispatcherVO> dispatcherVOS = baseMapper.queryDispatcher(page, dispatcher); |
| | | return page.setRecords(dispatcherVOS); |
| | | } |
| | | |
| | | /** |
| | | * 派遣记录详情 |
| | | * @param dispatcher 派遣记录对象 |
| | |
| | | * 派遣单位名称 |
| | | */ |
| | | private String dispatcherCompany; |
| | | /** |
| | | * 派遣地址 |
| | | */ |
| | | private String dispatcherAddress; |
| | | /** |
| | | * 派遣负责人 |
| | | */ |
| | | private String dispatcherPerson; |
| | | /** |
| | | * 派遣联系方式 |
| | | */ |
| | | private String dispatcherPhone; |
| | | |
| | | /** |
| | | * 保安单位名称 |