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 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); } @Override public void clearGoodsInfo() { this.goodsMapper.clearGoodsInfo(); } }