| | |
| | | |
| | | return PageResult.ok(configAuditReportService.page(queryFilter)); |
| | | } |
| | | /* @GetMapping("getDto") |
| | | |
| | | @GetMapping("getDto") |
| | | @ApiOperation("信息") |
| | | public Result<ConfigAuditDto> getDto(Long projectId, Long reportId) { |
| | | //ConfigAuditDto data =configAuditReportService.getDto(projectId, reportId); |
| | | if (reportId!=null) { |
| | | for (WarehouseConfigItem configItem : data.getConfigItemList()) { |
| | | Long configItemId = configItem.getId(); |
| | | OssDto ossDto = sysOssConfigService.getOssByBusiType(configItemId, "config_item_warehouse"); |
| | | if (ossDto != null) { |
| | | configItem.setFiles(ossDto); |
| | | } |
| | | } |
| | | } |
| | | ConfigAuditDto data =configAuditReportService.getDto(projectId, reportId); |
| | | return Result.ok(data); |
| | | }*/ |
| | | } |
| | | |
| | | @PostMapping |
| | | @ApiOperation("新增") |
| | |
| | | map.put("funCode", "config_audit_report"); |
| | | map.put("projectId",configAuditDto.getProjectId().toString()); |
| | | configAuditDto.getAuditReport().setCode(sysCodeRuleService.getNewCode(map)); |
| | | // Boolean result = configAuditReportService.save(configAuditDto); |
| | | Boolean result = configAuditReportService.save(configAuditDto); |
| | | return Result.ok(); |
| | | } |
| | | |
| | |
| | | public Result update(@RequestBody ConfigAuditDto configAuditDto){ |
| | | //效验数据 |
| | | ValidatorUtils.validateEntity(configAuditDto, UpdateGroup.class, DefaultGroup.class); |
| | | // Boolean result = configAuditReportService.save(configAuditDto); |
| | | |
| | | Boolean result = configAuditReportService.save(configAuditDto); |
| | | return Result.ok(); |
| | | } |
| | | |