From 4d6e3c8c4e57ec89d883b88c7559f7d0abb80181 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期五, 25 九月 2020 00:39:36 +0800
Subject: [PATCH] 优化代码 托收导出
---
service-front/src/main/java/com/java110/front/smo/assetExport/impl/ExportFeeManualCollectionSMOImpl.java | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/service-front/src/main/java/com/java110/front/smo/assetExport/impl/ExportFeeManualCollectionSMOImpl.java b/service-front/src/main/java/com/java110/front/smo/assetExport/impl/ExportFeeManualCollectionSMOImpl.java
index 6a0ecb2..cd4c594 100644
--- a/service-front/src/main/java/com/java110/front/smo/assetExport/impl/ExportFeeManualCollectionSMOImpl.java
+++ b/service-front/src/main/java/com/java110/front/smo/assetExport/impl/ExportFeeManualCollectionSMOImpl.java
@@ -2,6 +2,7 @@
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
+import com.alibaba.fastjson.parser.Feature;
import com.java110.core.component.BaseComponentSMO;
import com.java110.core.context.IPageData;
import com.java110.entity.component.ComponentValidateResult;
@@ -101,7 +102,7 @@
return null;
}
- JSONObject savedRoomInfoResults = JSONObject.parseObject(responseEntity.getBody());
+ JSONObject savedRoomInfoResults = JSONObject.parseObject(responseEntity.getBody(), Feature.OrderedField);
if (!savedRoomInfoResults.containsKey("data")) {
@@ -147,8 +148,8 @@
JSONObject dataObj = rooms.getJSONObject(0);
int dataKeyIndex = 1;
for (String key : dataObj.keySet()) {
- if (key.contains("-")) {
- row.createCell(dataKeyIndex).setCellValue(key.substring(key.indexOf("-") + 1));
+ if (key.contains("_")) {
+ row.createCell(dataKeyIndex).setCellValue(key.substring(key.indexOf("_") + 1));
} else {
row.createCell(dataKeyIndex).setCellValue(key);
}
--
Gitblit v1.8.0