From ac738e1d339b084c5335a6d1b5f27c3f06b1ed77 Mon Sep 17 00:00:00 2001 From: liujie <1793218484@qq.com> Date: 星期五, 08 八月 2025 18:49:03 +0800 Subject: [PATCH] 修改bug --- ruoyi-system/src/main/java/com/ruoyi/system/service/impl/OrderServiceImpl.java | 25 ++++++++++++++++++++----- 1 files changed, 20 insertions(+), 5 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/OrderServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/OrderServiceImpl.java index f99a18d..5d2088e 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/OrderServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/OrderServiceImpl.java @@ -170,10 +170,12 @@ 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); @@ -191,6 +193,9 @@ String name = companyTypeService.getById(company.getCompanyCategory()).getName(); vo.setCompanyCategoryName(name); + vo.setOperName(company.getOperName()); + vo.setBelongOrg(company.getBelongOrg()); + vo.setRegistrationStatus(company.getRegistrationStatus()); return vo; } @@ -329,7 +334,9 @@ 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")); @@ -357,7 +364,9 @@ 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")); @@ -426,7 +435,11 @@ if (null != taxPrevMnMthsOverdueFineInfoDict){ JSONObject taxPrev12mthsOverdueFineInfo = taxPrevMnMthsOverdueFineInfoDict.getJSONObject("taxPrev12mthsOverdueFineInfo"); if (null!= taxPrev12mthsOverdueFineInfo){ - taxVO.setOverdueFineInfoAmt12( (BigDecimal) taxPrev12mthsOverdueFineInfo.get("overdueFineInfoAmt")); + Object o = taxPrev12mthsOverdueFineInfo.get("overdueFineInfoAmt"); + if(o!=null){ + taxVO.setOverdueFineInfoAmt12( new BigDecimal(o.toString()) ); + } + taxVO.setOverdueFineInfoCnt12( (Integer) taxPrev12mthsOverdueFineInfo.get("overdueFineInfoCnt")); } // 近3个月滞纳金金额(元) @@ -458,7 +471,9 @@ 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")); -- Gitblit v1.7.1