package com.kxs.product.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.product.api.model.KxsGdReport;
import com.kxs.product.api.vo.kxsapp.gd.GdReportListVO;
import com.kxs.product.api.vo.kxsapp.machine.MachineUnBindListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 广电报备入网表(KxsGdReport)表数据库访问层
 *
 * @author 系统
 * @since 2024-04-23 10:44:23
 */
@Mapper
public interface KxsGdReportMapper extends BaseMapper<KxsGdReport> {

    /**
     * app分页
     *
     * @param userId  用户ID
     * @param putType 1电渠
     * @param keyword 关键词
     * @return {@link IPage}<{@link GdReportListVO}>
     */
    IPage<GdReportListVO> getByPage(Page<GdReportListVO> page, @Param("userId") Long userId, @Param("status") Integer status, @Param("putType") Integer putType, @Param("keyword") String keyword);

    /**
     * 未绑定未报备广电sn列表
     *
     * @param page   页
     * @param userId 用户 ID
     * @param posSn  POS SN
     * @return {@link IPage}<{@link MachineUnBindListVO}>
     */
    IPage<MachineUnBindListVO> getByUnBindPage(Page<MachineUnBindListVO> page, @Param("userId") Long userId, @Param("posSn") String posSn);

}

