|
|
@ -1818,4 +1818,35 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 查询关联事件 |
|
|
|
* |
|
|
|
* @author liuwenge |
|
|
|
* @date 2024/5/30 14:29 |
|
|
|
* @param eventId |
|
|
|
* @return com.ruoyi.common.core.domain.AjaxResult |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public AjaxResult getLinkEvent(String eventId){ |
|
|
|
|
|
|
|
List<Map<String,Object>> result = new ArrayList<>(); |
|
|
|
DcEvent dcEvent = dcEventMapper.selectDcEventById(eventId); |
|
|
|
if (StringUtils.isNotEmpty(dcEvent.getLinkId())){ |
|
|
|
Map<String,Object> item = new HashMap<>(); |
|
|
|
item.put("eventId",eventId); |
|
|
|
item.put("eventNature",dcEvent.getEventNature()); |
|
|
|
result.add(item); |
|
|
|
|
|
|
|
String[] linkIds = dcEvent.getLinkId().split(","); |
|
|
|
for (String linkId : linkIds) { |
|
|
|
item = new HashMap<>(); |
|
|
|
item.put("eventId",linkId); |
|
|
|
item.put("eventNature",2); |
|
|
|
result.add(item); |
|
|
|
} |
|
|
|
} |
|
|
|
return AjaxResult.success(result); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|