| | |
| | | */ |
| | | @Operation(summary = "通过id查询" , description = "通过id查询" ) |
| | | @GetMapping("/{id}" ) |
| | | @PreAuthorize("@pms.hasPermission('platformx_deviceDemandTotal_view')" ) |
| | | public R getById(@PathVariable("id" ) Long id) { |
| | | DeviceDemandTotal demandTotal = deviceDemandTotalService.getById(id); |
| | | QueryWrapper<DeviceDemandSub> wrapper = new QueryWrapper<>(); |
| | |
| | | @Operation(summary = "修改设备需求计划项目子表" , description = "修改设备需求计划项目子表" ) |
| | | @SysLog("修改设备需求计划项目子表" ) |
| | | @PutMapping |
| | | @PreAuthorize("@pms.hasPermission('platformx_deviceDemandTotal_edit')" ) |
| | | public R updateById(@RequestBody DeviceDemandTotal deviceDemandTotal) { |
| | | List<DeviceDemandSub> subList = deviceDemandTotal.getSubList(); |
| | | QueryWrapper<DeviceDemandSub> wrapper = new QueryWrapper<>(); |