From 9c9a91d2724c9a158fe4e95a8fbda6340459f8b4 Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期一, 19 五月 2025 14:36:59 +0800 Subject: [PATCH] 测评接口 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TQaTestItemReportController.java | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TQaTestItemReportController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TQaTestItemReportController.java index 16c9710..986e677 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TQaTestItemReportController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TQaTestItemReportController.java @@ -13,8 +13,10 @@ import com.ruoyi.framework.web.service.TokenService; import com.ruoyi.system.dto.AuditStatusDTO; import com.ruoyi.system.dto.TQaTestItemReportDTO; -import com.ruoyi.system.mapper.TQaReportFileMapper; -import com.ruoyi.system.model.*; +import com.ruoyi.system.model.TProjectTeam; +import com.ruoyi.system.model.TProjectTeamStaff; +import com.ruoyi.system.model.TQaReportFile; +import com.ruoyi.system.model.TQaTestItemReport; import com.ruoyi.system.query.TQaTestItemReportQuery; import com.ruoyi.system.service.TProjectTeamService; import com.ruoyi.system.service.TProjectTeamStaffService; @@ -25,13 +27,11 @@ import io.swagger.annotations.ApiOperation; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import java.time.LocalDateTime; import java.util.List; import java.util.Objects; -import java.util.stream.Collectors; /** * <p> @@ -63,7 +63,7 @@ /** * 获取QA检测项报告管理列表 */ - @PreAuthorize("@ss.hasPermi('system:qaTestItemReport:list')") + //@PreAuthorize("@ss.hasPermi('system:qaTestItemReport:list')") @ApiOperation(value = "获取QA检测项报告管理分页列表-工艺工程师使用", response = TQaTestItemReportQuery.class) @PostMapping(value = "/api/t-qa-test-item-report/pageList") public R<PageInfo<TQaTestItemReportVO>> pageList(@RequestBody String param) { @@ -74,7 +74,7 @@ /** * 获取QA检测项报告管理列表 */ - @ApiOperation(value = "获取QA检测项报告管理下拉列表-化验师使用") + @ApiOperation(value = "获取QA检测项报告管理下拉列表-化验师使用、评定使用") @GetMapping(value = "/open/t-qa-test-item-report/getListByItemId") public R<List<TQaTestItemReport>> getListByItemId(@RequestParam String itemId) { List<TQaTestItemReport> list = qaTestItemReportService.list(Wrappers.lambdaQuery(TQaTestItemReport.class) @@ -85,7 +85,7 @@ /** * 添加QA检测项报告管理管理 */ - @PreAuthorize("@ss.hasPermi('system:qaTestItemReport:add')") + //@PreAuthorize("@ss.hasPermi('system:qaTestItemReport:add')") @Log(title = "QA检测项报告管理信息-新增QA检测项报告管理", businessType = BusinessType.INSERT) @ApiOperation(value = "添加QA检测项报告管理",response = TQaTestItemReportDTO.class) @PostMapping(value = "/api/t-qa-test-item-report/add") @@ -130,7 +130,7 @@ /** * 修改QA检测项报告管理 */ - @PreAuthorize("@ss.hasPermi('system:qaTestItemReport:edit')") + //@PreAuthorize("@ss.hasPermi('system:qaTestItemReport:edit')") @Log(title = "QA检测项报告管理信息-修改QA检测项报告管理", businessType = BusinessType.UPDATE) @ApiOperation(value = "修改QA检测项报告管理") @PostMapping(value = "/api/t-qa-test-item-report/update") @@ -152,7 +152,7 @@ /** * 查看QA检测项报告管理详情 */ - @PreAuthorize("@ss.hasPermi('system:qaTestItemReport:detail')") + //@PreAuthorize("@ss.hasPermi('system:qaTestItemReport:detail')") @ApiOperation(value = "查看QA检测项报告管理详情") @GetMapping(value = "/open/t-qa-test-item-report/getDetailById") public R<TQaTestItemReportVO> getDetailById(@RequestParam String id) { @@ -170,7 +170,7 @@ /** * 删除QA检测项报告管理 */ - @PreAuthorize("@ss.hasPermi('system:qaTestItemReport:delete')") + //@PreAuthorize("@ss.hasPermi('system:qaTestItemReport:delete')") @Log(title = "QA检测项报告管理信息-删除QA检测项报告管理", businessType = BusinessType.DELETE) @ApiOperation(value = "删除QA检测项报告管理") @DeleteMapping(value = "/open/t-qa-test-item-report/deleteById") @@ -184,7 +184,7 @@ /** * 批量删除QA检测项报告管理 */ - @PreAuthorize("@ss.hasPermi('system:qaTestItemReport:delete')") + //@PreAuthorize("@ss.hasPermi('system:qaTestItemReport:delete')") @Log(title = "QA检测项报告管理信息-删除QA检测项报告管理", businessType = BusinessType.DELETE) @ApiOperation(value = "批量删除QA检测项报告管理") @DeleteMapping(value = "/open/t-qa-test-item-report/deleteByIds") @@ -198,7 +198,7 @@ /** * 撤销QA检测项报告管理 */ - @PreAuthorize("@ss.hasPermi('system:qaTestItemReport:revokedReport')") + //@PreAuthorize("@ss.hasPermi('system:qaTestItemReport:revokedReport')") @Log(title = "QA检测项报告管理信息-撤销QA检测项报告管理状态", businessType = BusinessType.UPDATE) @ApiOperation(value = "撤销QA检测项报告管理状态") @PutMapping(value = "/open/t-qa-test-item-report/revokedReport") @@ -212,7 +212,7 @@ /** * 审核QA检测项报告管理 */ - @PreAuthorize("@ss.hasPermi('system:qaTestItemReport:auditReport')") + //@PreAuthorize("@ss.hasPermi('system:qaTestItemReport:auditReport')") @Log(title = "QA检测项报告管理信息-审核QA检测项报告管理状态", businessType = BusinessType.UPDATE) @ApiOperation(value = "审核QA检测项报告管理状态") @PostMapping(value = "/api/t-qa-test-item-report/auditReport") -- Gitblit v1.7.1