|
|
|
|
@ -124,7 +124,8 @@ public class ErpProductController {
|
|
|
|
|
.setName(product.getName()).setBarCode(product.getBarCode())
|
|
|
|
|
.setCategoryId(product.getCategoryId()).setCategoryName(product.getCategoryName())
|
|
|
|
|
.setUnitId(product.getUnitId()).setUnitName(product.getUnitName())
|
|
|
|
|
.setPurchasePrice(product.getPurchasePrice()).setSalePrice(product.getSalePrice()).setMinPrice(product.getMinPrice())));
|
|
|
|
|
.setPurchasePrice(product.getPurchasePrice()).setSalePrice(product.getSalePrice())
|
|
|
|
|
.setMinPrice(product.getMinPrice()).setImages(product.getImages())));
|
|
|
|
|
}
|
|
|
|
|
@GetMapping("/simple-list-product")
|
|
|
|
|
@Operation(summary = "获得产品精简列表", description = "只包含被开启的产品,主要用于前端的下拉选项")
|
|
|
|
|
@ -137,7 +138,8 @@ public class ErpProductController {
|
|
|
|
|
.setName(product.getName()).setBarCode(product.getBarCode())
|
|
|
|
|
.setCategoryId(product.getCategoryId()).setCategoryName(product.getCategoryName())
|
|
|
|
|
.setUnitId(product.getUnitId()).setUnitName(product.getUnitName())
|
|
|
|
|
.setPurchasePrice(product.getPurchasePrice()).setSalePrice(product.getSalePrice()).setMinPrice(product.getMinPrice())));
|
|
|
|
|
.setPurchasePrice(product.getPurchasePrice()).setSalePrice(product.getSalePrice())
|
|
|
|
|
.setMinPrice(product.getMinPrice()).setImages(product.getImages())));
|
|
|
|
|
}
|
|
|
|
|
@GetMapping("/simple-list-item")
|
|
|
|
|
@Operation(summary = "获得原料精简列表", description = "只包含被开启的原料,主要用于前端的下拉选项")
|
|
|
|
|
@ -147,7 +149,8 @@ public class ErpProductController {
|
|
|
|
|
.setName(product.getName()).setBarCode(product.getBarCode())
|
|
|
|
|
.setCategoryId(product.getCategoryId()).setCategoryName(product.getCategoryName())
|
|
|
|
|
.setUnitId(product.getUnitId()).setUnitName(product.getUnitName())
|
|
|
|
|
.setPurchasePrice(product.getPurchasePrice()).setSalePrice(product.getSalePrice()).setMinPrice(product.getMinPrice())));
|
|
|
|
|
.setPurchasePrice(product.getPurchasePrice()).setSalePrice(product.getSalePrice())
|
|
|
|
|
.setMinPrice(product.getMinPrice()).setImages(product.getImages())));
|
|
|
|
|
}
|
|
|
|
|
@Resource
|
|
|
|
|
private ErpProductCategoryService productCategoryService;
|
|
|
|
|
@ -169,7 +172,8 @@ public class ErpProductController {
|
|
|
|
|
.setName(product.getName()).setBarCode(product.getBarCode())
|
|
|
|
|
.setCategoryId(product.getCategoryId()).setCategoryName(product.getCategoryName())
|
|
|
|
|
.setUnitId(product.getUnitId()).setUnitName(product.getUnitName())
|
|
|
|
|
.setPurchasePrice(product.getPurchasePrice()).setSalePrice(product.getSalePrice()).setMinPrice(product.getMinPrice())));
|
|
|
|
|
.setPurchasePrice(product.getPurchasePrice()).setSalePrice(product.getSalePrice())
|
|
|
|
|
.setMinPrice(product.getMinPrice()).setImages(product.getImages())));
|
|
|
|
|
}
|
|
|
|
|
@GetMapping("/simple-list-component")
|
|
|
|
|
@Operation(summary = "获得备件精简列表", description = "用于前端的下拉选项")
|
|
|
|
|
@ -179,7 +183,8 @@ public class ErpProductController {
|
|
|
|
|
.setName(product.getName()).setBarCode(product.getBarCode())
|
|
|
|
|
.setCategoryId(product.getCategoryId()).setCategoryName(product.getCategoryName())
|
|
|
|
|
.setUnitId(product.getUnitId()).setUnitName(product.getUnitName())
|
|
|
|
|
.setPurchasePrice(product.getPurchasePrice()).setSalePrice(product.getSalePrice()).setMinPrice(product.getMinPrice())));
|
|
|
|
|
.setPurchasePrice(product.getPurchasePrice()).setSalePrice(product.getSalePrice())
|
|
|
|
|
.setMinPrice(product.getMinPrice()).setImages(product.getImages())));
|
|
|
|
|
}
|
|
|
|
|
@GetMapping("/export-excel")
|
|
|
|
|
@Operation(summary = "导出产品 Excel")
|
|
|
|
|
|