| | |
| | | } |
| | | |
| | | @Operation(summary = "计算气体管路产能负载统计", description = "计算") |
| | | |
| | | @PostMapping("/computeCapacity") |
| | | public void computeCapacity() |
| | | @RequiresPermissions("aps:apsGasPipingRouteStat:computeCapacity") |
| | | public AjaxResult computeCapacity() |
| | | { |
| | | apsGasPipingRouteStatService.computeCapacity(); |
| | | try { |
| | | apsGasPipingRouteStatService.saveGasPipingRoutStateList(); |
| | | return AjaxResult.success(); |
| | | } catch (Exception e) { |
| | | logger.error(e.getMessage()); |
| | | return AjaxResult.error("更新失败!"); |
| | | } |
| | | } |
| | | |
| | | @Operation(summary = "获取气体管路产能负载统计", description = "计算") |
| | | |
| | | @PostMapping("/getCapacityPlanData") |
| | | // @RequiresPermissions("aps:apsGasPipingRouteStat:getCapacityPlanData") |
| | | public AjaxResult getCapacityPlanData(@RequestBody ApsGasPipingRouteStat apsGasPipingRouteStat) |
| | | { |
| | | return AjaxResult.success(apsGasPipingRouteStatService.getCapacityPlanData(apsGasPipingRouteStat)); |
| | |
| | | apsGasPipingRouteStatService.exportExcel(response, apsGasPipingRouteStat); |
| | | } |
| | | |
| | | @PostMapping("/saveGasPipingRoutStateList") |
| | | public void saveGasPipingRoutStateList() |
| | | { |
| | | apsGasPipingRouteStatService.saveGasPipingRoutStateList(); |
| | | } |
| | | |
| | | } |