新增系统版本控制功能
This commit is contained in:
@@ -44,6 +44,7 @@ import org.springframework.util.StringUtils;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.RoundingMode;
|
||||
import java.time.Duration;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.*;
|
||||
|
||||
@@ -184,7 +185,11 @@ public class EventDetailServiceImpl extends ServiceImpl<EventDetailMapper, RmpEv
|
||||
} else {
|
||||
this.save(rmpEventDetailPO);
|
||||
//推送MQTT消息给前端,用于展示告警消息和弹窗
|
||||
pushEvent(rmpEventDetailPO);
|
||||
//如果是补招数据,如果事件的时间跟当前时间相差1小时,则不出弹窗。
|
||||
Duration duration = Duration.between(rmpEventDetailPO.getStartTime(), LocalDateTime.now());
|
||||
if (duration.toHours() <= 1 && !duration.isNegative()) {
|
||||
pushEvent(rmpEventDetailPO);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user