| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ard.common.utils.poi.ExcelUtil; |
| | | import com.ard.oss.model.MinioUploadResult; |
| | | import com.ard.route.domain.route.ArdRouteInformation; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.ard.common.annotation.Log; |
| | | import com.ard.common.core.controller.BaseController; |
| | | import com.ard.common.core.domain.AjaxResult; |
| | | import com.ard.common.enums.BusinessType; |
| | | import com.ard.route.service.IArdRouteInformationService; |
| | | import com.ard.common.core.page.TableDataInfo; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | /** |
| | | * 航线(kmz)Controller |
| | |
| | | return toAjax(ardRouteInformationService.deleteArdRouteInformationByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * 导入航线(kmz)文件 |
| | | */ |
| | | @ApiOperation("导入航线(kmz)文件") |
| | | @PreAuthorize("@ss.hasPermi('route:information:upload')") |
| | | @PostMapping("/upload") |
| | | public AjaxResult upload(@RequestPart("file") MultipartFile file) { |
| | | MinioUploadResult minioUploadResult = ardRouteInformationService.uploadArdRouteInformation(file); |
| | | return success(minioUploadResult); |
| | | } |
| | | |
| | | } |