|
|
@ -602,10 +602,11 @@ public class BaseInvoiceManualCheckServiceImpl extends MpBaseServiceImpl<BaseTDx |
|
|
|
if(sysDeptEntity != null) { |
|
|
|
if(sysDeptEntity != null) { |
|
|
|
String dId = sysDeptEntity.getDeptId(); |
|
|
|
String dId = sysDeptEntity.getDeptId(); |
|
|
|
log.info("获取deptId为:{}",dId); |
|
|
|
log.info("获取deptId为:{}",dId); |
|
|
|
gfsh = getGfsh(dId, taxnoMap, parentIdMap); |
|
|
|
if(StringUtils.isNotEmpty(dId)) { |
|
|
|
gfshList.add(gfsh); |
|
|
|
gfsh = getGfsh(dId, taxnoMap, parentIdMap); |
|
|
|
log.info("获取的税号为:{}",gfsh); |
|
|
|
gfshList.add(gfsh); |
|
|
|
|
|
|
|
log.info("获取的税号为:{}", gfsh); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
log.info("购方税号list为:{}",gfshList); |
|
|
|
log.info("购方税号list为:{}",gfshList); |
|
|
@ -615,13 +616,16 @@ public class BaseInvoiceManualCheckServiceImpl extends MpBaseServiceImpl<BaseTDx |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private String getGfsh(String deptId,Map<String, String> taxnoMap,Map<String, String> parentIdMap) { |
|
|
|
private String getGfsh(String deptId,Map<String, String> taxnoMap,Map<String, String> parentIdMap) { |
|
|
|
log.info("deptId={}",deptId); |
|
|
|
String taxno = ""; |
|
|
|
String taxno = taxnoMap.get(deptId); |
|
|
|
if(StringUtils.isNotEmpty(deptId)) { |
|
|
|
|
|
|
|
log.info("deptId={}", deptId); |
|
|
|
if(StringUtils.isEmpty(taxno)){ |
|
|
|
taxno = taxnoMap.get(deptId); |
|
|
|
deptId = parentIdMap.get(deptId); |
|
|
|
|
|
|
|
log.info("获取map中的deptId:{}",deptId); |
|
|
|
if (StringUtils.isEmpty(taxno)) { |
|
|
|
getGfsh(deptId,taxnoMap,parentIdMap); |
|
|
|
deptId = parentIdMap.get(deptId); |
|
|
|
|
|
|
|
log.info("获取map中的deptId:{}", deptId); |
|
|
|
|
|
|
|
getGfsh(deptId, taxnoMap, parentIdMap); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return taxno; |
|
|
|
return taxno; |
|
|
|
} |
|
|
|
} |
|
|
|