Jelajahi Sumber

处理 json 转义字符

liuam 7 tahun lalu
induk
melakukan
28b779da8b

+ 6 - 6
src/main/java/com/uas/credit/controller/ErpQueryController.java

@@ -59,13 +59,13 @@ public class ErpQueryController {
         }
         if (erpQuery != null) {
             // 查询企业债务信息
-            String endeptinfoRoot = StringEscapeUtils.unescapeJson(enterpriseDeptService.queryEnterpriseDept(erpQuery));
+            String endeptinfoRoot = enterpriseDeptService.queryEnterpriseDept(erpQuery);
             // 查询企业经营异常信息
-            String abnormalRoot = StringEscapeUtils.unescapeJson(enexceptionService.queryEnexception(erpQuery));
+            String abnormalRoot = enexceptionService.queryEnexception(erpQuery);
             // 查询企业信用信息
-            String encreditinfoRoot = StringEscapeUtils.unescapeJson(creditInfoService.queryEnCreditInfo(erpQuery));
+            String encreditinfoRoot = creditInfoService.queryEnCreditInfo(erpQuery);
             // 查询企业风险信息
-            String enRiskInfoRoot = StringEscapeUtils.unescapeJson(enRiskInfoService.queryEnRiskInfo(erpQuery));
+            String enRiskInfoRoot = enRiskInfoService.queryEnRiskInfo(erpQuery);
             enterpriseJson = new EnterpriseJson(endeptinfoRoot, abnormalRoot, encreditinfoRoot, enRiskInfoRoot);
 
             enterpriseJsonService.save(enterpriseJson);
@@ -86,9 +86,9 @@ public class ErpQueryController {
         }
         if (erpQuery != null) {
             // 查询个人身份信息
-            String policeCheckRoot = StringEscapeUtils.unescapeJson(personalService.queryPoliceCheck(erpQuery));
+            String policeCheckRoot = personalService.queryPoliceCheck(erpQuery);
             // 查询个人股东信息
-            String personCorporationRoot = StringEscapeUtils.unescapeJson(personCorporationService.queryPersonCorporation(erpQuery));
+            String personCorporationRoot = personCorporationService.queryPersonCorporation(erpQuery);
 
 
             personJson = new PersonJson(policeCheckRoot, personCorporationRoot);