| | |
| | | package org.springblade.modules.evaluate.wrapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.springblade.common.cache.SysCache; |
| | | import org.springblade.core.mp.support.BaseEntityWrapper; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | |
| | | for (EvaluateTaskReferrerEntity po:list) { |
| | | Map<String,Object> map = new HashMap<>(); |
| | | User user = userService.getById(po.getCreateUser());//投票人 |
| | | map.put("userName", user.getName()); |
| | | map.put("deptName", SysCache.getDeptNames(user.getDeptId())); |
| | | map.put("postName", SysCache.getPostNames(user.getPostId())); |
| | | map.put("remark", po.getRemark());//投票理由 |
| | | maps.add(map); |
| | | if (null != user) { |
| | | map.put("userName", user.getName()); |
| | | map.put("deptName", SysCache.getDeptNames(user.getDeptId())); |
| | | map.put("postName", SysCache.getPostNames(user.getPostId())); |
| | | map.put("remark", po.getRemark());//投票理由 |
| | | maps.add(map); |
| | | } |
| | | } |
| | | |
| | | return maps; |
| | | IPage<Map<String,Object>> pageVo = new Page<>(pages.getCurrent(), pages.getSize(), pages.getTotal()); |
| | | pageVo.setRecords(maps); |
| | | return pageVo; |
| | | } |
| | | |
| | | |