From dccb95786b5b0bc489fd00f1f7b682336ff5d4ba Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Wed, 25 Jun 2025 09:28:37 +0800 Subject: [PATCH] 2025-06-25 --- .../controller/TechnicalSpecificationController.java | 2 +- src/main/resources/mapper/request/RequestManageMapper.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/spring/modules/sampleManagement/controller/TechnicalSpecificationController.java b/src/main/java/com/spring/modules/sampleManagement/controller/TechnicalSpecificationController.java index 39591bdd..688ceffe 100644 --- a/src/main/java/com/spring/modules/sampleManagement/controller/TechnicalSpecificationController.java +++ b/src/main/java/com/spring/modules/sampleManagement/controller/TechnicalSpecificationController.java @@ -1255,7 +1255,7 @@ public class TechnicalSpecificationController { String status = technicalSpecificationService.getBMStatusDesc(data); Boolean flag = false; // 是否超级管理员 - if (sysMenuDao.checkSuperAdmin(((SysUserEntity) SecurityUtils.getSubject().getPrincipal()).getUserId()).size() > 0) { + if (!sysMenuDao.checkSuperAdmin(((SysUserEntity) SecurityUtils.getSubject().getPrincipal()).getUserId()).isEmpty()) { flag = true; } return R.ok().put("status",status).put("superAdmin",flag); diff --git a/src/main/resources/mapper/request/RequestManageMapper.xml b/src/main/resources/mapper/request/RequestManageMapper.xml index 633f9dd9..420897a4 100644 --- a/src/main/resources/mapper/request/RequestManageMapper.xml +++ b/src/main/resources/mapper/request/RequestManageMapper.xml @@ -376,7 +376,7 @@ b.final_part_no from plm_technical_specification_sheet a left join plm_project_part b on a.site = b.site and a.test_part_no = b.test_part_no and a.project_id = b.project_id - where site = #{site} and code_no = #{codeNo} + where a.site = #{site} and a.code_no = #{codeNo}