package com.chinaweal.aiccs.aiccs.revoke.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.chinaweal.aiccs.aiccs.revoke.entity.Revokelist;
import com.chinaweal.aiccs.aiccs.revoke.entity.dto.RevokeListDto;
import com.chinaweal.aiccs.aiccs.revoke.mapper.RevokelistMapper;
import com.chinaweal.aiccs.aiccs.revoke.service.RevokelistService;
import com.chinaweal.youfool.framework.springboot.mybatis.plus.BaseServiceImpl;
import org.springframework.stereotype.Service;

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

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Lee
 * @since 2021-08-26
 */
@Service
public class RevokelistServiceImpl extends BaseServiceImpl<RevokelistMapper, Revokelist> implements RevokelistService {

    @Override
    public IPage<RevokeListDto> selectRevokeListPage(IPage<RevokeListDto> page, Map<String, Object> customParamMap) {

        return baseMapper.selectRevokeListPage(page,customParamMap);
    }

    @Override
    public List<Revokelist> selectByCaseNo(String caseNo) {
        LambdaQueryWrapper<Revokelist> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(Revokelist::getCaseno,caseNo);
        return list(wrapper);
    }
}
