Explorar o código

优化 缴费明细查询和导出不一致问题

wuxw %!s(int64=2) %!d(string=hai) anos
pai
achega
621fb39035

+ 7 - 0
service-job/src/main/java/com/java110/job/export/adapt/ReportPayFeeDetailAdapt.java

@@ -61,6 +61,13 @@ public class ReportPayFeeDetailAdapt implements IExportDataAdapt {
         row.createCell(21).setCellValue("收银员");
         row.createCell(22).setCellValue("备注");
         JSONObject reqJson = exportDataDto.getReqJson();
+
+        String endTime = reqJson.getString("endTime");
+
+        if (!StringUtil.isEmpty(endTime)) {
+            endTime += " 23:59:59";
+            reqJson.put("endTime", endTime);
+        }
         ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto = BeanConvertUtil.covertBean(reqJson, ReportFeeMonthStatisticsDto.class);
         if (reqJson.containsKey("roomName") && !StringUtil.isEmpty(reqJson.getString("roomName"))) {
             String[] roomNameArray = reqJson.getString("roomName").split("-", 3);