| | |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | public IPage<ProductModel> selectModelListPage(Page page, ProductDto productDto) { |
| | | return productModelService.modelListPage(page, productDto); |
| | | } |
| | | |
| | | /** |
| | | * 导入产品 |
| | | */ |
| | | @Log(title = "导入产品",businessType = BusinessType.IMPORT) |
| | | @PostMapping("import") |
| | | public AjaxResult importProduct(MultipartFile file) { |
| | | return AjaxResult.success(productModelService.importProduct(file)); |
| | | } |
| | | } |