Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
81f3b9cd
提交
81f3b9cd
authored
11月 06, 2023
作者:
aiqingguo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
司机上报
上级
80265945
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
13 行增加
和
7 行删除
+13
-7
CollectTruckLocation.java
...m/clx/performance/model/collect/CollectTruckLocation.java
+1
-1
CollectTruckLocationServiceImpl.java
...service/impl/collect/CollectTruckLocationServiceImpl.java
+12
-6
没有找到文件。
performance-web/src/main/java/com/clx/performance/model/collect/CollectTruckLocation.java
浏览文件 @
81f3b9cd
...
...
@@ -8,7 +8,6 @@ import com.msl.common.model.HasKey;
import
lombok.Getter
;
import
lombok.NoArgsConstructor
;
import
lombok.Setter
;
import
lombok.ToString
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
...
...
@@ -38,6 +37,7 @@ public class CollectTruckLocation implements HasKey<Integer> {
private
String
town
;
//乡镇
private
String
street
;
//街道
private
String
address
;
//详细地址
private
String
locationRemark
;
//司机手填地址
private
String
fullAddress
;
//全地址
private
BigDecimal
longitude
;
//经度
private
BigDecimal
latitude
;
//纬度
...
...
performance-web/src/main/java/com/clx/performance/service/impl/collect/CollectTruckLocationServiceImpl.java
浏览文件 @
81f3b9cd
...
...
@@ -51,14 +51,20 @@ public class CollectTruckLocationServiceImpl implements CollectTruckLocationServ
collectTruckLocation
.
setTown
(
param
.
getTown
());
collectTruckLocation
.
setStreet
(
param
.
getStreet
());
collectTruckLocation
.
setAddress
(
param
.
getAddress
());
collectTruckLocation
.
setLocationRemark
(
param
.
getLocationRemark
());
collectTruckLocation
.
setFullAddress
(
""
);
if
(!
StringUtils
.
isEmpty
(
param
.
getProvince
())){
collectTruckLocation
.
setFullAddress
(
collectTruckLocation
.
getFullAddress
()+
param
.
getProvince
());}
if
(!
StringUtils
.
isEmpty
(
param
.
getCity
())){
collectTruckLocation
.
setFullAddress
(
collectTruckLocation
.
getFullAddress
()+
param
.
getCity
());}
if
(!
StringUtils
.
isEmpty
(
param
.
getCounty
())){
collectTruckLocation
.
setFullAddress
(
collectTruckLocation
.
getFullAddress
()+
param
.
getCounty
());}
if
(!
StringUtils
.
isEmpty
(
param
.
getTown
())){
collectTruckLocation
.
setFullAddress
(
collectTruckLocation
.
getFullAddress
()+
param
.
getTown
());}
if
(!
StringUtils
.
isEmpty
(
param
.
getStreet
())){
collectTruckLocation
.
setFullAddress
(
collectTruckLocation
.
getFullAddress
()+
param
.
getStreet
());}
if
(!
StringUtils
.
isEmpty
(
param
.
getAddress
())){
collectTruckLocation
.
setFullAddress
(
collectTruckLocation
.
getFullAddress
()+
param
.
getAddress
());}
if
(!
StringUtils
.
isEmpty
(
param
.
getLocationRemark
())){
collectTruckLocation
.
setFullAddress
(
param
.
getLocationRemark
());
}
else
{
if
(!
StringUtils
.
isEmpty
(
param
.
getProvince
())){
collectTruckLocation
.
setFullAddress
(
collectTruckLocation
.
getFullAddress
()+
param
.
getProvince
());}
if
(!
StringUtils
.
isEmpty
(
param
.
getCity
())){
collectTruckLocation
.
setFullAddress
(
collectTruckLocation
.
getFullAddress
()+
param
.
getCity
());}
if
(!
StringUtils
.
isEmpty
(
param
.
getCounty
())){
collectTruckLocation
.
setFullAddress
(
collectTruckLocation
.
getFullAddress
()+
param
.
getCounty
());}
if
(!
StringUtils
.
isEmpty
(
param
.
getTown
())){
collectTruckLocation
.
setFullAddress
(
collectTruckLocation
.
getFullAddress
()+
param
.
getTown
());}
if
(!
StringUtils
.
isEmpty
(
param
.
getStreet
())){
collectTruckLocation
.
setFullAddress
(
collectTruckLocation
.
getFullAddress
()+
param
.
getStreet
());}
if
(!
StringUtils
.
isEmpty
(
param
.
getAddress
())){
collectTruckLocation
.
setFullAddress
(
collectTruckLocation
.
getFullAddress
()+
param
.
getAddress
());}
}
collectTruckLocation
.
setReportTime
(
LocalDateTime
.
now
());
collectTruckLocation
.
setCreateTime
(
collectTruckLocation
.
getReportTime
());
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论