KKSU
2023-11-22 c3793ad938cefba5fa76258d70e0cbc37bcf151c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package cc.mrbird.febs.mall.mapper;
 
import cc.mrbird.febs.mall.dto.ApiOrderListDto;
import cc.mrbird.febs.mall.entity.MallProductBuy;
import cc.mrbird.febs.mall.vo.ApiOrderBuyInfoVo;
import cc.mrbird.febs.mall.vo.ApiOrderListVo;
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);
}