Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
55584408
提交
55584408
authored
10月 23, 2024
作者:
刘海泉
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改挂单运费相关问题
上级
12e49130
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
24 行增加
和
14 行删除
+24
-14
PendingFreightDaoImpl.java
...a/com/clx/performance/dao/impl/PendingFreightDaoImpl.java
+2
-0
PendingFreightServiceImpl.java
...x/performance/service/impl/PendingFreightServiceImpl.java
+20
-10
PagePendingFreightVO.java
.../java/com/clx/performance/vo/pc/PagePendingFreightVO.java
+2
-4
没有找到文件。
clx-performance-web/src/main/java/com/clx/performance/dao/impl/PendingFreightDaoImpl.java
浏览文件 @
55584408
...
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.clx.order.enums.OrderEnum
;
import
com.clx.performance.dao.PendingFreightDao
;
import
com.clx.performance.mapper.PendingFreightMapper
;
import
com.clx.performance.model.PendingFreight
;
...
...
@@ -43,6 +44,7 @@ public class PendingFreightDaoImpl extends BaseDaoImpl<PendingFreightMapper, Pen
@Override
public
IPage
<
PendingFreight
>
pagePendingFreight
(
PagePendingFreightParam
param
)
{
LambdaQueryWrapper
<
PendingFreight
>
query
=
new
LambdaQueryWrapper
<>();
query
.
in
(
PendingFreight
::
getOrderStatus
,
OrderEnum
.
PENDING_FREIGHT_STATUS_LIST
);
query
.
orderByDesc
(
PendingFreight
::
getId
);
return
baseMapper
.
selectPage
(
Page
.
of
(
param
.
getPage
(),
param
.
getPageSize
()),
query
);
}
...
...
clx-performance-web/src/main/java/com/clx/performance/service/impl/PendingFreightServiceImpl.java
浏览文件 @
55584408
...
...
@@ -84,7 +84,7 @@ public class PendingFreightServiceImpl implements PendingFreightService {
if
(
pendingFreightOptional
.
isPresent
()){
PendingFreight
pendingFreight
=
pendingFreightOptional
.
get
();
item
.
setId
(
pendingFreight
.
getId
());
pendingFreight
.
setId
(
pendingFreight
.
getId
());
if
(!
Objects
.
equals
(
pendingFreight
.
getSendAddressId
(),
data
.
getSendAddressId
())
||
!
Objects
.
equals
(
pendingFreight
.
getReceiveAddressId
(),
data
.
getReveiveAddressId
())){
...
...
@@ -93,13 +93,23 @@ public class PendingFreightServiceImpl implements PendingFreightService {
FeignAddressVO
.
Address
sendAddress
=
sendAndReceiveAddress
.
get
().
getSendAddress
();
FeignAddressVO
.
Address
receiveAddress
=
sendAndReceiveAddress
.
get
().
getReceiveAddress
();
item
.
setSendAddress
(
addressService
.
generateAddressDetail
(
sendAddress
.
getProvince
(),
pendingFreight
.
setSendAddress
(
addressService
.
generateAddressDetail
(
sendAddress
.
getProvince
(),
sendAddress
.
getCity
(),
sendAddress
.
getCounty
(),
sendAddress
.
getAddress
()));
//计算重车运距
item
.
setOrderDistance
(
calcOrderDistance
(
sendAddress
,
receiveAddress
,
data
.
getOrderNo
()));
pendingFreight
.
setOrderDistance
(
calcOrderDistance
(
sendAddress
,
receiveAddress
,
data
.
getOrderNo
()));
}
pendingFreightDao
.
updateEntityByKey
(
item
);
//计算线路历史挂单运费
BigDecimal
historyFreight
=
this
.
queryLinePendingFreight
(
data
.
getSendAddressId
(),
data
.
getReveiveAddressId
());
//计算线路历史平均挂单运费
BigDecimal
historyAvgFreight
=
this
.
queryLineAvgPendingFreight
(
data
.
getSendAddressId
(),
data
.
getReveiveAddressId
());
pendingFreight
.
setHistoryFreight
(
historyFreight
);
pendingFreight
.
setHistoryAvgFreight
(
historyAvgFreight
);
pendingFreightDao
.
updateEntityByKey
(
pendingFreight
);
}
else
{
item
.
setOrderNo
(
data
.
getOrderNo
());
...
...
@@ -268,7 +278,7 @@ public class PendingFreightServiceImpl implements PendingFreightService {
fieldList
.
add
(
new
ExcelField
(
2
,
"煤源位置"
,
"sendAddress"
,
5000
));
fieldList
.
add
(
new
ExcelField
(
3
,
"物流经理"
,
"seniorLogisticsManagerName"
,
5000
));
fieldList
.
add
(
new
ExcelField
(
4
,
"货物名称"
,
"goodsName"
,
5000
));
fieldList
.
add
(
new
ExcelField
(
5
,
"热值"
,
"goods
TypeName
"
,
5000
));
fieldList
.
add
(
new
ExcelField
(
5
,
"热值"
,
"goods
Model
"
,
5000
));
fieldList
.
add
(
new
ExcelField
(
6
,
"是否C类煤源"
,
"sendOverStandardMsg"
,
5000
));
fieldList
.
add
(
new
ExcelField
(
7
,
"任务吨数(吨)"
,
"taskWeight"
,
5000
));
fieldList
.
add
(
new
ExcelField
(
8
,
"接单率"
,
"orderedRate"
,
5000
));
...
...
@@ -291,17 +301,17 @@ public class PendingFreightServiceImpl implements PendingFreightService {
rowData
.
add
(
new
ExcelData
(
vo
.
getSendAddress
(),
"-"
));
rowData
.
add
(
new
ExcelData
(
vo
.
getSeniorLogisticsManagerName
(),
"-"
));
rowData
.
add
(
new
ExcelData
(
vo
.
getGoodsName
(),
"-"
));
rowData
.
add
(
new
ExcelData
(
vo
.
getGoods
TypeName
(),
"-"
));
rowData
.
add
(
new
ExcelData
(
vo
.
getGoods
Model
(),
"-"
));
rowData
.
add
(
new
ExcelData
(
vo
.
getSendOverStandardMsg
(),
"-"
));
rowData
.
add
(
new
ExcelData
(
vo
.
getTaskWeight
(),
"-"
));
rowData
.
add
(
new
ExcelData
(
vo
.
getOrderedRate
(),
"-"
));
rowData
.
add
(
new
ExcelData
(
vo
.
getLoadTruckRate
(),
"-"
));
rowData
.
add
(
new
ExcelData
(
vo
.
getOrderDistance
(),
"-"
));
rowData
.
add
(
new
ExcelData
(
vo
.
getSendAddressExpenses
(),
"-"
));
rowData
.
add
(
new
ExcelData
(
vo
.
getHistoryFreight
(),
"-"
));
rowData
.
add
(
new
ExcelData
(
vo
.
getHistoryAvgFreight
(),
"-"
));
rowData
.
add
(
new
ExcelData
(
vo
.
getPredictionFreightPrice
(),
"-"
));
rowData
.
add
(
new
ExcelData
(
vo
.
getLogisticsFreight
(),
"-"
));
rowData
.
add
(
new
ExcelData
(
Objects
.
nonNull
(
vo
.
getHistoryFreight
())?
vo
.
getHistoryFreight
().
movePointLeft
(
2
):
null
,
"-"
));
rowData
.
add
(
new
ExcelData
(
Objects
.
nonNull
(
vo
.
getHistoryAvgFreight
())?
vo
.
getHistoryFreight
().
movePointLeft
(
2
):
null
,
"-"
));
rowData
.
add
(
new
ExcelData
(
Objects
.
nonNull
(
vo
.
getPredictionFreightPrice
())?
vo
.
getHistoryFreight
().
movePointLeft
(
2
):
null
,
"-"
));
rowData
.
add
(
new
ExcelData
(
Objects
.
nonNull
(
vo
.
getLogisticsFreight
())?
vo
.
getHistoryFreight
().
movePointLeft
(
2
):
null
,
"-"
));
rowData
.
add
(
new
ExcelData
(
""
));
dataList
.
add
(
rowData
);
}
...
...
performance-api/src/main/java/com/clx/performance/vo/pc/PagePendingFreightVO.java
浏览文件 @
55584408
...
...
@@ -56,13 +56,11 @@ public class PagePendingFreightVO {
@Schema
(
description
=
"货物名称"
)
private
String
goodsName
;
@Schema
(
description
=
"热值编码"
)
private
String
goodsTypeCode
;
@Schema
(
description
=
"热值名称"
)
private
String
goods
TypeName
;
private
String
goods
Model
;
@Schema
(
description
=
"是否C类煤源 0 否 1 是"
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论