package org.springblade.swzdr.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springblade.swzdr.excel.RyXnsfExcel;
import org.springblade.swzdr.mapper.RyXnsfMapper;
import org.springblade.swzdr.pojo.entity.RyXnsfEntity;
import org.springblade.swzdr.pojo.vo.RyXnsfVO;
import org.springblade.swzdr.service.IRyXnsfService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 人员_虚拟身份信息 服务实现类
 *
 * @author BladeX
 * @since 2024-09-12
 */
@Service
public class RyXnsfServiceImpl extends BaseServiceImpl<RyXnsfMapper, RyXnsfEntity> implements IRyXnsfService {

	@Override
	public IPage<RyXnsfVO> selectRyXnsfPage(IPage<RyXnsfVO> page, RyXnsfVO ryXnsf) {
		return page.setRecords(baseMapper.selectRyXnsfPage(page, ryXnsf));
	}

	@Override
	public List<RyXnsfExcel> exportRyXnsf(Wrapper<RyXnsfEntity> queryWrapper) {
		List<RyXnsfExcel> ryXnsfList = baseMapper.exportRyXnsf(queryWrapper);
		//ryXnsfList.forEach(ryXnsf -> {
		//	ryXnsf.setTypeName(DictCache.getValue(DictEnum.YES_NO, RyXnsf.getType()));
		//});
		return ryXnsfList;
	}

}
