diff --git a/dxhy-base/src/main/java/com/dxhy/base/service/invoicecheck/BaseInvoiceManualCheckServiceImpl.java b/dxhy-base/src/main/java/com/dxhy/base/service/invoicecheck/BaseInvoiceManualCheckServiceImpl.java index 9c678c36..4be6ed93 100644 --- a/dxhy-base/src/main/java/com/dxhy/base/service/invoicecheck/BaseInvoiceManualCheckServiceImpl.java +++ b/dxhy-base/src/main/java/com/dxhy/base/service/invoicecheck/BaseInvoiceManualCheckServiceImpl.java @@ -587,27 +587,23 @@ public class BaseInvoiceManualCheckServiceImpl extends MpBaseServiceImpl getGfshList(List gfshList, List companyCodes) { - log.info("111111111111111111111111111111111111111111111"); DynamicContextHolder.push(DbConstant.BASICS_READ); List taxnoList = sysDeptAuthDao.queryTaxnoList(); List parentIdList = sysDeptAuthDao.queryParentIdList(); Map taxnoMap = taxnoList.stream().collect(Collectors.toMap(SysDeptEntity::getDeptId, SysDeptEntity::getTaxno)); - Map parentIdMap = parentIdList.stream().collect(Collectors.toMap(SysDeptEntity::getDeptId, SysDeptEntity::getParentId)); + Map parentIdMap = parentIdList.stream().collect(Collectors.toMap(SysDeptEntity::getDeptId, key2 -> key2.getParentId()==null?"":key2.getParentId())); log.info("taxnoMap={},parentIdMap={}",taxnoMap,parentIdMap); - log.info("22222222222222222222222222222222222222222222222222222"); String gfsh = ""; for(String companyCode : companyCodes){ - log.info("33333333333333333333333333333333333333333333333333"); QueryWrapper wrapper = new QueryWrapper<>(); wrapper.eq("org_code",companyCode); SysDeptEntity sysDeptEntity = sysDeptAuthDao.selectOne(wrapper); if(sysDeptEntity != null) { - log.info("4444444444444444444444444444444444444444444444444"); String dId = sysDeptEntity.getDeptId(); - + log.info("获取deptId为:{}",dId); gfsh = getGfsh(dId, taxnoMap, parentIdMap); } }