package com.ruoyi.production.controller;
|
|
import com.ruoyi.framework.aspectj.lang.annotation.Log;
|
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
|
import com.ruoyi.framework.web.domain.AjaxResult;
|
import com.ruoyi.production.service.ProductMaterialService;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
/**
|
* <br>
|
* 产品物料信息控制层
|
* </br>
|
*
|
* @author deslrey
|
* @version 1.0
|
* @since 2026/03/11 16:38
|
*/
|
@RestController
|
@RequestMapping("/productMaterial")
|
public class ProductMaterialController {
|
|
@Autowired
|
private ProductMaterialService productMaterialService;
|
|
@GetMapping("/loadData")
|
@ApiOperation("拉取物料编码数据")
|
@Log(title = "拉取物料编码数据", businessType = BusinessType.INSERT)
|
public AjaxResult loadProductMaterialData() {
|
productMaterialService.loadProductMaterialData();
|
return AjaxResult.success();
|
}
|
|
}
|