| | |
| | | //初始化组织机构表数据 |
| | | DataPoolCacheImpl dataPoolCache = DataPoolCacheImpl.getInstance(); |
| | | // DataTableEntity companyDt = dataPoolCache.getCacheData("所有公司信息"); |
| | | DataTableEntity companyDt = OrganizationCacheService.getOrgData("1"); |
| | | DataTableEntity companyDt = OrganizationCacheService.getOrgDataStatic("1"); |
| | | readRecord(companyDt, this.companyMap); |
| | | // DataTableEntity deptDt = dataPoolCache.getCacheData("公司-部门"); |
| | | DataTableEntity deptDt = OrganizationCacheService.getOrgData("2"); |
| | | DataTableEntity deptDt = OrganizationCacheService.getOrgDataStatic("2"); |
| | | readRecord(deptDt, this.deptMap); |
| | | DataTableEntity dt = baseDao.listTable("SELECT user_id,l.org_level_code dept_code,l1.org_level_code company_code FROM `product_sys_staffs` s join product_sys_org_levels l on s.dept_uuid=l.uuid \n" + |
| | | "join product_sys_org_levels l1 on s.org_level_uuid=l1.uuid ", new Object[]{}); |