|
|
@ -264,7 +264,9 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl |
|
|
|
dcEvent1.setId(dcEventId);//事件id
|
|
|
|
if (dcEvent2.getEventType() != 3) { |
|
|
|
dcEvent1.setEventNature(1l);//首发事件
|
|
|
|
|
|
|
|
dcEvent1.setLinkId(dcEvent2.getLinkId() + "," + uuid);//关联管制事件id
|
|
|
|
|
|
|
|
dcEventMapper.updateDcEventLinkId(dcEvent1);//修改事件性质
|
|
|
|
} |
|
|
|
} |
|
|
@ -282,7 +284,11 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl |
|
|
|
dcEvent1.setId(dcEventId);//事件id
|
|
|
|
if (dcEvent2.getEventType() != 3) { |
|
|
|
dcEvent1.setEventNature(1l);//首发事件
|
|
|
|
dcEvent1.setLinkId(dcEvent2.getLinkId()+","+uuid);//关联管制事件id
|
|
|
|
if (dcEvent2.getLinkId()!=null) { |
|
|
|
dcEvent1.setLinkId(dcEvent2.getLinkId()+","+uuid);//关联管制事件id
|
|
|
|
}else { |
|
|
|
dcEvent1.setLinkId(uuid);//关联管制事件id
|
|
|
|
} |
|
|
|
dcEventMapper.updateDcEventLinkId(dcEvent1);//修改事件性质
|
|
|
|
|
|
|
|
} |
|
|
@ -327,7 +333,11 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl |
|
|
|
a++; |
|
|
|
} |
|
|
|
String linkId2 = sb2.toString(); |
|
|
|
dcEvent1.setLinkId(dcEvent2.getLinkId()+","+linkId2);//关联管制事件id
|
|
|
|
if (dcEvent2.getLinkId()!=null){ |
|
|
|
dcEvent1.setLinkId(dcEvent2.getLinkId()+","+linkId2);//关联管制事件id
|
|
|
|
}else { |
|
|
|
dcEvent1.setLinkId(linkId2);//关联管制事件id
|
|
|
|
} |
|
|
|
|
|
|
|
if (dcEvent2.getEventType() != 3) { |
|
|
|
dcEventMapper.updateDcEventLinkId(dcEvent1);//修改事件性质
|
|
|
|