|
|
@@ -95,6 +95,8 @@ public class LabExitLineServiceImpl implements ILabExitLineService
|
|
|
labExitLineJoin.setSubjectId(subId);
|
|
|
labExitLineJoin.setLightDirection(dire);
|
|
|
List<LabExitLineJoinVO> labExitLineJoinVOList = labExitLineJoinMapper.selectLabExitLineIntelligentGuidance(labExitLineJoin);
|
|
|
+ //todo 这里临时调用一下处理LightId的办法,以后如果变动,需要重新设计调整,这个方法就不用了。
|
|
|
+ changeLightId(labExitLineJoinVOList);
|
|
|
if(dire==0){
|
|
|
boolean leftLight=false,rightLight=false;
|
|
|
for(LabExitLineJoinVO labExitLineJoinVO:labExitLineJoinVOList){
|
|
|
@@ -112,6 +114,28 @@ public class LabExitLineServiceImpl implements ILabExitLineService
|
|
|
return labExitLineJoinVOList;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ private void changeLightId(List<LabExitLineJoinVO> labExitLineJoinVOList){
|
|
|
+ Optional.ofNullable(labExitLineJoinVOList).orElseGet(Collections::emptyList)
|
|
|
+ .stream()
|
|
|
+ .forEach(a->{
|
|
|
+ if(a.getLightId().longValue()==7){
|
|
|
+ a.setLightId(1L);
|
|
|
+ }else if(a.getLightId().longValue()==8){
|
|
|
+ a.setLightId(2L);
|
|
|
+ }else if(a.getLightId().longValue()==9){
|
|
|
+ a.setLightId(3L);
|
|
|
+ }else if(a.getLightId().longValue()==10){
|
|
|
+ a.setLightId(4L);
|
|
|
+ }else if(a.getLightId().longValue()==11){
|
|
|
+ a.setLightId(5L);
|
|
|
+ }else if(a.getLightId().longValue()==12){
|
|
|
+ a.setLightId(6L);
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 查询逃生线路主列表
|
|
|
*
|
|
|
@@ -524,8 +548,10 @@ public class LabExitLineServiceImpl implements ILabExitLineService
|
|
|
evacuationLine.setSubId(keyLength);
|
|
|
LabSubjectVO labSubject = labSubjectMapper.selectLabSubjectVoById(Long.parseLong(keyLength));
|
|
|
evacuationLine.setDeptId(labSubject.getDeptId());
|
|
|
+ evacuationLine.setDeptName(labSubject.getDeptName());
|
|
|
evacuationLine.setFloorId(labSubject.getFloorId());
|
|
|
evacuationLine.setSubName(labSubject.getName());
|
|
|
+ evacuationLine.setBuildId(labSubject.getBuildId());
|
|
|
evacuationLine.setBuildName(labSubject.getBuildName());
|
|
|
evacuationLine.setFloorName(labSubject.getFloorName());
|
|
|
return evacuationLine;
|