| | |
| | | //添加流程卡 |
| | | @ApiOperation("流程卡创建接口") |
| | | @SaCheckPermission("addProcessCard.add") |
| | | @PostMapping("/addFlowCard") |
| | | public Result AddOrderWork(@RequestBody Map<String, Object> object) { |
| | | if (flowCardService.addFlowCardSv(object)) { |
| | | @PostMapping("/addFlowCard/{orderId}") |
| | | public Result AddOrderWork(@PathVariable String orderId,@RequestBody Map<String, Object> object) { |
| | | if (flowCardService.addFlowCardSv(orderId,object)) { |
| | | return Result.seccess(); |
| | | } else { |
| | | throw new ServiceException(Constants.Code_500, "保存失败"); |
| | |
| | | return Result.seccess(flowCardService.checkboxDeleteSv(object)); |
| | | } |
| | | |
| | | @ApiOperation("工程明细打印查询") |
| | | @PostMapping("/selectPrintProjectDetails/{projectNo}") |
| | | public Result selectPrintProjectDetails( |
| | | @PathVariable String projectNo) { |
| | | return Result.seccess(flowCardService.getPrintProjectDetails(projectNo)); |
| | | |
| | | } |
| | | @ApiOperation("工程明细打印标签查询") |
| | | @PostMapping("/getPrintCustomDataProjectNoDetail/{type}/{detailType}") |
| | | public Result getPrintCustomDataProjectNoDetail( |
| | | @PathVariable String type, |
| | | @PathVariable Integer detailType, |
| | | @RequestBody Map<String, Object> object) { |
| | | return Result.seccess(flowCardService.getPrintCustomDataProjectNoDetailSv(type,detailType,object)); |
| | | |
| | | } |
| | | |
| | | @ApiOperation("修改工艺流程") |
| | | @PostMapping("/updateProcess/{processId}/{technologyNumber}/{orderId}/{process}") |
| | | public Result updateProcess( |
| | | @PathVariable String processId, |
| | | @PathVariable String technologyNumber, |
| | | @PathVariable String orderId, |
| | | @PathVariable String process, |
| | | @RequestBody Map<String, Object> object |
| | | ) { |
| | | |
| | | return Result.seccess(flowCardService.updateProcessSv(processId,technologyNumber,orderId,process,object)); |
| | | } |
| | | } |