| | |
| | | package com.product.data.sync.service; |
| | | |
| | | import com.baomidou.mybatisplus.toolkit.StringUtils; |
| | | import com.google.common.base.Joiner; |
| | | import com.product.admin.service.OrganizationCacheService; |
| | | import com.product.core.cache.DataPoolCacheImpl; |
| | |
| | | import com.product.data.sync.service.ide.IViewDataProcessService; |
| | | import com.product.data.sync.util.BatchData; |
| | | import com.product.util.SystemParamReplace; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | //初始化组织机构表数据 |
| | | 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[]{}); |