Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-api-boot
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-api-boot
Commits
f8e7b7d9
提交
f8e7b7d9
authored
5月 26, 2022
作者:
涂茂林
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:点位表添加实时数据字段
上级
72d1f1ff
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
28 行增加
和
2 行删除
+28
-2
RiskWarn.java
app/src/main/java/com/yiring/app/domain/risk/RiskWarn.java
+16
-0
LocationFenceGeoVo.java
.../com/yiring/app/vo/location/fence/LocationFenceGeoVo.java
+11
-1
ThresholdVo.java
app/src/main/java/com/yiring/app/vo/risk/ThresholdVo.java
+1
-1
没有找到文件。
app/src/main/java/com/yiring/app/domain/risk/RiskWarn.java
浏览文件 @
f8e7b7d9
...
...
@@ -6,6 +6,7 @@ import com.yiring.common.domain.BasicEntity;
import
java.io.Serial
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.List
;
import
javax.persistence.*
;
...
...
@@ -65,6 +66,21 @@ public class RiskWarn extends BasicEntity implements Serializable {
@Comment
(
"启用"
)
private
Boolean
enable
;
@Comment
(
"最新监测值"
)
private
BigDecimal
newestMonitor
;
@Comment
(
"最新预警状态:1-正常,2-预警中"
)
private
Integer
warnStatus
;
@Comment
(
"最新阈值状态:1-低低,2-低,3-高,4-高高,5-熄灭"
)
private
Integer
thresholdStatus
;
@Comment
(
"最新风险等级::1-红色风险,2-橙色风险,3-黄色风险,4-蓝色风险"
)
private
Integer
riskLevel
;
@Comment
(
"最新状态更新时间"
)
private
LocalDateTime
newestUpdateTime
;
@ToString
.
Exclude
@Comment
(
"阈值区间信息"
)
@Builder
.
Default
...
...
app/src/main/java/com/yiring/app/vo/location/fence/LocationFenceGeoVo.java
浏览文件 @
f8e7b7d9
...
...
@@ -47,7 +47,13 @@ public class LocationFenceGeoVo implements Serializable {
.
builder
()
.
id
(
locationFence
.
getId
())
.
type
(
"Feature"
)
.
properties
(
new
Properties
(
locationFence
.
getName
(),
locationFence
.
getGeometry
().
getGeometryType
()))
.
properties
(
new
Properties
(
locationFence
.
getId
(),
locationFence
.
getName
(),
locationFence
.
getGeometry
().
getGeometryType
()
)
)
.
geometry
(
locationFence
.
getGeometry
())
.
build
();
}
...
...
@@ -57,6 +63,10 @@ public class LocationFenceGeoVo implements Serializable {
@NoArgsConstructor
static
class
Properties
{
@JsonSerialize
(
using
=
ToStringSerializer
.
class
)
@ApiModelProperty
(
value
=
"id"
)
private
Long
id
;
@ApiModelProperty
(
value
=
"围栏名称"
)
private
String
name
;
...
...
app/src/main/java/com/yiring/app/vo/risk/ThresholdVo.java
浏览文件 @
f8e7b7d9
...
...
@@ -33,7 +33,7 @@ public class ThresholdVo implements Serializable {
@ApiModelProperty
(
value
=
"阈值区间结束值"
,
example
=
"20.2"
)
private
String
max
;
@ApiModelProperty
(
value
=
"阈值状态"
,
example
=
"
低低
"
)
@ApiModelProperty
(
value
=
"阈值状态"
,
example
=
"
1
"
)
private
Integer
status
;
@ApiModelProperty
(
value
=
"风险等级:1-红色风险,2-橙色风险,3-黄色风险,4-蓝色风险"
,
example
=
"1"
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论