Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
58f0759a
提交
58f0759a
authored
10月 28, 2024
作者:
马路路
1
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'v29.6_ultimate_interaction_20241017' into test_jdk17
上级
10a8ec34
7410788d
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
18 行增加
和
4 行删除
+18
-4
CollectDriverTransportIntentionServiceImpl.java
...l/collect/CollectDriverTransportIntentionServiceImpl.java
+6
-0
DriverTransportIntentionInfoServiceImpl.java
...impl/collect/DriverTransportIntentionInfoServiceImpl.java
+6
-4
AppCarrierDriverCollectSaveParam.java
...e/param/app/collect/AppCarrierDriverCollectSaveParam.java
+3
-0
CarrierDriverCollectTransportIntentionVO.java
.../pc/collect/CarrierDriverCollectTransportIntentionVO.java
+3
-0
没有找到文件。
clx-performance-web/src/main/java/com/clx/performance/service/impl/collect/CollectDriverTransportIntentionServiceImpl.java
浏览文件 @
58f0759a
...
...
@@ -25,6 +25,7 @@ import org.springframework.transaction.annotation.Transactional;
import
org.springframework.util.CollectionUtils
;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
import
java.util.*
;
import
java.util.stream.Collectors
;
...
...
@@ -205,8 +206,13 @@ public class CollectDriverTransportIntentionServiceImpl implements CollectDriver
Map
<
Integer
,
List
<
CarrierDriverCollectTransportIntentionRecordVO
>>
recordVoMap
=
recordVOList
.
stream
().
collect
(
Collectors
.
groupingBy
(
CarrierDriverCollectTransportIntentionRecordVO:
:
getCollectDriverTransportIntentionId
));
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
);
LocalDateTime
currentTime
=
LocalDateTime
.
now
();
// 遍历主编数据,构建子表数据
for
(
CarrierDriverCollectTransportIntentionVO
vo
:
listVO
)
{
// 赋值系统时间
vo
.
setCurrentTime
(
formatter
.
format
(
currentTime
));
if
(
recordVoMap
.
containsKey
(
vo
.
getId
()))
{
vo
.
setCollectIntentionRecordList
(
recordVoMap
.
get
(
vo
.
getId
()));
}
...
...
clx-performance-web/src/main/java/com/clx/performance/service/impl/collect/DriverTransportIntentionInfoServiceImpl.java
浏览文件 @
58f0759a
...
...
@@ -23,6 +23,7 @@ import org.apache.commons.collections4.CollectionUtils;
import
org.springframework.stereotype.Service
;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
import
java.util.*
;
import
java.util.stream.Collectors
;
...
...
@@ -49,7 +50,7 @@ public class DriverTransportIntentionInfoServiceImpl implements DriverTransportI
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
}
if
(
this
.
existUpdateChange
())
{
if
(
this
.
existUpdateChange
(
param
.
getCurrentTime
()
))
{
log
.
info
(
"driverTransportIntentionInfoServiceImpl saveCheckedList existUpdateChange"
);
// 返回异常错误码
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
DRIVER_TRANSPORT_INTENTION_HAPPEN_CHANGE_ERROR_MSG
);
...
...
@@ -66,7 +67,7 @@ public class DriverTransportIntentionInfoServiceImpl implements DriverTransportI
DriverTransportIntentionInfo
driverTransportIntentionInfo
=
new
DriverTransportIntentionInfo
();
driverTransportIntentionInfo
.
setCollectTransportIntentionId
(
saveParam
.
getId
());
driverTransportIntentionInfo
.
setCollectTransportIntentionName
(
saveParam
.
getCollectName
());
driverTransportIntentionInfo
.
setCollectTransportIntentionRecordId
(
saveParam
.
get
Id
());
driverTransportIntentionInfo
.
setCollectTransportIntentionRecordId
(
collectChildParam
.
getCollectRecord
Id
());
driverTransportIntentionInfo
.
setCollectTransportIntentionRecordName
(
collectChildParam
.
getCollectRecordName
());
driverTransportIntentionInfo
.
setCreateUserNo
(
TokenUtil
.
getLoginUserInfo
().
getUserNo
());
driverTransportIntentionInfo
.
setCreateUserName
(
TokenUtil
.
getLoginUserInfo
().
getUserName
());
...
...
@@ -120,9 +121,10 @@ public class DriverTransportIntentionInfoServiceImpl implements DriverTransportI
return
intentionVOList
;
}
public
boolean
existUpdateChange
()
{
public
boolean
existUpdateChange
(
String
currentTime
)
{
// 获取当前时间
LocalDateTime
now
=
LocalDateTime
.
now
();
DateTimeFormatter
ftf
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
);
LocalDateTime
now
=
LocalDateTime
.
parse
(
currentTime
,
ftf
);
// 获取主表最新一次更新时间
LocalDateTime
intentionLastUpdateTime
=
collectDriverTransportIntentionDao
.
getLastUpdateTime
();
// 获取子表最新一次更新时间
...
...
performance-api/src/main/java/com/clx/performance/param/app/collect/AppCarrierDriverCollectSaveParam.java
浏览文件 @
58f0759a
...
...
@@ -12,6 +12,9 @@ import java.util.List;
@NoArgsConstructor
public
class
AppCarrierDriverCollectSaveParam
{
@Schema
(
description
=
"获取Web端已配置的拉运意愿列表--CurrentTime"
)
private
String
currentTime
;
@Schema
(
description
=
"拉运货物意愿"
)
List
<
AppCarrierDriverCollectMainParam
>
paramList
;
}
performance-api/src/main/java/com/clx/performance/vo/pc/collect/CarrierDriverCollectTransportIntentionVO.java
浏览文件 @
58f0759a
...
...
@@ -50,6 +50,9 @@ public class CarrierDriverCollectTransportIntentionVO {
@Schema
(
description
=
"修改时间"
)
private
String
modifiedTime
;
@Schema
(
description
=
"当前系统时间"
)
private
String
currentTime
;
@Schema
(
description
=
"收集司机拉运意向选项"
)
private
List
<
CarrierDriverCollectTransportIntentionRecordVO
>
collectIntentionRecordList
;
}
马路路
@malulu
被提及 commit
194709fe
·
11月 12, 2024
被提及 commit
194709fe
被提及 commit 194709febbc787ff4fa3741a4d0b9b140adbd34a
切换提交列表
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论