|
|
@ -587,27 +587,23 @@ public class BaseInvoiceManualCheckServiceImpl extends MpBaseServiceImpl<BaseTDx |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public List<String> getGfshList(List<String> gfshList, List<String> companyCodes) { |
|
|
|
public List<String> getGfshList(List<String> gfshList, List<String> companyCodes) { |
|
|
|
log.info("111111111111111111111111111111111111111111111"); |
|
|
|
|
|
|
|
DynamicContextHolder.push(DbConstant.BASICS_READ); |
|
|
|
DynamicContextHolder.push(DbConstant.BASICS_READ); |
|
|
|
List<SysDeptEntity> taxnoList = sysDeptAuthDao.queryTaxnoList(); |
|
|
|
List<SysDeptEntity> taxnoList = sysDeptAuthDao.queryTaxnoList(); |
|
|
|
List<SysDeptEntity> parentIdList = sysDeptAuthDao.queryParentIdList(); |
|
|
|
List<SysDeptEntity> parentIdList = sysDeptAuthDao.queryParentIdList(); |
|
|
|
|
|
|
|
|
|
|
|
Map<String, String> taxnoMap = taxnoList.stream().collect(Collectors.toMap(SysDeptEntity::getDeptId, SysDeptEntity::getTaxno)); |
|
|
|
Map<String, String> taxnoMap = taxnoList.stream().collect(Collectors.toMap(SysDeptEntity::getDeptId, SysDeptEntity::getTaxno)); |
|
|
|
Map<String, String> parentIdMap = parentIdList.stream().collect(Collectors.toMap(SysDeptEntity::getDeptId, SysDeptEntity::getParentId)); |
|
|
|
Map<String, String> parentIdMap = parentIdList.stream().collect(Collectors.toMap(SysDeptEntity::getDeptId, key2 -> key2.getParentId()==null?"":key2.getParentId())); |
|
|
|
|
|
|
|
|
|
|
|
log.info("taxnoMap={},parentIdMap={}",taxnoMap,parentIdMap); |
|
|
|
log.info("taxnoMap={},parentIdMap={}",taxnoMap,parentIdMap); |
|
|
|
log.info("22222222222222222222222222222222222222222222222222222"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String gfsh = ""; |
|
|
|
String gfsh = ""; |
|
|
|
for(String companyCode : companyCodes){ |
|
|
|
for(String companyCode : companyCodes){ |
|
|
|
log.info("33333333333333333333333333333333333333333333333333"); |
|
|
|
|
|
|
|
QueryWrapper<SysDeptEntity> wrapper = new QueryWrapper<>(); |
|
|
|
QueryWrapper<SysDeptEntity> wrapper = new QueryWrapper<>(); |
|
|
|
wrapper.eq("org_code",companyCode); |
|
|
|
wrapper.eq("org_code",companyCode); |
|
|
|
SysDeptEntity sysDeptEntity = sysDeptAuthDao.selectOne(wrapper); |
|
|
|
SysDeptEntity sysDeptEntity = sysDeptAuthDao.selectOne(wrapper); |
|
|
|
if(sysDeptEntity != null) { |
|
|
|
if(sysDeptEntity != null) { |
|
|
|
log.info("4444444444444444444444444444444444444444444444444"); |
|
|
|
|
|
|
|
String dId = sysDeptEntity.getDeptId(); |
|
|
|
String dId = sysDeptEntity.getDeptId(); |
|
|
|
|
|
|
|
log.info("获取deptId为:{}",dId); |
|
|
|
gfsh = getGfsh(dId, taxnoMap, parentIdMap); |
|
|
|
gfsh = getGfsh(dId, taxnoMap, parentIdMap); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|