fix: preset默认255

dev
huangfeng 2 months ago
parent 81165acf99
commit 3d178c47af

@ -52,15 +52,19 @@ public class StatChannel {
}
for (ScheduleDetailsDto detail : list) {
StatPreset the = null;
Integer presetId = detail.getPreset();
if (presetId == null) {
presetId = 255;
}
for (StatPreset item : presets) {
if (item.getPresetId().intValue() == detail.getPreset().intValue()) {
if (item.getPresetId().intValue() == presetId.intValue()) {
the = item;
break;
}
}
if (the == null) {
the = new StatPreset();
the.setPresetId(detail.getPreset());
the.setPresetId(presetId);
the.setDelay(delay);
presets.add(the);
}

Loading…
Cancel
Save