package cc.mrbird.febs.dapp.mapper;
|
|
import cc.mrbird.febs.dapp.dto.MallOrderInfoDto;
|
import cc.mrbird.febs.dapp.entity.MallGoods;
|
import cc.mrbird.febs.dapp.entity.MallOrderInfo;
|
import cc.mrbird.febs.dapp.vo.AdminMallOrderVo;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.math.BigDecimal;
|
import java.util.List;
|
import java.util.Map;
|
|
public interface MallGoodsMapper extends BaseMapper<MallGoods> {
|
|
IPage<MallGoods> selectMallGoodsInPage(Page<MallGoods> page, @Param("record")MallGoods mallGoods);
|
|
Integer selectMallGoodsCountByGoodsName(@Param("goodsName")String goodsName);
|
|
Integer selectMallGoodsCountByGoodsNameAndGoodId(@Param("goodsName")String goodsName,@Param("id")Long id);
|
|
Integer selectMallGoodsCountByGoodsNo(@Param("goodsNo")String goodsNo);
|
|
Integer selectMallGoodsCountByGoodsNoAndGoodId(@Param("goodsNo")String goodsNo,@Param("id")Long id);
|
|
Map<String, BigDecimal> selectGoodsStockAndVolume(@Param("id") Long id);
|
|
IPage<MallOrderInfo> selectOrderListInPage(Page<MallOrderInfo> page, @Param("record") MallOrderInfoDto mallOrderInfo);
|
|
List<MallGoods> selectMallGoodsByCategaryId(@Param("categaryId")Long childCategaryId);
|
|
AdminMallOrderVo getMallOrderInfoById(@Param("id")long id);
|
}
|