| | |
| | | |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "列表", notes = "列表") |
| | | @PreAuthorize("@ss.hasPermi('point:list')") |
| | | // @PreAuthorize("@ss.hasPermi('point:list')") |
| | | public Result list() { |
| | | return ywPointService.all(); |
| | | } |
| | |
| | | public Result importData(MultipartFile file, |
| | | Integer unitId, |
| | | String startTime, |
| | | Boolean needUpdateUnit, |
| | | String endTime) throws IOException, ParseException { |
| | | Date start = null; |
| | | Date end = null; |
| | |
| | | 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); |
| | | } |
| | | |
| | | } |