| | |
| | | import com.ycl.system.domain.group.Add; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import jakarta.validation.constraints.NotBlank; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import lombok.RequiredArgsConstructor; |
| | |
| | | |
| | | @PostMapping("/import/{unitId}") |
| | | @ApiOperation(value = "导入数据", notes = "导入数据") |
| | | public Result importData(MultipartFile file, @PathVariable("unitId") Integer unitId, Date startTime, Date endTime, Boolean provinceTag, Boolean importantTag, Boolean importantCommandImageTag) throws IOException { |
| | | return ywPointService.importData(file, unitId, startTime, endTime, provinceTag, importantTag, importantCommandImageTag); |
| | | public Result importData(MultipartFile file, |
| | | @PathVariable("unitId") Integer unitId, |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") Date startTime, |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime, |
| | | Boolean provinceTag, |
| | | Boolean importantCommandImageTag) throws IOException { |
| | | return ywPointService.importData(file, unitId, startTime, endTime, provinceTag, importantCommandImageTag); |
| | | } |
| | | |
| | | } |