| | |
| | | private UserService userService; |
| | | //工程信息 |
| | | @ApiOperation("工程信息接口") |
| | | @PostMapping ("/projectInfo/{projectNo}") |
| | | @PostMapping ("/projectInfo/{projectNo}/{username}") |
| | | public Result projectInfo( |
| | | @PathVariable String projectNo){ |
| | | return Result.seccess(glassOptimizeService.projectInfoSv(projectNo)); |
| | | @PathVariable String projectNo,@PathVariable String username){ |
| | | return Result.seccess(glassOptimizeService.projectInfoSv(projectNo,username)); |
| | | } |
| | | |
| | | //工程信息流程卡 |
| | |
| | | public Result materialStore( |
| | | @PathVariable String thickness, |
| | | @PathVariable String model,@PathVariable String projectNumber, |
| | | @RequestParam(name = "type", required = false) Integer type ){ |
| | | return Result.seccess(glassOptimizeService.materialStoreSv(thickness,model,projectNumber,type)); |
| | | @RequestParam(name = "type", required = false) Integer type,@RequestParam(name = "username", required = false) String username ){ |
| | | return Result.seccess(glassOptimizeService.materialStoreSv(thickness,model,projectNumber,type,username)); |
| | | } |
| | | |
| | | |
| | |
| | | return new ResponseEntity<>(optContent.getBytes(), headers, HttpStatus.OK); |
| | | } |
| | | |
| | | @PostMapping("/getConfiguration/{type}") |
| | | public Result getConfiguration(@PathVariable String type) { |
| | | return Result.seccess(glassOptimizeService.getConfiguration(type)); |
| | | @PostMapping("/getConfiguration/{type}/{username}") |
| | | public Result getConfiguration(@PathVariable String type,@PathVariable String username) { |
| | | return Result.seccess(glassOptimizeService.getConfiguration(type,username)); |
| | | } |
| | | |
| | | @ApiOperation("修片磨量修改") |
| | | @PostMapping("/saveConfiguration/{type}") |
| | | public Result saveConfiguration(@PathVariable String type, @RequestBody Map<String,Object> object){ |
| | | return Result.seccess(glassOptimizeService.saveConfiguration(object,type)); |
| | | @PostMapping("/saveConfiguration/{type}/{username}") |
| | | public Result saveConfiguration(@PathVariable String type,@PathVariable String username, @RequestBody Map<String,Object> object){ |
| | | return Result.seccess(glassOptimizeService.saveConfiguration(object,type,username)); |
| | | } |
| | | |
| | | @ApiOperation("模拟排版") |