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.XfqtExcel;
import org.springblade.swzdr.mapper.XfqtMapper;
import org.springblade.swzdr.pojo.entity.XfqtEntity;
import org.springblade.swzdr.pojo.vo.XfqtVO;
import org.springblade.swzdr.service.IXfqtService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 人员_信访群体 服务实现类
 *
 * @author BladeX
 * @since 2024-09-12
 */
@Service
public class XfqtServiceImpl extends BaseServiceImpl<XfqtMapper, XfqtEntity> implements IXfqtService {

	@Override
	public IPage<XfqtVO> selectXfqtPage(IPage<XfqtVO> page, XfqtVO xfqt) {
		return page.setRecords(baseMapper.selectXfqtPage(page, xfqt));
	}

	@Override
	public List<XfqtExcel> exportXfqt(Wrapper<XfqtEntity> queryWrapper) {
		List<XfqtExcel> xfqtList = baseMapper.exportXfqt(queryWrapper);
		//xfqtList.forEach(xfqt -> {
		//	xfqt.setTypeName(DictCache.getValue(DictEnum.YES_NO, Xfqt.getType()));
		//});
		return xfqtList;
	}

}
