package com.nantian.cloud.jly.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nantian.cloud.jly.entity.CheckEnterprice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nantian.sc.cloud.common.data.datascope.DataScope;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigInteger;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 审查企业列表 Mapper 接口
 * </p>
 *
 * @author scott
 * @since 2020-08-10
 */
@Mapper
public interface CheckEnterpriceMapper extends BaseMapper<CheckEnterprice> {

    List<CheckEnterprice> getCheckEnterpriceByCheckPlanId(String checkPlanId);

    IPage<CheckEnterprice> getCheckEnterpricePageDataByCheckPlanId(@Param("page") Page page, @Param("checkPlanId") String checkPlanId,
                                                  @Param("cmp_name") String cmp_name,@Param("epc") String epc,DataScope dataScope,@Param("checkStatus") String checkStatus);

    IPage<CheckEnterprice> getPageScope(Page page,@Param("query") CheckEnterprice checkEnterprice, DataScope dataScope);

    IPage<Map<String, Object>> queryListByCmp(Page page, @Param("query")CheckEnterprice checkEnterprice);

    void updatecCheckStatus(@Param("checkPlanId") BigInteger checkPlanId, @Param("epc") String epc, @Param("checkStatus") String checkStatus);
}
