Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
2708a8f8
提交
2708a8f8
authored
10月 25, 2024
作者:
马路路
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/v29.6_ultimate_interaction_20241017' into dev_jdk17
上级
fa82de61
84618874
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
15 行增加
和
3 行删除
+15
-3
CollectDriverTransportIntentionServiceImpl.java
...l/collect/CollectDriverTransportIntentionServiceImpl.java
+6
-0
DriverTransportIntentionInfoServiceImpl.java
...impl/collect/DriverTransportIntentionInfoServiceImpl.java
+3
-3
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
浏览文件 @
2708a8f8
...
...
@@ -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
浏览文件 @
2708a8f8
...
...
@@ -49,7 +49,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
);
...
...
@@ -120,9 +120,9 @@ public class DriverTransportIntentionInfoServiceImpl implements DriverTransportI
return
intentionVOList
;
}
public
boolean
existUpdateChange
()
{
public
boolean
existUpdateChange
(
String
currentTime
)
{
// 获取当前时间
LocalDateTime
now
=
LocalDateTime
.
now
(
);
LocalDateTime
now
=
LocalDateTime
.
parse
(
currentTime
);
// 获取主表最新一次更新时间
LocalDateTime
intentionLastUpdateTime
=
collectDriverTransportIntentionDao
.
getLastUpdateTime
();
// 获取子表最新一次更新时间
...
...
performance-api/src/main/java/com/clx/performance/param/app/collect/AppCarrierDriverCollectSaveParam.java
浏览文件 @
2708a8f8
...
...
@@ -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
浏览文件 @
2708a8f8
...
...
@@ -50,6 +50,9 @@ public class CarrierDriverCollectTransportIntentionVO {
@Schema
(
description
=
"修改时间"
)
private
String
modifiedTime
;
@Schema
(
description
=
"当前系统时间"
)
private
String
currentTime
;
@Schema
(
description
=
"收集司机拉运意向选项"
)
private
List
<
CarrierDriverCollectTransportIntentionRecordVO
>
collectIntentionRecordList
;
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论