ariesy 增加日志打印

release
yefei 2 years ago
parent 3850a78033
commit 8b01eecde5
  1. 16
      dxhy-base/src/main/java/com/dxhy/base/service/invoicecheck/BaseInvoiceManualCheckServiceImpl.java

@ -578,42 +578,42 @@ public class BaseInvoiceManualCheckServiceImpl extends MpBaseServiceImpl<BaseTDx
@Override
public List<String> getGfshList(List<String> gfshList, List<String> companyCodes) {
log.info("111111111111111111111111111111111111111111111");
DynamicContextHolder.push(DbConstant.BASICS_READ);
List<SysDeptEntity> taxnoList = sysDeptAuthDao.queryTaxnoList();
List<SysDeptEntity> parentIdList = sysDeptAuthDao.queryParentIdList();
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, e -> e.getParentId() == null ? "" : e.getParentId()));
log.info("taxnoMap={},parentIdMap={}",taxnoMap,parentIdMap);
log.info("22222222222222222222222222222222222222222222222222222");
String gfsh = "";
for(String companyCode : companyCodes){
log.info("33333333333333333333333333333333333333333333333333");
QueryWrapper<SysDeptEntity> wrapper = new QueryWrapper<>();
wrapper.eq("org_code",companyCode);
SysDeptEntity sysDeptEntity = sysDeptAuthDao.selectOne(wrapper);
if(sysDeptEntity != null) {
log.info("4444444444444444444444444444444444444444444444444");
String dId = sysDeptEntity.getDeptId();
gfsh = getGfsh(dId, taxnoMap, parentIdMap);
gfshList.add(gfsh);
log.info("获取的税号为:{}",gfsh);
}
}
log.info("购方税号为:{}",gfsh);
gfshList.add(gfsh);
log.info("购方税号list为:{}",gfshList);
return gfshList;
}
private String getGfsh(String deptId,Map<String, String> taxnoMap,Map<String, String> parentIdMap) {
log.info("deptId={}",deptId);
String taxno = taxnoMap.get(deptId);
if(StringUtils.isEmpty(taxno)){
deptId = parentIdMap.get(deptId);
log.info("获取map中的deptId:{}",deptId);
getGfsh(deptId,taxnoMap,parentIdMap);
}
return taxno;

Loading…
Cancel
Save