46 lines
1.1 KiB
Java
46 lines
1.1 KiB
Java
|
|
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);
|
||
|
|
}
|
||
|
|
}
|