wms-serve-mule/src/main/java/com/wms/service/serviceImplements/GoodsServiceImplements.java

46 lines
1.1 KiB
Java
Raw Normal View History

2024-07-04 07:43:04 +08:00
package com.wms.service.serviceImplements;
import com.wms.entity.table.Goods;
import com.wms.mapper.GoodsMapper;
import com.wms.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class GoodsServiceImplements implements GoodsService {
private final GoodsMapper goodsMapper;
@Autowired
public GoodsServiceImplements(GoodsMapper goodsMapper) {
this.goodsMapper = goodsMapper;
}
@Override
public List<Goods> selGoods(Goods goods){
return this.goodsMapper.selGoods(goods);
}
@Override
public Goods selGoodsByGoodsId(String goodsId) {
return this.goodsMapper.selGoodsByGoodsId(goodsId);
}
@Override
public int addGoods(Goods goods) {
return this.goodsMapper.addGoods(goods);
}
@Override
public int modifyGoods(Goods goods) {
return this.goodsMapper.modifyGoods(goods);
}
@Override
public int deleteGoods(String goodsId) {
return this.goodsMapper.deleteGoods(goodsId);
}
}