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.RyLhspExcel;
import org.springblade.swzdr.mapper.RyLhspMapper;
import org.springblade.swzdr.pojo.entity.RyLhspEntity;
import org.springblade.swzdr.pojo.vo.RyLhspVO;
import org.springblade.swzdr.service.IRyLhspService;
import org.springframework.stereotype.Service;

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

/**
 * 人员_列化审批 服务实现类
 *
 * @author BladeX
 * @since 2024-09-24
 */
@Service
public class RyLhspServiceImpl extends BaseServiceImpl<RyLhspMapper, RyLhspEntity> implements IRyLhspService {

	@Override
	public IPage<RyLhspVO> selectRyLhspPage(IPage<RyLhspVO> page, Map<String, String> params) {
		return page.setRecords(baseMapper.selectRyLhspPage(page, params));
	}

	@Override
	public List<RyLhspExcel> exportRyLhsp(Wrapper<RyLhspEntity> queryWrapper) {
		List<RyLhspExcel> ryLhspList = baseMapper.exportRyLhsp(queryWrapper);
		//ryLhspList.forEach(ryLhsp -> {
		//	ryLhsp.setTypeName(DictCache.getValue(DictEnum.YES_NO, RyLhsp.getType()));
		//});
		return ryLhspList;
	}

}
