package com.kxs.store.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kxs.store.api.dto.kxsapp.storeOrder.OrderMonthTotalDTO;
import com.kxs.store.api.dto.kxsapp.storeOrder.OrderMonthTotalDetailDTO;
import com.kxs.store.api.dto.kxsapp.storeOrder.StoreOrderListDTO;
import com.kxs.store.api.model.KxsMachineApply;
import com.kxs.store.api.vo.kxsapp.storeOrder.OrderMonthTotalDetailVO;
import com.kxs.store.api.vo.kxsapp.storeOrder.OrderMonthTotalVO;
import com.kxs.store.api.vo.kxsapp.storeOrder.StoreOrderListVO;
import com.kxs.store.api.vo.kxsapp.userOrder.UserApplyMahineListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 客小爽机具申请表(KxsMachineApply)表数据库访问层
 *
 * @author 系统
 * @since 2024-01-08 09:46:02
 */
@Mapper
public interface KxsMachineApplyMapper extends BaseMapper<KxsMachineApply> {

    /**
     * 订单分页
     *
     * @param page  页
     * @param param 参数
     * @return {@link IPage}<{@link StoreOrderListVO}>
     */
    IPage<StoreOrderListVO> getByPage(Page<StoreOrderListVO> page, @Param("query") StoreOrderListDTO param);


    /**
     * app 用户申请记录
     *
     * @param page   页
     * @param userId 用户 ID
     * @return {@link IPage}<{@link UserApplyMahineListVO}>
     */
    IPage<UserApplyMahineListVO> userApplyMachineList(Page<UserApplyMahineListVO> page, @Param("userId") Long userId);
}

