|
@ -3239,7 +3239,8 @@ public class ProjectServiceImpl extends BaseServiceImpl<ProjectDao, ProjectEntit |
|
|
* @date 2022/5/18 10:03 |
|
|
* @date 2022/5/18 10:03 |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public List<SatisfactionEvaluationListResultDTO> satisfactionEvaluationList(SatisfactionEvaluationListFormDTO formDTO) { |
|
|
public PageData<SatisfactionEvaluationListResultDTO> satisfactionEvaluationList(SatisfactionEvaluationListFormDTO formDTO) { |
|
|
|
|
|
PageData<SatisfactionEvaluationListResultDTO> data = new PageData<>(new ArrayList<>(),NumConstant.ZERO); |
|
|
PageInfo<SatisfactionEvaluationListResultDTO> pageInfo = PageHelper.startPage(formDTO.getPageNo(), formDTO.getPageSize(), formDTO.getIsPage()).doSelectPageInfo(() -> satisfactionDetailDao.satisfactionEvaluationList(formDTO.getProjectId())); |
|
|
PageInfo<SatisfactionEvaluationListResultDTO> pageInfo = PageHelper.startPage(formDTO.getPageNo(), formDTO.getPageSize(), formDTO.getIsPage()).doSelectPageInfo(() -> satisfactionDetailDao.satisfactionEvaluationList(formDTO.getProjectId())); |
|
|
List<SatisfactionEvaluationListResultDTO> result = pageInfo.getList(); |
|
|
List<SatisfactionEvaluationListResultDTO> result = pageInfo.getList(); |
|
|
if (CollectionUtils.isNotEmpty(result)){ |
|
|
if (CollectionUtils.isNotEmpty(result)){ |
|
@ -3248,8 +3249,10 @@ public class ProjectServiceImpl extends BaseServiceImpl<ProjectDao, ProjectEntit |
|
|
throw new EpmetException("查询user信息失败..."); |
|
|
throw new EpmetException("查询user信息失败..."); |
|
|
} |
|
|
} |
|
|
listResult.getData().forEach(u -> result.stream().filter(r -> r.getUserId().equals(u.getUserId())).forEach(r -> r.setEvaluationUser(u.getRealName()))); |
|
|
listResult.getData().forEach(u -> result.stream().filter(r -> r.getUserId().equals(u.getUserId())).forEach(r -> r.setEvaluationUser(u.getRealName()))); |
|
|
|
|
|
data.setList(result); |
|
|
|
|
|
data.setTotal(Integer.valueOf(String.valueOf(pageInfo.getTotal()))); |
|
|
} |
|
|
} |
|
|
return result; |
|
|
return data; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|