|
|
|
@ -651,25 +651,20 @@ public class ApplyServiceImpl extends ServiceImpl<ConfirmDao, TDxHttpLog> implem |
|
|
|
|
tDxHttpLog.setResDate(new Date()); |
|
|
|
|
// 获取统计信息
|
|
|
|
|
ApplyStatPo batchData = new ApplyStatPo(); |
|
|
|
|
log.info("111111111111111111111111111111111111111111111111111"); |
|
|
|
|
try { |
|
|
|
|
DynamicContextHolder.push(db + DbConstant.BASICS_READ); |
|
|
|
|
List<TAcOrg> orgList = confirmDao.getUpgradTaxno(); |
|
|
|
|
log.info("222222222222222222222222222222222222222222222222222222222222222"); |
|
|
|
|
if (orgList != null && orgList.size() > 0) { |
|
|
|
|
for (TAcOrg acOrg : orgList) { |
|
|
|
|
DynamicContextHolder.push(db + DbConstant.BUSINESS_READ); |
|
|
|
|
DynamicContextHolder.push(DbConstant.BASICS_READ); |
|
|
|
|
//判断是否为大企业税号
|
|
|
|
|
BasisSysDeptCfg baseSysDeptCfg = basisSysDeptCfgDao.selectOne(new QueryWrapper<BasisSysDeptCfg>().eq("nsrsbh", acOrg.getTaxno())); |
|
|
|
|
if (baseSysDeptCfg != null) { |
|
|
|
|
log.info("333333333333333333333333333333333333333333333333333333333333333"); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
TaxCurrent current = confirmDao.qryTaxCurrent(acOrg.getTaxno()); |
|
|
|
|
log.info("444444444444444444444444444444444444444444444444444444444444444444"); |
|
|
|
|
List<TDxDkCount> dkList = confirmDao.findAllDkCount(acOrg.getTaxno()); |
|
|
|
|
if (current != null) { |
|
|
|
|
log.info("555555555555555555555555555555555555555555555555555555555555555555"); |
|
|
|
|
String taxno = current.getCurTaxno(); |
|
|
|
|
String curskssq = current.getIncomeMoth(); |
|
|
|
|
LocalDate localDate = LocalDate.of(Integer.parseInt(curskssq.substring(0, 4)), |
|
|
|
|