| | |
| | | import com.mchange.v2.beans.BeansUtils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.models.auth.In; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | } |
| | | @ApiOperation("批量更新wms合同总运输量") |
| | | @GetMapping("/updateTotalNum") |
| | | @CloudRequiredPermission("business:platformjob:update") |
| | | @CloudRequiredPermission("business:platformjob:updateTotalNum") |
| | | public ApiResponse updateTotalNum(@RequestParam String ids,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | wmsService.computjobTotalNum(this.getIdList(ids)); |
| | | List<Integer> idList =this.getIdList(ids); |
| | | if(idList == null || idList.size()==0){ |
| | | idList = new ArrayList<>(); |
| | | PlatformJob param = new PlatformJob(); |
| | | param.setIsdeleted(Constants.ZERO); |
| | | param.setOrigin(Constants.ONE); |
| | | List<PlatformJob> list= platformJobService.findList(param); |
| | | |
| | | for(PlatformJob j :list){ |
| | | idList.add(j.getId()); |
| | | } |
| | | } |
| | | wmsService.computjobTotalNum(idList); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | |
| | | platformJobService.signIn(signInDTO); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation("手动完成作业") |
| | | @PostMapping("/dealJobFinish") |
| | | public ApiResponse dealJobFinish (@RequestBody List<Integer> list, @RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | platformJobService.dealJobFinish(list,getLoginUser(token)); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | } |