物料
This commit is contained in:
@@ -68,6 +68,12 @@ public class BasProductServiceImpl implements IBasProductService
|
||||
@Override
|
||||
public int insertBasProduct(BasProduct basProduct)
|
||||
{
|
||||
|
||||
|
||||
BasProduct basProduct1 = basProductMapper.selectBasProductByProductId(basProduct.getProductId());
|
||||
if(basProduct1 != null){
|
||||
return 0;
|
||||
}
|
||||
basProduct.setProductGuid(basProduct.getProductId());
|
||||
basProduct.setSpare3(DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss"));
|
||||
//获取当前系统登录用户名
|
||||
@@ -85,6 +91,10 @@ public class BasProductServiceImpl implements IBasProductService
|
||||
@Override
|
||||
public int updateBasProduct(BasProduct basProduct)
|
||||
{
|
||||
BasProduct basProduct1 = basProductMapper.selectBasProductByProductId(basProduct.getProductId());
|
||||
if(basProduct1!=null){
|
||||
return 0;
|
||||
}
|
||||
return basProductMapper.updateBasProduct(basProduct);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user