From 1650011c3b469e0685b4013b9dc1fd14bc6550f7 Mon Sep 17 00:00:00 2001
From: CZT <czt18638530771@163.com>
Date: 星期五, 03 十一月 2023 19:04:41 +0800
Subject: [PATCH] 优化通知单和设备,分库区

---
 igds-manager/src/main/java/com/ld/igds/oa/service/HDeptDeviceService.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/igds-manager/src/main/java/com/ld/igds/oa/service/HDeptDeviceService.java b/igds-manager/src/main/java/com/ld/igds/oa/service/HDeptDeviceService.java
index 0e6091b..0fc419d 100644
--- a/igds-manager/src/main/java/com/ld/igds/oa/service/HDeptDeviceService.java
+++ b/igds-manager/src/main/java/com/ld/igds/oa/service/HDeptDeviceService.java
@@ -35,10 +35,11 @@
     //=====================================搴撳尯璁惧=======================================//
     public void pageData(Page<DeptDevice> page, Map<String, Object> param)
             throws Exception {
-        String hql = " from " + DeptDevice.class.getName() + " where companyId=:companyId";
+        String hql = " from " + DeptDevice.class.getName() + " where companyId =:companyId and deptId =:deptId";
 
         Map<String, Object> args = new HashMap<>();
         args.put("companyId", ContextUtil.getCompanyId());
+        args.put("deptId", ContextUtil.subDeptId(null));
 
         if (null != param) {
             hql = buildHql(hql, param, args);

--
Gitblit v1.9.3