From f903c990fa3436b0ffb54f0d513b29c0aca8dfe5 Mon Sep 17 00:00:00 2001 From: caozhen <18736171426@139.com> Date: Mon, 18 Sep 2023 16:36:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E8=97=8F=E5=8F=82=E6=95=B0=E5=8C=BA?= =?UTF-8?q?=E5=88=86=E5=9B=BD=E5=86=85=E3=80=81=E6=B5=B7=E5=A4=96=E3=80=81?= =?UTF-8?q?=E4=BC=81=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/LawsStandardCollectionController.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/laws-modules/src/main/java/com/jero/modules/personal/controller/LawsStandardCollectionController.java b/laws-modules/src/main/java/com/jero/modules/personal/controller/LawsStandardCollectionController.java index 91487f90..1e46dc2b 100644 --- a/laws-modules/src/main/java/com/jero/modules/personal/controller/LawsStandardCollectionController.java +++ b/laws-modules/src/main/java/com/jero/modules/personal/controller/LawsStandardCollectionController.java @@ -75,11 +75,11 @@ public class LawsStandardCollectionController extends JeroController domesticAdd(@Validated @RequestBody LawsStandardCollection lawsStandardCollection) { + LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); LawsDomesticStandard standard = lawsDomesticStandardService.queryById(lawsStandardCollection.getStandardId()); lawsStandardCollection.setStandardClass(standard.getStandardClass()); lawsStandardCollection.setStandardName(standard.getStandardName()); - - LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); + lawsStandardCollection.setCollectorId(sysUser.getId()); LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); wrapper.eq(LawsStandardCollection::getStandardId, lawsStandardCollection.getStandardId()); wrapper.eq(LawsStandardCollection::getCollectorId, sysUser.getId()); @@ -114,11 +114,11 @@ public class LawsStandardCollectionController extends JeroController overseasAdd(@Validated @RequestBody LawsStandardCollection lawsStandardCollection) { + LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); LawsOverseasStandard standard = lawsOverseasStandardService.queryById(lawsStandardCollection.getStandardId()); lawsStandardCollection.setStandardClass(standard.getStandardClass()); lawsStandardCollection.setStandardName(standard.getStandardName()); - - LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); + lawsStandardCollection.setCollectorId(sysUser.getId()); LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); wrapper.eq(LawsStandardCollection::getStandardId, lawsStandardCollection.getStandardId()); wrapper.eq(LawsStandardCollection::getCollectorId, sysUser.getId()); @@ -153,11 +153,11 @@ public class LawsStandardCollectionController extends JeroController enterpriseAdd(@Validated @RequestBody LawsStandardCollection lawsStandardCollection) { + LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); LawsEnterpriseStandard standard = enterpriseStandardService.getById(lawsStandardCollection.getStandardId()); lawsStandardCollection.setStandardClass(standard.getCategoryCode()); lawsStandardCollection.setStandardName(standard.getStandardName()); - - LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); + lawsStandardCollection.setCollectorId(sysUser.getId()); LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); wrapper.eq(LawsStandardCollection::getStandardId, lawsStandardCollection.getStandardId()); wrapper.eq(LawsStandardCollection::getCollectorId, sysUser.getId());