From 21ac881bfe258d06f54f6a6cc80bbce1ee71e2a1 Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" Date: Thu, 21 Mar 2024 16:07:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E8=B4=A7=E7=89=A9?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E6=9F=A5=E8=AF=A2=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/constant/ModuleNameConstant.java | 2 +- .../DistrilbutionBillLadingServiceImpl.java | 14 +++----------- .../service/impl/ClassifyServiceImpl.java | 18 ++++++++++++++---- .../mapper/WarehouseGoodsAllocationMapper.xml | 10 +++++----- 4 files changed, 23 insertions(+), 21 deletions(-) diff --git a/blade-biz-common/src/main/java/org/springblade/common/constant/ModuleNameConstant.java b/blade-biz-common/src/main/java/org/springblade/common/constant/ModuleNameConstant.java index b9e346f91..b066e67a9 100644 --- a/blade-biz-common/src/main/java/org/springblade/common/constant/ModuleNameConstant.java +++ b/blade-biz-common/src/main/java/org/springblade/common/constant/ModuleNameConstant.java @@ -8,7 +8,7 @@ public interface ModuleNameConstant { /** * 如果不需要 "" */ - public static final String DEVAUTH =""; + public static final String DEVAUTH ="-pref"; /** * 工厂对接服务名称 diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java index f1a59c480..0cf9389f4 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java @@ -1749,7 +1749,8 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl e.getConditions().equals("2")).count(); // 订 已签收的数 - long count2 = list1.stream().filter(e -> e.getConditions().equals("2")).count(); // 库 已签收的数 - if (Integer.parseInt(String.valueOf(count)) == list.size() && Integer.parseInt(String.valueOf(count2)) == list1.size()) { - //修改提货任务状态 - DistrilbutionBillLadingEntity billLadingEntity = new DistrilbutionBillLadingEntity(); - String bill = (String) billLadingId; - billLadingEntity.setId(Long.valueOf(bill)); - billLadingEntity.setConditions("20"); - baseMapper.updateById(billLadingEntity); - }*/ + log.info(coding + " > > 签收成功!!"); return Resp.scanSuccess("签收成功", ""); } diff --git a/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/service/impl/ClassifyServiceImpl.java b/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/service/impl/ClassifyServiceImpl.java index 9fd07ac54..1913fd3e6 100644 --- a/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/service/impl/ClassifyServiceImpl.java +++ b/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/service/impl/ClassifyServiceImpl.java @@ -270,8 +270,7 @@ public class ClassifyServiceImpl extends BaseServiceImpl entityList = this.list(ne - ); + List entityList = this.list(ne); for (ClassifyEntity entity : entityList) { ClassifyVO classifyVO = ClassifyWrapper.build().entityVO(entity); ClassifyApiVO classifyApiVO = Func.copy(classifyVO, ClassifyApiVO.class); @@ -544,10 +543,21 @@ public class ClassifyServiceImpl extends BaseServiceImpl deptTree = deptClient.getDeptTree(user.getTenantId()); - List userDeptNode = deptClient.getUserDeptNode(Long.parseLong(user.getDeptId())); - return R.data(userDeptNode); +// List userDeptNode = deptClient.getUserDeptNode(Long.parseLong(user.getDeptId())); + + + String[] split = user.getDeptId().split(","); + + Set tem= new HashSet<>(); + for (String id:split){ + + List userDeptNode = deptClient.getUserDeptNode(Long.parseLong(id)); + tem.addAll(userDeptNode); + } + return R.data(tem); } + @Transactional(rollbackFor = Exception.class) @Override public R importClassify(MultipartFile file) throws IOException { diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseGoodsAllocationMapper.xml b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseGoodsAllocationMapper.xml index 4e7d335cc..213883090 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseGoodsAllocationMapper.xml +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseGoodsAllocationMapper.xml @@ -435,9 +435,9 @@