| | |
| | | |
| | | public interface CommonGoodsMapper extends BaseMapper<CommonGoods> { |
| | | |
| | | |
| | | CommonGoods selectByGoodsIdAndGoodsType(@Param("goodsId") Long goodsId, @Param("goodsType") int goodsType); |
| | | /** |
| | | * 根据商品ID查询 |
| | | * @param goodsId |
| | | * @param goodsType |
| | | * @return |
| | | */ |
| | | CommonGoods selectByGoodsIdAndGoodsType(@Param("goodsId") Long goodsId, @Param("goodsType") Integer goodsType); |
| | | |
| | | |
| | | /** |
| | |
| | | * @param goodsId |
| | | * @return |
| | | */ |
| | | List<CommonGoods> listBySellerId(@Param("sellerId") Long sellerId); |
| | | List<CommonGoods> listBySellerId(@Param("sellerId") Long sellerId, @Param("goodsType") Integer goodsType); |
| | | |
| | | /** |
| | | * 统计店铺商品有券数量 |
| | | * @param sellerId |
| | | * @return |
| | | */ |
| | | long countBySellerIdAndHasCoupon(@Param("sellerId") Long sellerId); |
| | | long countBySellerIdAndHasCoupon(@Param("sellerId") Long sellerId, @Param("goodsType") Integer goodsType); |
| | | |
| | | |
| | | /** |
| | | * 批量商品id查询商品信息 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<CommonGoods> getByListGoodsId(@Param("list") List<Long> list, @Param("goodsType") Integer goodsType); |
| | | |
| | | |
| | | } |