From 3939cc2c911c12e0c8b2466406db507a9728f2d6 Mon Sep 17 00:00:00 2001 From: nixj Date: Fri, 28 Jun 2024 17:23:43 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90update=E3=80=91=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=9D=83=E9=99=90=E4=BF=AE=E6=94=B9=E4=B8=BA=E6=8C=89=E7=85=A7?= =?UTF-8?q?companyCode=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/chint/manage/entity/RouteOrderExtensionFieldBasic.java | 3 +++ .../mapper/JdbcRouteOrderExtensionFieldBasicRepository.java | 2 ++ src/main/java/com/chint/manage/util/BaseUtil.java | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/chint/manage/entity/RouteOrderExtensionFieldBasic.java b/src/main/java/com/chint/manage/entity/RouteOrderExtensionFieldBasic.java index 49fba22c..474fa7b0 100644 --- a/src/main/java/com/chint/manage/entity/RouteOrderExtensionFieldBasic.java +++ b/src/main/java/com/chint/manage/entity/RouteOrderExtensionFieldBasic.java @@ -26,5 +26,8 @@ private static final long serialVersionUID = 1L; /****/ private String belongDeptCode; + /****/ + private String companyCode; + } diff --git a/src/main/java/com/chint/manage/mapper/JdbcRouteOrderExtensionFieldBasicRepository.java b/src/main/java/com/chint/manage/mapper/JdbcRouteOrderExtensionFieldBasicRepository.java index 79caee82..4ca962bb 100644 --- a/src/main/java/com/chint/manage/mapper/JdbcRouteOrderExtensionFieldBasicRepository.java +++ b/src/main/java/com/chint/manage/mapper/JdbcRouteOrderExtensionFieldBasicRepository.java @@ -17,4 +17,6 @@ import java.util.List; public interface JdbcRouteOrderExtensionFieldBasicRepository extends CrudRepository { List findAllByBelongDeptCodeIn(@Param("belongDeptCode") List belongDeptCode); + + List findAllByCompanyCodeIn(@Param("code") List code); } \ No newline at end of file diff --git a/src/main/java/com/chint/manage/util/BaseUtil.java b/src/main/java/com/chint/manage/util/BaseUtil.java index 5aa98d60..f413332c 100644 --- a/src/main/java/com/chint/manage/util/BaseUtil.java +++ b/src/main/java/com/chint/manage/util/BaseUtil.java @@ -30,7 +30,7 @@ public class BaseUtil { public List getRouteIds(){ List list = BaseContext.getCurrentUser().loadRoleOrg().getRoleOrgCodeList().stream().filter(Objects::nonNull).toList(); if (list.isEmpty()) return null; - List result= jdbcRouteOrderExtensionFieldBasicRepository.findAllByBelongDeptCodeIn(list); + List result= jdbcRouteOrderExtensionFieldBasicRepository.findAllByCompanyCodeIn(list); return result.stream().map(RouteOrderExtensionFieldBasic::getRouteId).toList(); }