|  |  |  | 
|---|
|  |  |  | import com.doumee.core.utils.Constants; | 
|---|
|  |  |  | import com.doumee.core.utils.DateUtil; | 
|---|
|  |  |  | import com.doumee.dao.business.model.*; | 
|---|
|  |  |  | import com.doumee.dao.business.vo.LargeScreenDataVO; | 
|---|
|  |  |  | import com.doumee.dao.web.reqeust.*; | 
|---|
|  |  |  | import com.doumee.dao.web.response.DriverHomeVO; | 
|---|
|  |  |  | import com.doumee.dao.web.response.LineUpVO; | 
|---|
|  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private PlatformReasonService platformReasonService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private PlatformWmsJobService platformWmsJobService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("入园原因") | 
|---|
|  |  |  | 
|---|
|  |  |  | return ApiResponse.success(platformBooksService.apply(platformBooksApplyDTO)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("物流车预约修改") | 
|---|
|  |  |  | @PostMapping("/applyEdit") | 
|---|
|  |  |  | public ApiResponse<Integer> applyEdit (@RequestBody PlatformBooksApplyDTO platformBooksApplyDTO , @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { | 
|---|
|  |  |  | LoginUserInfo loginUserInfo = getLoginUser(token); | 
|---|
|  |  |  | platformBooksApplyDTO.setUserId(loginUserInfo.getMemberId()); | 
|---|
|  |  |  | platformBooksApplyDTO.setDriverId(loginUserInfo.getMemberId()); | 
|---|
|  |  |  | return ApiResponse.success(platformBooksService.edit(platformBooksApplyDTO)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("物流车预约记录") | 
|---|
|  |  |  | @PostMapping("/page") | 
|---|
|  |  |  | public ApiResponse<PageData<PlatformBooks>> findPage (@RequestBody PageWrap<PlatformBooks> pageWrap, @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /******************************************************司机任务接口************************************************************************/ | 
|---|
|  |  |  | @ApiOperation("任务确认") | 
|---|
|  |  |  | @PostMapping("/confirmTask") | 
|---|
|  |  |  | public ApiResponse  confirmTask (@RequestBody ConfirmTaskDTO confirmTaskDTO, @RequestHeader(Constants.HEADER_USER_TOKEN) String token){ | 
|---|
|  |  |  | confirmTaskDTO.setLoginUserInfo(getLoginUser(token)); | 
|---|
|  |  |  | platformJobService.confirmTask(confirmTaskDTO); | 
|---|
|  |  |  | return ApiResponse.success("操作成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("任务签到") | 
|---|
|  |  |  | @PostMapping("/signIn") | 
|---|
|  |  |  | 
|---|
|  |  |  | return ApiResponse.success(platformJobService.lineUpDetail(lineUpDetailDTO)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("WMS运输单详情") | 
|---|
|  |  |  | @GetMapping("/wmsJobDetail") | 
|---|
|  |  |  | public ApiResponse<PlatformWmsJob> wmsJobDetail(@RequestParam Integer id) { | 
|---|
|  |  |  | return ApiResponse.success(platformWmsJobService.findByDetailId(id)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @LoginNoRequired | 
|---|
|  |  |  | @ApiOperation("签到大屏数据") | 
|---|
|  |  |  | @GetMapping("/getLargeScreenData") | 
|---|
|  |  |  | public ApiResponse<LargeScreenDataVO> getLargeScreenData() { | 
|---|
|  |  |  | return ApiResponse.success(platformJobService.getLargeScreenData()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|