xiangpei
2024-08-31 7a7acc33c5658643a54c42bfd6f70ed3881a3248
ycl-server/src/main/java/com/ycl/platform/controller/YwPointController.java
@@ -123,6 +123,7 @@
    public Result importData(MultipartFile file,
                             Integer unitId,
                             String startTime,
                             Boolean needUpdateUnit,
                             String endTime) throws IOException, ParseException {
        Date start = null;
        Date end = null;
@@ -137,7 +138,7 @@
            SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
            end = format.parse(endTime);
        }
        return ywPointService.importData(file, unitId, start, end);
        return ywPointService.importData(file, unitId, start, end, needUpdateUnit);
    }
}