package com.zzsn.modules.kgj.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zzsn.modules.kgj.entity.BaseDataDto;
import com.zzsn.modules.kgj.entity.CisAnsBasedata;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: CIS_ANS_BASEDATA
 * @Author: zzsn-boot
 * @Date:   2020-08-26
 * @Version: V1.0
 */
public interface ICisAnsBasedataService extends IService<CisAnsBasedata>, Runnable {

    /**
     * 从es库中筛选数据
     * @param baseDataDto
     * @return
     */
    Page<CisAnsBasedata> findEsByKey(BaseDataDto baseDataDto);
    Page<CisAnsBasedata> findEsByKey(BaseDataDto baseDataDto, List<Long> webTypeList);
    Page<CisAnsBasedata> findByKey(BaseDataDto baseDataDto, List<Long> webTypeList);

    /**
     * 审核保存
     * @param cisAnsBasedata
     */
    void edit(CisAnsBasedata cisAnsBasedata,Long type);

    /**
     * 点击审核
     * @param cisAnsBasedata
     */
    void clickCheck(CisAnsBasedata cisAnsBasedata);
}
