| | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.IOException; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | } |
| | | |
| | | |
| | | @RepeatSubmit |
| | | @PreAuthorize("hasAnyAuthority('hazmat:manage:company','hazmat:manage:common')") |
| | | @ApiOperation(value = "危化品基础数据Excel导入") |
| | | @PostMapping("/importExcel") |
| | | public CommonResult importExcel( MultipartFile file) throws IOException { |
| | | return CommonResult.success(productBasicService.importExcel(file)); |
| | | } |
| | | |
| | | |
| | | |
| | | } |