From c7cc5ece262a6bb3d3ffa97171ef98dcb10a558d Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Tue, 8 Sep 2026 14:36:11 +0800 Subject: [PATCH] =?UTF-8?q?2026-09-08=20=E5=AE=9E=E9=AA=8C=E5=AE=A4?= =?UTF-8?q?=E3=80=90=E4=B8=8B=E8=BE=BE=E3=80=91=E6=A0=A1=E9=AA=8C=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E7=99=BB=E9=99=86=E4=BA=BA=E4=B8=BA=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E4=BA=BA=EF=BC=9B=20=E6=B5=8B=E8=AF=95=E7=94=B3=E8=AF=B7-?= =?UTF-8?q?=E3=80=8B=E5=88=B6=E7=A8=8B=E4=BF=A1=E6=81=AF=E5=85=81=E8=AE=B8?= =?UTF-8?q?=E6=89=8B=E8=BE=93=E5=8A=A0=E5=B7=A5=E4=B8=AD=E5=BF=83=E5=B9=B6?= =?UTF-8?q?=E5=B8=A6=E5=87=BA=E7=9B=B8=E5=85=B3=E4=BF=A1=E6=81=AF=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spring/modules/lab/service/impl/LabServiceImpl.java | 7 +++++++ src/main/resources/mapper/part/WorkCenterMapper.xml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/spring/modules/lab/service/impl/LabServiceImpl.java b/src/main/java/com/spring/modules/lab/service/impl/LabServiceImpl.java index 8c1c6286..e228ddc3 100644 --- a/src/main/java/com/spring/modules/lab/service/impl/LabServiceImpl.java +++ b/src/main/java/com/spring/modules/lab/service/impl/LabServiceImpl.java @@ -171,6 +171,13 @@ public class LabServiceImpl extends ServiceImpl implements if (StringUtils.isBlank(userName)) { throw new RuntimeException("下达人不能为空"); } + String creator = StringUtils.trimToEmpty(lab.getCreateBy()); + if (StringUtils.isBlank(creator)) { + creator = StringUtils.trimToEmpty(lab.getApplicant()); + } + if (!StringUtils.equals(StringUtils.trimToEmpty(userName), creator)) { + throw new RuntimeException("只能下达自己发起的申请!"); + } if (StringUtils.isBlank(menuId)) { throw new RuntimeException("菜单ID不能为空"); } diff --git a/src/main/resources/mapper/part/WorkCenterMapper.xml b/src/main/resources/mapper/part/WorkCenterMapper.xml index 538462c6..7e658d8f 100644 --- a/src/main/resources/mapper/part/WorkCenterMapper.xml +++ b/src/main/resources/mapper/part/WorkCenterMapper.xml @@ -22,7 +22,7 @@ wc.pro_line_no, wc.can_create_new_roll_flag, wc.need_setup_flag - from dbo.work_center wc where site = #{site} and active = 'Y' + from dbo.work_center wc where site = #{site} and show_in_query_flag = 'Y' and wc.work_center_no = #{workCenterNo}