| | |
| | | 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; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import jakarta.validation.constraints.NotEmpty; |
| | |
| | | |
| | | @PostMapping("/import/{unitId}") |
| | | @ApiOperation(value = "导入数据", notes = "导入数据") |
| | | public Result importData(MultipartFile file, @PathVariable("unitId") Integer unitId) throws IOException { |
| | | return ywPointService.importData(file, unitId); |
| | | 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); |
| | | } |
| | | |
| | | } |