| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得换位导线产品技术参数") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-ctc:query')") |
| | | public CommonResult<ProductCtcRespVO> getCtc(@RequestParam("id") Long id) { |
| | | ProductCtcDO ctc = ctcService.getCtc(id); |
| | | if (ctc == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得换位导线产品技术参数分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-ctc:query')") |
| | | public CommonResult<PageResult<ProductCtcRespVO>> getCtcPage(@Valid ProductCtcPageReqVO pageReqVO) { |
| | | PageResult<ProductCtcDO> pageResult = ctcService.getCtcPage(pageReqVO); |
| | | return success(new PageResult<>(buildCtcRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | |
| | | @PostMapping("/calc-angle") |
| | | @Operation(summary = "绕包角度计算(已知纸带宽度)") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-ctc:query')") |
| | | public CommonResult<ProductCtcAngleCalcRespVO> calcAngle(@Valid @RequestBody ProductCtcAngleCalcReqVO reqVO) { |
| | | return success(ctcService.calcAngle(reqVO)); |
| | | } |
| | | |
| | | @PostMapping("/calc-resistance") |
| | | @Operation(summary = "直流电阻计算(按温度换算)") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-ctc:query')") |
| | | public CommonResult<ProductCtcResistanceCalcRespVO> calcResistance(@Valid @RequestBody ProductCtcResistanceCalcReqVO reqVO) { |
| | | return success(ctcService.calcResistance(reqVO)); |
| | | } |
| | | |
| | | @PostMapping("/calc-reel") |
| | | @Operation(summary = "盘具容量计算(每盘最大长度)") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-ctc:query')") |
| | | public CommonResult<ProductCtcReelCalcRespVO> calcReelCapacity(@Valid @RequestBody ProductCtcReelCalcReqVO reqVO) { |
| | | return success(ctcService.calcReelCapacity(reqVO)); |
| | | } |