| | |
| | | package com.yeshi.fanli.service.inter.goods;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.goods.CommonGoods;
|
| | | import com.yeshi.fanli.exception.goods.CommonGoodsException;
|
| | | import com.yeshi.fanli.goods.CommonGoods;
|
| | |
|
| | | /**
|
| | | * 常规商品库
|
| | |
| | | * @throws CommonGoodsException
|
| | | */
|
| | | public CommonGoods addOrUpdateCommonGoods(CommonGoods commonGoods) throws CommonGoodsException;
|
| | | |
| | | |
| | | /**
|
| | | * 添加商品(无就添加,有则返回)
|
| | | * |
| | | * @param commonGoods
|
| | | * @return
|
| | | * @throws CommonGoodsException
|
| | | */
|
| | | public CommonGoods addCommonGoods(CommonGoods commonGoods) throws CommonGoodsException;
|
| | |
|
| | | /**
|
| | | * 更新商品信息
|
| | |
| | | */
|
| | | public void offlineCommonGoods(Long goodsId, int goodsType);
|
| | |
|
| | | /**
|
| | | * 根据商品ID和商品类型查询库商品
|
| | | * |
| | | * @param goodsId
|
| | | * @param goodsType
|
| | | * @return
|
| | | */
|
| | | public CommonGoods getCommonGoodsByGoodsIdAndGoodsType(Long goodsId, int goodsType);
|
| | |
|
| | | /**
|
| | | * 批量更新
|
| | | * @param listCommonGoods
|
| | | */
|
| | | public void updateBatchCommonGoods(List<CommonGoods> listCommonGoods);
|
| | |
|
| | |
|
| | | /**
|
| | | * 批量插入
|
| | | * @param listCommonGoods
|
| | | */
|
| | | public void addBatchCommonGoods(List<CommonGoods> listCommonGoods);
|
| | |
|
| | | }
|