| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.dto.TaskDto; |
| | | import com.whyc.dto.WmsPalletDto; |
| | | import com.whyc.pojo.db_wms.Task; |
| | | import com.whyc.service.WmsService; |
| | |
| | | |
| | | /** |
| | | * 提供给第三方的接口,用于接收任务状态 |
| | | * @param task |
| | | * @param taskDto |
| | | * @return |
| | | */ |
| | | @PostMapping("sendTaskStatus") |
| | | public Response sendTaskStatus(@RequestBody Task task){ |
| | | return service.sendTaskStatus(task); |
| | | public Response sendTaskStatus(@RequestBody TaskDto taskDto){ |
| | | return service.sendTaskStatus(taskDto); |
| | | } |
| | | |
| | | @GetMapping("task/getFinishedPage") |
| | | public Response getFinishedPage(@RequestParam int pageNum,@RequestParam int pageSize){ |
| | | return service.getFinishedPage(pageNum,pageSize); |
| | | } |
| | | |
| | | @GetMapping("task/getOngoingList") |
| | | public Response getOngoingList(){ |
| | | return service.getOngoingList(); |
| | | } |
| | | |
| | | } |