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(); }