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 |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 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 c49c6a6..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;
     }
 
@@ -430,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个月滞纳金金额(元)

--
Gitblit v1.7.1