| | |
| | | BusinessVO vo = new BusinessVO(); |
| | | // 先查企业工商信息 更新数据 |
| | | JSONObject jsonObject = getQiChaChaBasicDetailsCompany(company.getCompanyName()); |
| | | Object result = jsonObject.get("Result"); |
| | | jsonObject = JSONObject.parseObject(result.toString()); |
| | | company.setOperName(jsonObject.getString("OperName")); |
| | | company.setBelongOrg(jsonObject.getString("BelongOrg")); |
| | | company.setRegistrationStatus(jsonObject.getString("Status")); |
| | | company.setRegisteredCapital(jsonObject.getString("RegisteredCapital")); |
| | | company.setRegisteredCapital(jsonObject.getString("RegisteredCapital")); |
| | | company.setPaidInFunds(jsonObject.getString("PaidUpCapital")); |
| | | companyMapper.updateById(company); |
| | | BeanUtils.copyProperties(company, vo); |
| | |
| | | |
| | | String name = companyTypeService.getById(company.getCompanyCategory()).getName(); |
| | | vo.setCompanyCategoryName(name); |
| | | vo.setOperName(company.getOperName()); |
| | | vo.setBelongOrg(company.getBelongOrg()); |
| | | vo.setRegistrationStatus(company.getRegistrationStatus()); |
| | | return vo; |
| | | } |
| | | |
| | |
| | | if (null == companyInfo || companyInfo.getIsDelete() != 0) { |
| | | throw new ServiceException("公司不存在"); |
| | | } |
| | | JSONObject jsonObject=getReport(companyInfo.getLink().split("=")[1]); |
| | | String link = companyInfo.getLink(); |
| | | String[] split = link.split("="); |
| | | JSONObject jsonObject=getReport(split[split.length-1]); |
| | | // JSONObject jsonObject=getReport("ZZD20250508017232394218445"); |
| | | if (!"1001".equals(jsonObject.getString("code"))){ |
| | | return R.fail(jsonObject.get("msg")); |
| | |
| | | if (null == companyInfo || companyInfo.getIsDelete() != 0) { |
| | | throw new ServiceException("公司不存在"); |
| | | } |
| | | JSONObject jsonObject=getReport(companyInfo.getLink().split("=")[1]); |
| | | String link = companyInfo.getLink(); |
| | | String[] split = link.split("="); |
| | | JSONObject jsonObject=getReport(split[split.length-1]); |
| | | // JSONObject jsonObject=getReport("ZZD20250508017232394218445"); |
| | | if (!"1001".equals(jsonObject.getString("code"))){ |
| | | return R.fail(jsonObject.get("msg")); |
| | |
| | | taxVO.setTaxpayerType(taxpayerType); |
| | | |
| | | //近12月增税销售额 |
| | | JSONObject taxPrevMnMthsAllTaxDclrPrjInfoDict = (JSONObject) taxInfo.get("taxPrevMnMthsAllTaxDclrPrjInfoDict"); |
| | | |
| | | JSONObject taxPrev12mthsAllTaxDclrPrjInfoDict = (JSONObject) taxPrevMnMthsAllTaxDclrPrjInfoDict.get("taxPrev12mthsAllTaxDclrPrjInfoDict"); |
| | | // 使用 getBigDecimal 方法,自动处理类型转换 |
| | | BigDecimal vatTaxValue = taxPrev12mthsAllTaxDclrPrjInfoDict.getBigDecimal("vatTaxShouldsaleAmt"); |
| | | taxVO.setVatTaxShouldsaleAmt12(vatTaxValue); // 自动处理 null |
| | | //近24月增税销售额 |
| | | JSONObject taxPrev24mthsAllTaxDclrPrjInfoDict = taxPrevMnMthsAllTaxDclrPrjInfoDict.getJSONObject("taxPrev24mthsAllTaxDclrPrjInfoDict"); |
| | | if(null != taxPrev24mthsAllTaxDclrPrjInfoDict){ |
| | | taxVO.setVatTaxShouldsaleAmt24( (BigDecimal) taxPrev24mthsAllTaxDclrPrjInfoDict.get("vatTaxShouldsaleAmt")); |
| | | JSONObject taxPrevMnMthsAllTaxDclrPrjInfoDict = taxInfo.getJSONObject("taxPrevMnMthsAllTaxDclrPrjInfoDict"); |
| | | if (null != taxPrevMnMthsAllTaxDclrPrjInfoDict){ |
| | | JSONObject taxPrev12mthsAllTaxDclrPrjInfoDict = taxPrevMnMthsAllTaxDclrPrjInfoDict.getJSONObject("taxPrev12mthsAllTaxDclrPrjInfoDict"); |
| | | if (null != taxPrev12mthsAllTaxDclrPrjInfoDict){ |
| | | // 使用 getBigDecimal 方法,自动处理类型转换 |
| | | BigDecimal vatTaxValue = taxPrev12mthsAllTaxDclrPrjInfoDict.getBigDecimal("vatTaxShouldsaleAmt"); |
| | | taxVO.setVatTaxShouldsaleAmt12(vatTaxValue); // 自动处理 null |
| | | } |
| | | //近24月增税销售额 |
| | | JSONObject taxPrev24mthsAllTaxDclrPrjInfoDict = taxPrevMnMthsAllTaxDclrPrjInfoDict.getJSONObject("taxPrev24mthsAllTaxDclrPrjInfoDict"); |
| | | if(null != taxPrev24mthsAllTaxDclrPrjInfoDict){ |
| | | taxVO.setVatTaxShouldsaleAmt24( (BigDecimal) taxPrev24mthsAllTaxDclrPrjInfoDict.get("vatTaxShouldsaleAmt")); |
| | | } |
| | | //近12月增税应纳额(元) |
| | | taxVO.setVatTaxShouldpay(taxPrev12mthsAllTaxDclrPrjInfoDict.getBigDecimal("vatTaxShouldpay")); |
| | | } |
| | | |
| | | |
| | | |
| | | JSONObject taxPrevMnMthsTaxInfoDict = taxInfo.getJSONObject("taxPrevMnMthsTaxInfoDict"); |
| | | if (null!=taxPrevMnMthsTaxInfoDict){ |
| | |
| | | taxVO.setTaxAmt12( (BigDecimal) taxPrev12mthsTaxInfo.get("taxAmt")); |
| | | |
| | | //近24月纳税总额(元) |
| | | JSONObject taxPrev24mthsTaxInfo = (JSONObject) taxPrevMnMthsTaxInfoDict.get("taxPrev24mthsTaxInfo"); |
| | | taxVO.setTaxAmt24( (BigDecimal) taxPrev24mthsTaxInfo.get("taxAmt")); |
| | | JSONObject taxPrev24mthsTaxInfo = taxPrevMnMthsTaxInfoDict.getJSONObject("taxPrev24mthsTaxInfo"); |
| | | if (null != taxPrev24mthsTaxInfo){ |
| | | taxVO.setTaxAmt24( (BigDecimal) taxPrev24mthsTaxInfo.get("taxAmt")); |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | //近12月增税应纳额(元) |
| | | taxVO.setVatTaxShouldpay(taxPrev12mthsAllTaxDclrPrjInfoDict.getBigDecimal("vatTaxShouldpay")); |
| | | |
| | | |
| | | //近12个月滞纳金金额(元) 次数 |
| | | JSONObject taxPrevMnMthsOverdueFineInfoDict = taxInfo.getJSONObject("taxPrevMnMthsOverdueFineInfoDict"); |
| | | if (null != taxPrevMnMthsOverdueFineInfoDict){ |
| | | JSONObject taxPrev12mthsOverdueFineInfo = (JSONObject) taxPrevMnMthsOverdueFineInfoDict.get("taxPrev12mthsOverdueFineInfo"); |
| | | taxVO.setOverdueFineInfoAmt12( (BigDecimal) taxPrev12mthsOverdueFineInfo.get("overdueFineInfoAmt")); |
| | | taxVO.setOverdueFineInfoCnt12( (Integer) taxPrev12mthsOverdueFineInfo.get("overdueFineInfoCnt")); |
| | | JSONObject taxPrev12mthsOverdueFineInfo = taxPrevMnMthsOverdueFineInfoDict.getJSONObject("taxPrev12mthsOverdueFineInfo"); |
| | | if (null!= taxPrev12mthsOverdueFineInfo){ |
| | | Object o = taxPrev12mthsOverdueFineInfo.get("overdueFineInfoAmt"); |
| | | if(o!=null){ |
| | | taxVO.setOverdueFineInfoAmt12( new BigDecimal(o.toString()) ); |
| | | } |
| | | |
| | | taxVO.setOverdueFineInfoCnt12( (Integer) taxPrev12mthsOverdueFineInfo.get("overdueFineInfoCnt")); |
| | | } |
| | | // 近3个月滞纳金金额(元) |
| | | JSONObject taxPrev3mthsOverdueFineInfo = (JSONObject) taxPrevMnMthsOverdueFineInfoDict.get("taxPrev3mthsOverdueFineInfo"); |
| | | taxVO.setOverdueFineInfoCnt3( (Integer) taxPrev3mthsOverdueFineInfo.get("overdueFineInfoCnt")); |
| | | JSONObject taxPrev3mthsOverdueFineInfo = taxPrevMnMthsOverdueFineInfoDict.getJSONObject("taxPrev3mthsOverdueFineInfo"); |
| | | if (null != taxPrev3mthsOverdueFineInfo){ |
| | | taxVO.setOverdueFineInfoCnt3( (Integer) taxPrev3mthsOverdueFineInfo.get("overdueFineInfoCnt")); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | if (null == companyInfo || companyInfo.getIsDelete() != 0) { |
| | | throw new ServiceException("公司不存在"); |
| | | } |
| | | JSONObject jsonObject=getReport(companyInfo.getLink().split("=")[1]); |
| | | String link = companyInfo.getLink(); |
| | | String[] split = link.split("="); |
| | | JSONObject jsonObject=getReport(split[split.length-1]); |
| | | // JSONObject jsonObject=getReport("ZZD20250508017232394218445"); |
| | | if (!"1001".equals(jsonObject.getString("code"))){ |
| | | return R.fail(jsonObject.get("msg")); |