| | |
| | | return Result.seccess(glassOptimizeService.projectInfoSv(projectNo,username)); |
| | | } |
| | | |
| | | |
| | | // 优化信息传入 |
| | | @ApiOperation("优化传入信息接口") |
| | | @PostMapping ("/optimizeInfo/{projectNo}/{username}") |
| | | public Result optimizeInfo(@PathVariable String projectNo,@PathVariable String username){ |
| | | return Result.seccess(glassOptimizeService.optimizeInfoSv(projectNo,username)); |
| | | } |
| | | |
| | | //工程信息流程卡 |
| | | @ApiOperation("工程信息流程卡接口") |
| | | @PostMapping ("/getProcessCard/{projectNo}") |
| | |
| | | @PathVariable Integer state, |
| | | @PathVariable Integer states, |
| | | @PathVariable Integer code |
| | | ) { |
| | | ) throws JsonProcessingException { |
| | | if (glassOptimizeService.updateProjectState(projectNumber, state,states,code)) { |
| | | return Result.seccess(); |
| | | } else { |
| | |
| | | return Result.seccess(glassOptimizeService.saveOptimizeResult(object,projectId)); |
| | | } |
| | | |
| | | @ApiOperation("查询报告数据接口") |
| | | @PostMapping("/getReportData/{processId}") |
| | | public Result getReportData(@PathVariable String processId){ |
| | | return Result.seccess(glassOptimizeService.getReportDataSv(processId)); |
| | | } |
| | | |
| | | @ApiOperation("查询物料信息接口") |
| | | @PostMapping("/materialInfo/{processId}") |
| | | public Result materialInfo( |
| | | @PathVariable String processId){ |
| | | return Result.seccess(glassOptimizeService.getMaterialInfoSv(processId)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("查询产品列表接口") |
| | | @PostMapping("/getProductList/{processId}") |
| | | public Result getProductList( |
| | | @PathVariable String processId){ |
| | | return Result.seccess(glassOptimizeService.getProductListSv(processId)); |
| | | } |
| | | |
| | | @ApiOperation("查询优化结果接口") |
| | | @PostMapping("/selectOptimizeResult/{processId}") |
| | | public Result selectOptimizeResult( |
| | | @PathVariable String processId){ |
| | | return Result.seccess(glassOptimizeService.selectOptimizeResult(processId)); |
| | | } |
| | | |
| | | @ApiOperation("查询优化结果信息接口") |
| | | @PostMapping("/getOptimizeInfo/{processId}") |
| | | public Result getOptimizeInfo( |
| | | @PathVariable String processId){ |
| | | return Result.seccess(glassOptimizeService.getOptimizeInfoSv(processId)); |
| | | } |
| | | |
| | | @ApiOperation("更新优化结果接口") |
| | |
| | | return Result.seccess(glassOptimizeService.getProcessCardMpThirdParty(projectNo)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("mes工程任务下发接口") |
| | | @PostMapping("/getIssuingProjects") |
| | | public Result issuingProjects(@RequestBody String projectNo) throws JsonProcessingException { |
| | | return Result.seccess(glassOptimizeService.issuingProjects(projectNo)); |
| | | } |
| | | |
| | | |
| | | |