|
|
@ -12,7 +12,6 @@ public class StatChannel {
|
|
|
|
Integer channelId;
|
|
|
|
Integer channelId;
|
|
|
|
List<StatPreset> presets = new ArrayList<>();
|
|
|
|
List<StatPreset> presets = new ArrayList<>();
|
|
|
|
List<String> hourList;
|
|
|
|
List<String> hourList;
|
|
|
|
List<ScheduleDetailsDto> scheduleList;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void addPhoto(TerminalPhotoSelectListModel.PhotoBean photo) {
|
|
|
|
public void addPhoto(TerminalPhotoSelectListModel.PhotoBean photo) {
|
|
|
|
StatPreset the = null;
|
|
|
|
StatPreset the = null;
|
|
|
@ -24,10 +23,10 @@ public class StatChannel {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (the == null) {
|
|
|
|
if (the == null) {
|
|
|
|
the = new StatPreset();
|
|
|
|
the = new StatPreset();
|
|
|
|
the.init(hourList);
|
|
|
|
|
|
|
|
the.setPresetId(photo.getPresetId());
|
|
|
|
the.setPresetId(photo.getPresetId());
|
|
|
|
presets.add(the);
|
|
|
|
presets.add(the);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
the.init(hourList);
|
|
|
|
the.addPhoto(photo);
|
|
|
|
the.addPhoto(photo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -51,7 +50,6 @@ public class StatChannel {
|
|
|
|
if (CollectionUtils.isEmpty(list)) {
|
|
|
|
if (CollectionUtils.isEmpty(list)) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
scheduleList = list;
|
|
|
|
|
|
|
|
for (ScheduleDetailsDto detail : list) {
|
|
|
|
for (ScheduleDetailsDto detail : list) {
|
|
|
|
StatPreset the = null;
|
|
|
|
StatPreset the = null;
|
|
|
|
for (StatPreset item : presets) {
|
|
|
|
for (StatPreset item : presets) {
|
|
|
|