KKSU
2024-02-19 3882ab4f0e77d46cddb08a4c67bbda6ba44ce8d8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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.util.List;
 
public interface MallProductBuyMapper extends BaseMapper<MallProductBuy> {
    MallProductBuy selectMemberIdAndNFTIdAndStateAndMateState(@Param("memberId")Long memberId,
                                                              @Param("productNFTId")Long productNFTId,
                                                              @Param("state")Integer state,
                                                              @Param("mateState")Integer mateState);
 
    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);
 
    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();
}