| | |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.sales.pojo.SalesLedgerProduct; |
| | | import com.ruoyi.sales.service.ISalesLedgerProductService; |
| | | import com.ruoyi.sales.service.ISalesLedgerService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | private IProductModelService productModelService; |
| | | @Autowired |
| | | private ISalesLedgerProductService salesLedgerProductService; |
| | | |
| | | /** |
| | | * 查询产品 |
| | | */ |
| | |
| | | ExcelUtil<ProductModelExportDto> excelUtil = new ExcelUtil<>(ProductModelExportDto.class); |
| | | excelUtil.importTemplateExcel(response, "产品规格导入模板"); |
| | | } |
| | | |
| | | /** |
| | | * 产品导出 |
| | | */ |
| | | @GetMapping("exportData") |
| | | @ApiOperation("产品导出") |
| | | public void exportData(HttpServletResponse response, Long productId) { |
| | | productModelService.exportData(response, productId); |
| | | } |
| | | |
| | | } |