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);
|
|
|
|
|
}
|
2025-03-01 23:47:04 +08:00
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void clearGoodsInfo() {
|
|
|
|
|
this.goodsMapper.clearGoodsInfo();
|
|
|
|
|
}
|
2024-07-04 07:43:04 +08:00
|
|
|
}
|