提交 4fa5e7e1 authored 作者: ljj's avatar ljj

bug:去除核查中的检查统计

上级 6592d129
......@@ -355,48 +355,48 @@ public class ConfirmCheckServiceImpl implements ConfirmCheckService, CommandLine
log.info("[check] 查询账单任务用时:{}ms", pointA);
//市级需要添加详情账单信息
Units unit = unitsRepo.findById(checkBillSelectVo.getUnitId()).get();
if (unit.getLevel() == 2) {
Specification<Task> pred = Specifications.<Task>and()
.eq("customInfo", "manual")
.build();
List<Task> tasks = taskDao.findAll(pred);
List<Integer> detailIds = tasks
.parallelStream()
.filter(task -> {
Optional<Task> byId = taskDao.findById(task.getParentTaskId());
return byId.filter(value -> "exam".equals(value.getCustomInfo())).isPresent();
}).map(Task::getBillId).collect(toList());
List<CheckDetailVo> detailVoList = detailRepo.findAllById(detailIds)
.parallelStream()
.map(transUtil::CheckDetailDo2Vo)
.collect(toList());
List<CheckStatTableVo> cityDetailToStatList = detailVoList
.parallelStream()
.map(checkDetailVo -> {
CheckStatTableVo checkStatTableVo = new CheckStatTableVo();
checkStatTableVo.setId(checkDetailVo.getId());
String[] titles = checkDetailVo.getTitle().split("\\%\\^\\&");
if (titles.length > 1) {
checkStatTableVo.setTitle(titles[1]);
}
checkStatTableVo.setShowType(1);
checkStatTableVo.setCreateTime(TimestampUtil.dateToLocalDateTime(checkDetailVo.getCheckTime()));
//设置完成情况
List<TaskUserVo> taskUserVos = taskService.findByBillIdAndBusinessType(checkDetailVo.getId(), 8)
.parallelStream().map(Task::parse2Bto).map(TaskBto::toVo).collect(toList());
if (taskUserVos.size() == 1) {
checkStatTableVo.setCompletion(taskUserVos.get(0).getStatus());
}
return checkStatTableVo;
}).collect(toList());
tableVos.addAll(cityDetailToStatList);
log.info("[check] 查询市级账单任务用时:{}ms", System.currentTimeMillis() - startTime);
}
// Units unit = unitsRepo.findById(checkBillSelectVo.getUnitId()).get();
// if (unit.getLevel() == 2) {
// Specification<Task> pred = Specifications.<Task>and()
// .eq("customInfo", "manual")
// .build();
// List<Task> tasks = taskDao.findAll(pred);
// List<Integer> detailIds = tasks
// .parallelStream()
// .filter(task -> {
// Optional<Task> byId = taskDao.findById(task.getParentTaskId());
// return byId.filter(value -> "exam".equals(value.getCustomInfo())).isPresent();
// }).map(Task::getBillId).collect(toList());
//
//
// List<CheckDetailVo> detailVoList = detailRepo.findAllById(detailIds)
// .parallelStream()
// .map(transUtil::CheckDetailDo2Vo)
// .collect(toList());
// List<CheckStatTableVo> cityDetailToStatList = detailVoList
// .parallelStream()
// .map(checkDetailVo -> {
// CheckStatTableVo checkStatTableVo = new CheckStatTableVo();
// checkStatTableVo.setId(checkDetailVo.getId());
// String[] titles = checkDetailVo.getTitle().split("\\%\\^\\&");
// if (titles.length > 1) {
// checkStatTableVo.setTitle(titles[1]);
// }
//
// checkStatTableVo.setShowType(1);
// checkStatTableVo.setCreateTime(TimestampUtil.dateToLocalDateTime(checkDetailVo.getCheckTime()));
// //设置完成情况
// List<TaskUserVo> taskUserVos = taskService.findByBillIdAndBusinessType(checkDetailVo.getId(), 8)
// .parallelStream().map(Task::parse2Bto).map(TaskBto::toVo).collect(toList());
// if (taskUserVos.size() == 1) {
// checkStatTableVo.setCompletion(taskUserVos.get(0).getStatus());
// }
// return checkStatTableVo;
// }).collect(toList());
// tableVos.addAll(cityDetailToStatList);
// log.info("[check] 查询市级账单任务用时:{}ms", System.currentTimeMillis() - startTime);
//
// }
Sort sort = checkBillSelectVo.getPageable().getSort();
Sort.Order createTime = sort.getOrderFor("createTime");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论