| | |
| | | //=====================================库区设备=======================================// |
| | | 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); |