use of com.alibaba.otter.manager.web.common.model.SeniorDataMediaPair in project otter by alibaba.
the class DataMediaInfo method execute.
public void execute(@Param("dataMediaId") Long dataMediaId, Context context) throws Exception {
DataMedia dataMedia = dataMediaService.findById(dataMediaId);
List<DataMediaPair> dataMediaPairs = dataMediaPairService.listByDataMediaId(dataMediaId);
List<SeniorDataMediaPair> seniorDataMediapairs = new ArrayList<SeniorDataMediaPair>();
for (DataMediaPair dataMediaPair : dataMediaPairs) {
SeniorDataMediaPair seniorDataMediaPair = new SeniorDataMediaPair();
seniorDataMediaPair.setChannel(channelService.findByPipelineId(dataMediaPair.getPipelineId()));
seniorDataMediaPair.setDataMediaPair(dataMediaPair);
seniorDataMediapairs.add(seniorDataMediaPair);
}
context.put("dataMedia", dataMedia);
context.put("seniorDataMediapairs", seniorDataMediapairs);
}
Aggregations