package com.sptg.pay.biz.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.sptg.pay.api.dto.UserOrderDto;
import com.sptg.pay.api.entity.UserOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zwx
 * @create 2020/5/16 9:58
 */
public interface UserOrderMapper extends BaseMapper<UserOrder> {

    public List<UserOrder> getUserOrderPage(@Param(value = "userOrder") UserOrderDto userOrderDto, @Param(value = "page") Pagination page);

    public UserOrder findUserOrderByCondition(@Param(value = "userOrderDto") UserOrderDto userOrderDto, @Param(value = "ew") Wrapper<UserOrder> wrapper);
}
