自动生成物料id
This commit is contained in:
@@ -5,15 +5,15 @@ import com.ruoyi.bas.BasProduct.domain.BasProduct;
|
||||
|
||||
/**
|
||||
* 物料信息Service接口
|
||||
*
|
||||
*
|
||||
* @author gw
|
||||
* @date 2025-09-11
|
||||
*/
|
||||
public interface IBasProductService
|
||||
public interface IBasProductService
|
||||
{
|
||||
/**
|
||||
* 查询物料信息
|
||||
*
|
||||
*
|
||||
* @param productGuid 物料信息主键
|
||||
* @return 物料信息
|
||||
*/
|
||||
@@ -21,7 +21,7 @@ public interface IBasProductService
|
||||
|
||||
/**
|
||||
* 查询物料信息列表
|
||||
*
|
||||
*
|
||||
* @param basProduct 物料信息
|
||||
* @return 物料信息集合
|
||||
*/
|
||||
@@ -29,7 +29,7 @@ public interface IBasProductService
|
||||
|
||||
/**
|
||||
* 新增物料信息
|
||||
*
|
||||
*
|
||||
* @param basProduct 物料信息
|
||||
* @return 结果
|
||||
*/
|
||||
@@ -37,7 +37,7 @@ public interface IBasProductService
|
||||
|
||||
/**
|
||||
* 修改物料信息
|
||||
*
|
||||
*
|
||||
* @param basProduct 物料信息
|
||||
* @return 结果
|
||||
*/
|
||||
@@ -45,7 +45,7 @@ public interface IBasProductService
|
||||
|
||||
/**
|
||||
* 批量删除物料信息
|
||||
*
|
||||
*
|
||||
* @param productGuids 需要删除的物料信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
@@ -53,7 +53,7 @@ public interface IBasProductService
|
||||
|
||||
/**
|
||||
* 删除物料信息信息
|
||||
*
|
||||
*
|
||||
* @param productGuid 物料信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.ruoyi.bas.BasProduct.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.bas.BasProduct.mapper.BasProductMapper;
|
||||
@@ -52,6 +54,7 @@ public class BasProductServiceImpl implements IBasProductService
|
||||
@Override
|
||||
public int insertBasProduct(BasProduct basProduct)
|
||||
{
|
||||
basProduct.setProductGuid(IdUtil.fastSimpleUUID());
|
||||
return basProductMapper.insertBasProduct(basProduct);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user