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");