Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-api-boot
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-api-boot
Commits
3de325ed
提交
3de325ed
authored
4月 08, 2022
作者:
方治民
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 补充定位日志、围栏表字段
上级
efb1a547
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
24 行增加
和
0 行删除
+24
-0
LocationFence.java
...in/java/com/yiring/app/domain/location/LocationFence.java
+8
-0
LocationLog.java
...main/java/com/yiring/app/domain/location/LocationLog.java
+16
-0
没有找到文件。
app/src/main/java/com/yiring/app/domain/location/LocationFence.java
浏览文件 @
3de325ed
...
@@ -4,6 +4,8 @@ package com.yiring.app.domain.location;
...
@@ -4,6 +4,8 @@ package com.yiring.app.domain.location;
import
com.yiring.common.annotation.FieldMapping
;
import
com.yiring.common.annotation.FieldMapping
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.HashSet
;
import
java.util.Set
;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
lombok.*
;
import
lombok.*
;
import
lombok.experimental.FieldDefaults
;
import
lombok.experimental.FieldDefaults
;
...
@@ -78,6 +80,12 @@ public class LocationFence implements Serializable {
...
@@ -78,6 +80,12 @@ public class LocationFence implements Serializable {
@Comment
(
"消抖时间(秒)"
)
@Comment
(
"消抖时间(秒)"
)
Integer
threshold
;
Integer
threshold
;
@Comment
(
"信标集合"
)
@Builder
.
Default
@ManyToMany
@ToString
.
Exclude
Set
<
LocationBeacon
>
beacons
=
new
HashSet
<>(
0
);
@Comment
(
"创建时间"
)
@Comment
(
"创建时间"
)
LocalDateTime
createTime
;
LocalDateTime
createTime
;
...
...
app/src/main/java/com/yiring/app/domain/location/LocationLog.java
浏览文件 @
3de325ed
...
@@ -3,6 +3,7 @@ package com.yiring.app.domain.location;
...
@@ -3,6 +3,7 @@ package com.yiring.app.domain.location;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yiring.app.config.converter.JSONObjectConverter
;
import
com.yiring.app.config.converter.JSONObjectConverter
;
import
com.yiring.auth.domain.user.User
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
...
@@ -49,8 +50,23 @@ public class LocationLog implements Serializable {
...
@@ -49,8 +50,23 @@ public class LocationLog implements Serializable {
@GenericGenerator
(
name
=
SnowflakeId
.
GENERATOR
,
strategy
=
SnowflakeId
.
Strategy
.
LONG
)
@GenericGenerator
(
name
=
SnowflakeId
.
GENERATOR
,
strategy
=
SnowflakeId
.
Strategy
.
LONG
)
Long
id
;
Long
id
;
/**
* 来源于定位数据产生时刻标签所属的人员
*/
@Comment
(
"用户"
)
@ManyToOne
@JoinColumn
(
name
=
"user_id"
)
User
user
;
/**
* 来源于定位标签定位时刻的人员状态
*/
@Comment
(
"用户状态"
)
String
status
;
@Comment
(
"标签"
)
@Comment
(
"标签"
)
@ManyToOne
@ManyToOne
@JoinColumn
(
name
=
"tag_id"
)
LocationTag
tag
;
LocationTag
tag
;
@Comment
(
"时间"
)
@Comment
(
"时间"
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论