java110 hace 5 años
padre
commit
6ff911c8be

+ 1 - 1
service-fee/src/main/java/com/java110/fee/bmo/feeManualCollectionDetail/impl/GetCollectionBMOImpl.java

@@ -62,7 +62,7 @@ public class GetCollectionBMOImpl implements IGetExportCollectionBMO {
 
     private void doDealDetail(FeeManualCollectionDto tmpFeeManualCollectionDto, List<FeeConfigDto> feeConfigDtos, JSONArray data) {
 
-        JSONObject dataObj = new JSONObject();
+        JSONObject dataObj = new JSONObject(true);
 
         List<FeeManualCollectionDetailDto> feeManualCollectionDetailDtos = null;
 

+ 2 - 5
service-front/src/main/java/com/java110/front/smo/assetExport/impl/ExportFeeManualCollectionSMOImpl.java

@@ -135,10 +135,6 @@ public class ExportFeeManualCollectionSMOImpl extends BaseComponentSMO implement
         row.setHeight((short) (200 * 10));
         row = sheet.createRow(1);
         row.createCell(0).setCellValue("序号");
-        row.createCell(1).setCellValue("房号");
-        row.createCell(2).setCellValue("姓名");
-        row.createCell(3).setCellValue("联系电话");
-        row.createCell(4).setCellValue("收费面积/m2");
 
 
         //查询楼栋信息
@@ -162,7 +158,8 @@ public class ExportFeeManualCollectionSMOImpl extends BaseComponentSMO implement
         for (int roomIndex = 0; roomIndex < rooms.size(); roomIndex++) {
             row = sheet.createRow(roomIndex + 2);
             dataObj = rooms.getJSONObject(roomIndex);
-            dataKeyIndex = 0;
+            dataKeyIndex = 1;
+            row.createCell(0).setCellValue(roomIndex + 1);
             for (String key : dataObj.keySet()) {
                 row.createCell(dataKeyIndex).setCellValue(dataObj.getString(key));
                 dataKeyIndex++;