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.RyLxdhExcel;
import org.springblade.swzdr.mapper.RyLxdhMapper;
import org.springblade.swzdr.pojo.entity.RyLxdhEntity;
import org.springblade.swzdr.pojo.vo.RyLxdhVO;
import org.springblade.swzdr.service.IRyLxdhService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 人员_联系电话 服务实现类
 *
 * @author BladeX
 * @since 2024-09-12
 */
@Service
public class RyLxdhServiceImpl extends BaseServiceImpl<RyLxdhMapper, RyLxdhEntity> implements IRyLxdhService {

	@Override
	public IPage<RyLxdhVO> selectRyLxdhPage(IPage<RyLxdhVO> page, RyLxdhVO ryLxdh) {
		return page.setRecords(baseMapper.selectRyLxdhPage(page, ryLxdh));
	}

	@Override
	public List<RyLxdhExcel> exportRyLxdh(Wrapper<RyLxdhEntity> queryWrapper) {
		List<RyLxdhExcel> ryLxdhList = baseMapper.exportRyLxdh(queryWrapper);
		//ryLxdhList.forEach(ryLxdh -> {
		//	ryLxdh.setTypeName(DictCache.getValue(DictEnum.YES_NO, RyLxdh.getType()));
		//});
		return ryLxdhList;
	}
}
