Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
98c1cff1
提交
98c1cff1
authored
5月 11, 2024
作者:
刘海泉
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
commit es code
上级
330547c9
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
126 行增加
和
0 行删除
+126
-0
pom.xml
performance-web/pom.xml
+29
-0
PerformanceApplication.java
...main/java/com/clx/performance/PerformanceApplication.java
+2
-0
DriverTraceESPlusMapper.java
...lx/performance/esplus/mapper/DriverTraceESPlusMapper.java
+8
-0
TruckTraceESPlusMapper.java
...clx/performance/esplus/mapper/TruckTraceESPlusMapper.java
+8
-0
DriverTraceESPlus.java
...a/com/clx/performance/esplus/model/DriverTraceESPlus.java
+42
-0
TruckTraceESPlus.java
...va/com/clx/performance/esplus/model/TruckTraceESPlus.java
+30
-0
OrderChildServiceImpl.java
...m/clx/performance/service/impl/OrderChildServiceImpl.java
+7
-0
没有找到文件。
performance-web/pom.xml
浏览文件 @
98c1cff1
...
...
@@ -100,6 +100,16 @@
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.elasticsearch.client
</groupId>
<artifactId>
elasticsearch-rest-high-level-client
</artifactId>
</exclusion>
<exclusion>
<groupId>
org.elasticsearch
</groupId>
<artifactId>
elasticsearch
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
...
...
@@ -261,6 +271,25 @@
<version>
1.7.0
</version>
</dependency>
<dependency>
<groupId>
org.elasticsearch.client
</groupId>
<artifactId>
elasticsearch-rest-high-level-client
</artifactId>
<version>
7.14.0
</version>
</dependency>
<dependency>
<groupId>
org.elasticsearch
</groupId>
<artifactId>
elasticsearch
</artifactId>
<version>
7.14.0
</version>
</dependency>
<dependency>
<groupId>
org.dromara.easy-es
</groupId>
<artifactId>
easy-es-boot-starter
</artifactId>
<version>
2.0.0-beta7
</version>
</dependency>
</dependencies>
...
...
performance-web/src/main/java/com/clx/performance/PerformanceApplication.java
浏览文件 @
98c1cff1
package
com
.
clx
.
performance
;
import
com.msl.common.config.ViewScan
;
import
org.dromara.easyes.starter.register.EsMapperScan
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
...
...
@@ -18,6 +19,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
@ComponentScan
({
"com.clx.performance.*"
,
"com.msl.*"
})
@EnableFeignClients
(
basePackages
=
{
"com.msl.*"
,
"com.clx.performance.*"
,
"com.clx.order.*"
,
"com.clx.user.*"
,
"com.clx.message.*"
})
@ViewScan
(
basePackage
=
"com.clx.user.view"
)
@EsMapperScan
(
"com.clx.performance.esplus.mapper"
)
public
class
PerformanceApplication
{
public
static
void
main
(
String
[]
args
)
{
...
...
performance-web/src/main/java/com/clx/performance/esplus/mapper/DriverTraceESPlusMapper.java
0 → 100644
浏览文件 @
98c1cff1
package
com
.
clx
.
performance
.
esplus
.
mapper
;
import
com.clx.performance.esplus.model.DriverTraceESPlus
;
import
org.dromara.easyes.core.kernel.BaseEsMapper
;
public
interface
DriverTraceESPlusMapper
extends
BaseEsMapper
<
DriverTraceESPlus
>
{
}
\ No newline at end of file
performance-web/src/main/java/com/clx/performance/esplus/mapper/TruckTraceESPlusMapper.java
0 → 100644
浏览文件 @
98c1cff1
package
com
.
clx
.
performance
.
esplus
.
mapper
;
import
com.clx.performance.esplus.model.TruckTraceESPlus
;
import
org.dromara.easyes.core.kernel.BaseEsMapper
;
public
interface
TruckTraceESPlusMapper
extends
BaseEsMapper
<
TruckTraceESPlus
>
{
}
\ No newline at end of file
performance-web/src/main/java/com/clx/performance/esplus/model/DriverTraceESPlus.java
0 → 100644
浏览文件 @
98c1cff1
package
com
.
clx
.
performance
.
esplus
.
model
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
org.dromara.easyes.annotation.IndexField
;
import
org.dromara.easyes.annotation.IndexId
;
import
org.dromara.easyes.annotation.IndexName
;
import
org.dromara.easyes.annotation.rely.FieldType
;
import
org.dromara.easyes.annotation.rely.IdType
;
import
java.math.BigDecimal
;
@Data
@IndexName
(
"clx_trace_driver_trace_index1"
)
public
class
DriverTraceESPlus
{
@IndexId
(
type
=
IdType
.
UUID
)
private
String
id
;
@ApiModelProperty
(
"用户编号"
)
private
Long
userNo
;
@ApiModelProperty
(
"1-正常上传,2-离线上传"
)
private
Integer
dataType
;
@IndexField
(
fieldType
=
FieldType
.
GEO_POINT
)
private
BigDecimal
[]
location
;
//位置
@ApiModelProperty
(
"速度"
)
private
BigDecimal
speed
;
@IndexField
(
fieldType
=
FieldType
.
DATE
)
private
String
positionTime
;
@IndexField
(
fieldType
=
FieldType
.
DATE
)
private
String
createTime
;
@IndexField
(
fieldType
=
FieldType
.
DATE
)
private
String
modifiedTime
;
}
\ No newline at end of file
performance-web/src/main/java/com/clx/performance/esplus/model/TruckTraceESPlus.java
0 → 100644
浏览文件 @
98c1cff1
package
com
.
clx
.
performance
.
esplus
.
model
;
import
lombok.Data
;
import
org.dromara.easyes.annotation.IndexField
;
import
org.dromara.easyes.annotation.IndexId
;
import
org.dromara.easyes.annotation.IndexName
;
import
org.dromara.easyes.annotation.rely.FieldType
;
import
org.dromara.easyes.annotation.rely.IdType
;
import
java.math.BigDecimal
;
@Data
@IndexName
(
value
=
"clx_truck_trace"
)
public
class
TruckTraceESPlus
{
@IndexId
(
type
=
IdType
.
UUID
)
private
String
id
;
@IndexField
(
fieldType
=
FieldType
.
KEYWORD
)
private
String
truckNo
;
//车辆编号
private
BigDecimal
angle
;
//agl
private
BigDecimal
speed
;
//速度
private
BigDecimal
mileage
;
//里程
private
BigDecimal
height
;
//海拔
private
BigDecimal
[]
location
;
//位置
@IndexField
(
fieldType
=
FieldType
.
DATE
)
private
String
gpsTime
;
//时间
private
String
createTime
;
}
\ No newline at end of file
performance-web/src/main/java/com/clx/performance/service/impl/OrderChildServiceImpl.java
浏览文件 @
98c1cff1
...
...
@@ -572,6 +572,13 @@ public class OrderChildServiceImpl implements OrderChildService {
PerformanceResultEnum
.
DATA_NOT_FIND
);
OrderGoods
orderGoods
=
orderGoodsDao
.
getByOrderGoodsNo
(
orderChild
.
getOrderGoodsNo
()).
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
BigDecimal
longitude
=
null
;
BigDecimal
latitude
=
null
;
/* if(){
}else{
}*/
double
distance
=
GpsUtil
.
distance
(
orderGoods
.
getSendLongitude
().
doubleValue
(),
orderGoods
.
getSendLatitude
().
doubleValue
(),
param
.
getLongitude
().
doubleValue
(),
param
.
getLatitude
().
doubleValue
())
/
1000
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论