|
|
@@ -93,16 +93,27 @@ public class IsJobTicketServiceImpl extends ServiceImpl<IsJobTicketMapper, IsJob
|
|
|
if (!isJobTicketPoints.isEmpty()) {
|
|
|
List<Long> pointIds = isJobTicketPoints.stream().map(IsJobTicketPoints::getPointId).collect(Collectors.toList());
|
|
|
List<PointDetailVO> pointDetailList = iIsIsolationPointService.getPointDetailList(pointIds);
|
|
|
- pointDetailList.forEach(o ->
|
|
|
+ ArrayList<PointDetailVO> pointDetailVOS = new ArrayList<>();
|
|
|
+ /*pointDetailList.forEach(o ->
|
|
|
isJobTicketPoints.stream()
|
|
|
.filter(o1 -> o1.getPointId().equals(o.getPointId()))
|
|
|
.findFirst()
|
|
|
.ifPresent(data -> {
|
|
|
o.setLockId(data.getLockId());
|
|
|
o.setPrePointId(data.getPrePointId());
|
|
|
- }));
|
|
|
+ }));*/
|
|
|
+ // 需要按序输出
|
|
|
+ for (IsJobTicketPoints isJobTicketPoint : isJobTicketPoints) {
|
|
|
+ for (PointDetailVO pointDetailVO : pointDetailList) {
|
|
|
+ if (isJobTicketPoint.getPointId().equals(pointDetailVO.getPointId())) {
|
|
|
+ pointDetailVO.setLockId(isJobTicketPoint.getLockId());
|
|
|
+ pointDetailVO.setPrePointId(isJobTicketPoint.getPrePointId());
|
|
|
+ pointDetailVOS.add(pointDetailVO);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
// 2.2组装隔离点数据
|
|
|
- jobTicketDetailVO.setPointDetailVOList(pointDetailList);
|
|
|
+ jobTicketDetailVO.setPointDetailVOList(pointDetailVOS);
|
|
|
}
|
|
|
// 3.查询人员信息
|
|
|
List<IsJobTicketUser> jobTicketUserList = iIsJobTicketUserService.list(Wrappers.<IsJobTicketUser>lambdaQuery()
|