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.RyRwzlExcel;
import org.springblade.swzdr.mapper.RyRwzlMapper;
import org.springblade.swzdr.pojo.entity.RyRwzlEntity;
import org.springblade.swzdr.pojo.vo.RyRwzlVO;
import org.springblade.swzdr.service.IRyRwzlService;
import org.springframework.stereotype.Service;

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

/**
 * 人员_任务指令(接收/转递) 服务实现类
 *
 * @author BladeX
 * @since 2024-10-10
 */
@Service
public class RyRwzlServiceImpl extends BaseServiceImpl<RyRwzlMapper, RyRwzlEntity> implements IRyRwzlService {

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

	@Override
	public List<RyRwzlExcel> exportRyRwzl(Wrapper<RyRwzlEntity> queryWrapper) {
		List<RyRwzlExcel> ryRwzlList = baseMapper.exportRyRwzl(queryWrapper);
		//ryRwzlList.forEach(ryRwzl -> {
		//	ryRwzl.setTypeName(DictCache.getValue(DictEnum.YES_NO, RyRwzl.getType()));
		//});
		return ryRwzlList;
	}

}
