|
@@ -5,7 +5,9 @@ import com.fjhx.item.entity.product.dto.ProductInfoDto;
|
|
|
import com.fjhx.item.entity.product.dto.ProductInfoSelectDto;
|
|
|
import com.fjhx.item.entity.product.vo.ProductInfoVo;
|
|
|
import com.fjhx.item.service.product.ProductInfoService;
|
|
|
+import com.ruoyi.common.annotation.Log;
|
|
|
import com.ruoyi.common.core.domain.BaseSelectDto;
|
|
|
+import com.ruoyi.common.enums.BusinessType;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -57,6 +59,7 @@ public class ProductInfoController {
|
|
|
/**
|
|
|
* 产品库新增
|
|
|
*/
|
|
|
+ @Log(title = "产品物料库", businessType = BusinessType.INSERT)
|
|
|
@PostMapping("/add")
|
|
|
public void add(@RequestBody ProductInfoDto productInfoDto) {
|
|
|
productInfoService.add(productInfoDto);
|
|
@@ -76,6 +79,7 @@ public class ProductInfoController {
|
|
|
/**
|
|
|
* 产品库编辑
|
|
|
*/
|
|
|
+ @Log(title = "产品物料库", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/edit")
|
|
|
public void edit(@RequestBody ProductInfoDto productInfoDto) {
|
|
|
productInfoService.edit(productInfoDto);
|
|
@@ -84,6 +88,7 @@ public class ProductInfoController {
|
|
|
/**
|
|
|
* 产品库删除
|
|
|
*/
|
|
|
+ @Log(title = "产品物料库", businessType = BusinessType.DELETE)
|
|
|
@PostMapping("/delete")
|
|
|
public void delete(@RequestBody BaseSelectDto dto) {
|
|
|
productInfoService.delete(dto.getId());
|
|
@@ -140,6 +145,7 @@ public class ProductInfoController {
|
|
|
/**
|
|
|
* 导出Excel
|
|
|
*/
|
|
|
+ @Log(title = "产品物料库", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/exportExcel")
|
|
|
public void excelExport(HttpServletResponse httpServletResponse, @RequestBody ProductInfoSelectDto dto) {
|
|
|
productInfoService.excelExport(httpServletResponse, dto);
|
|
@@ -148,6 +154,7 @@ public class ProductInfoController {
|
|
|
/**
|
|
|
* 导出Excel物料
|
|
|
*/
|
|
|
+ @Log(title = "产品物料库", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/materialExcelExport")
|
|
|
public void materialExcelExport(HttpServletResponse httpServletResponse, @RequestBody ProductInfoSelectDto dto) {
|
|
|
productInfoService.materialExcelExport(httpServletResponse, dto);
|