| | |
| | | package com.ruoyi.production.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.basic.pojo.ProductModel; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | @ApiOperation("物料数据") |
| | | @Log(title = "物料数据", businessType = BusinessType.OTHER) |
| | | public AjaxResult productMaterialList(String materialName) { |
| | | List<ProductMaterialGroupDto> productMaterialMap = productMaterialService.ProductMaterialList(materialName); |
| | | @ApiOperation("物料数据类别数据集合") |
| | | @Log(title = "物料数据类别数据集合", businessType = BusinessType.OTHER) |
| | | public AjaxResult productMaterialList(@RequestParam("type") Integer type) { |
| | | List<ProductMaterialGroupDto> productMaterialMap = productMaterialService.ProductMaterialList(type); |
| | | return AjaxResult.success(productMaterialMap); |
| | | } |
| | | |
| | | @GetMapping("/listQuery") |
| | | @ApiOperation("物料数据类别子类数据集合") |
| | | @Log(title = "物料数据类别子类数据集合", businessType = BusinessType.OTHER) |
| | | public AjaxResult productMaterialListByQuery(@RequestParam(value = "materialName", required = false) String materialName, @RequestParam(value = "materialTypeId", required = false) Integer materialTypeId) { |
| | | List<ProductMaterialGroupDto> productMaterialMap = productMaterialService.productMaterialListByQuery(materialName, materialTypeId); |
| | | return AjaxResult.success(productMaterialMap); |
| | | } |
| | | |