package com.chinaweal.aiccs.aiccs.punishment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.chinaweal.aiccs.aiccs.punishment.entity.EntLock;
import com.chinaweal.aiccs.aiccs.punishment.entity.excel.EntLockExcel;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 业户锁定 Mapper 接口
 * </p>
 *
 * @author Lee
 * @since 2021-06-06
 */
public interface EntlockMapper extends BaseMapper<EntLock> {

    List<EntLock> selectEntLockList();

    List<EntLock> queryByPripid(String pripid);

    IPage<EntLockExcel> queryForExcel(IPage<EntLockExcel> page ,@Param("customParamMap") Map<String, Object> customParamMap);

    /**
     * 筛选状态不为已经解锁
     * @param pripid
     * @return
     */
    List<EntLock> queryByState(@Param("pripid") String pripid, @Param("punishFrom") String punishFrom);

    List<EntLock> queryAll();

    List<EntLock> selectLockEntity(String entName);

    List<Map> selectlocktime(String department);

    List<EntLock> unlocked();

    EntLock check(String pripid);

    /**
     * 筛选最新一条锁定状态为0的所有数据
     * @param
     * @return
     */
    List<EntLock> lockList();


}
