From 8abace892aa3007de2f6c1c9fa77fa851c919207 Mon Sep 17 00:00:00 2001 From: Gitea Date: Thu, 31 Oct 2024 16:10:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=AA=E5=99=A8=E7=94=B3=E6=8A=A5=E9=A9=B3?= =?UTF-8?q?=E5=9B=9E=E9=94=99=E8=AF=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demo/instrument/controller/InstrumentController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/instrument/controller/InstrumentController.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/instrument/controller/InstrumentController.java index 909ffda..ee2c50d 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/instrument/controller/InstrumentController.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/instrument/controller/InstrumentController.java @@ -215,8 +215,8 @@ public class InstrumentController extends JeecgController edit2(@RequestBody Instrument instrument) { - LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); - if(sysDepartService.getById(loginUser.getOrgId()).getOrgCategory().equals("3")){ + //LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); + if(sysDepartService.getById(instrument.getDeclarationUnit()).getOrgCategory().equals("3")){ instrument.setFlag("1"); }else{ instrument.setFlag("0");