fuliqi
2024-09-02 bb4c01a00c8203fdadf38aca9290227f6682655f
ycl-server/src/main/java/com/ycl/platform/controller/YwPointController.java
@@ -101,7 +101,7 @@
    @GetMapping("/list")
    @ApiOperation(value = "列表", notes = "列表")
    @PreAuthorize("@ss.hasPermi('point:list')")
//    @PreAuthorize("@ss.hasPermi('point:list')")
    public Result list() {
        return ywPointService.all();
    }
@@ -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);
    }
}