KKSU
2024-09-10 e17dc6ecf00516037d94332ef2d71ef6c3ec9727
src/main/java/cc/mrbird/febs/mall/mapper/MallProductBuyMapper.java
@@ -1,12 +1,19 @@
package cc.mrbird.febs.mall.mapper;
import cc.mrbird.febs.mall.dto.ApiOrderBuyDto;
import cc.mrbird.febs.mall.dto.ApiOrderListDto;
import cc.mrbird.febs.mall.dto.ApiOrderSellDto;
import cc.mrbird.febs.mall.entity.MallProductBuy;
import cc.mrbird.febs.mall.vo.ApiOrderBuyInfoVo;
import cc.mrbird.febs.mall.vo.ApiOrderBuyVo;
import cc.mrbird.febs.mall.vo.ApiOrderListVo;
import cc.mrbird.febs.mall.vo.ApiOrderSellVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import java.math.BigDecimal;
import java.util.List;
public interface MallProductBuyMapper extends BaseMapper<MallProductBuy> {
    MallProductBuy selectMemberIdAndNFTIdAndStateAndMateState(@Param("memberId")Long memberId,
@@ -17,4 +24,19 @@
    IPage<ApiOrderListVo> selectListInPage(IPage<ApiOrderListVo> page, @Param("record")ApiOrderListDto apiOrderListDto);
    ApiOrderBuyInfoVo selectBuyById(@Param("id")Long productBuyId);
    List<MallProductBuy> selectListByStateAndProductNFTId(@Param("state")int value, @Param("nftId")Long nftId, @Param("mateState")int mateState);
    List<MallProductBuy> selectListByStateAndMateState(@Param("state")int value, @Param("mateState")int mateState);
    IPage<ApiOrderBuyVo> selectBuyListInPage(IPage<ApiOrderBuyVo> page, @Param("record")ApiOrderBuyDto apiOrderBuyDto);
    Integer selectListByMemberIdAndState(@Param("memberId")Long id);
    IPage<ApiOrderSellVo> selectSellListInPage(IPage<ApiOrderSellVo> page, @Param("record")ApiOrderSellDto apiOrderBuyDto);
    List<MallProductBuy> selectTotalPerk();
    BigDecimal selectTotalPerkByMemberId(@Param("memberId")Long id);
}