From 69cd9f59a0fabf12f8c9147fcba7f69817a870b3 Mon Sep 17 00:00:00 2001 From: jiazx0107@163.com <jiazx0107@163.com> Date: 星期一, 06 十一月 2023 23:40:59 +0800 Subject: [PATCH] 更新仓内抓拍2 --- 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