Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
6f3c62e2
提交
6f3c62e2
authored
8月 12, 2024
作者:
刘海泉
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/v20.8_add_sub_weight_20240805' into test
上级
d27cd2c1
bc36aaa8
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
13 行增加
和
0 行删除
+13
-0
OrderExtractWeightVO.java
...va/com/clx/performance/vo/feign/OrderExtractWeightVO.java
+5
-0
OrderWeightServiceImpl.java
.../clx/performance/service/impl/OrderWeightServiceImpl.java
+8
-0
没有找到文件。
performance-api/src/main/java/com/clx/performance/vo/feign/OrderExtractWeightVO.java
浏览文件 @
6f3c62e2
...
@@ -26,6 +26,11 @@ public class OrderExtractWeightVO {
...
@@ -26,6 +26,11 @@ public class OrderExtractWeightVO {
@ApiModelProperty
(
value
=
"拉运吨数"
)
@ApiModelProperty
(
value
=
"拉运吨数"
)
private
BigDecimal
transportWeight
;
private
BigDecimal
transportWeight
;
@ApiModelProperty
(
"可提取吨数"
)
private
BigDecimal
canExtractWeight
;
@ApiModelProperty
(
"平台承运吨数"
)
@ApiModelProperty
(
"平台承运吨数"
)
private
BigDecimal
platformCarryWeight
;
private
BigDecimal
platformCarryWeight
;
...
...
performance-web/src/main/java/com/clx/performance/service/impl/OrderWeightServiceImpl.java
浏览文件 @
6f3c62e2
...
@@ -47,12 +47,17 @@ public class OrderWeightServiceImpl implements OrderWeightService {
...
@@ -47,12 +47,17 @@ public class OrderWeightServiceImpl implements OrderWeightService {
List
<
OrderGoods
>
orderGoodsList
=
orderGoodsDao
.
listByField
(
OrderGoods:
:
getOrderNo
,
orderNo
);
List
<
OrderGoods
>
orderGoodsList
=
orderGoodsDao
.
listByField
(
OrderGoods:
:
getOrderNo
,
orderNo
);
if
(
CollectionUtils
.
isEmpty
(
orderGoodsList
)){
if
(
CollectionUtils
.
isEmpty
(
orderGoodsList
)){
BigDecimal
canExtractWeight
=
Objects
.
nonNull
(
orderInfo
.
getPlatformCarryWeight
())?
orderInfo
.
getPlatformCarryWeight
():
BigDecimal
.
ZERO
.
add
(
Objects
.
nonNull
(
orderInfo
.
getOwnCarryWeight
())?
orderInfo
.
getOwnCarryWeight
():
BigDecimal
.
ZERO
);
return
OrderExtractWeightVO
.
builder
().
transportWeight
(
orderInfo
.
getTransportWeight
())
return
OrderExtractWeightVO
.
builder
().
transportWeight
(
orderInfo
.
getTransportWeight
())
.
truckDemand
(
orderInfo
.
getTruckDemand
())
.
truckDemand
(
orderInfo
.
getTruckDemand
())
.
ownCarryWeight
(
orderInfo
.
getOwnCarryWeight
())
.
ownCarryWeight
(
orderInfo
.
getOwnCarryWeight
())
.
platformCarryWeight
(
orderInfo
.
getPlatformCarryWeight
())
.
platformCarryWeight
(
orderInfo
.
getPlatformCarryWeight
())
.
ownCanExtractWeight
(
orderInfo
.
getOwnCarryWeight
())
.
ownCanExtractWeight
(
orderInfo
.
getOwnCarryWeight
())
.
platCanExtractWeight
(
orderInfo
.
getPlatformCarryWeight
())
.
platCanExtractWeight
(
orderInfo
.
getPlatformCarryWeight
())
.
canExtractWeight
(
canExtractWeight
)
.
build
();
.
build
();
}
}
//已发布的自有车辆吨数
//已发布的自有车辆吨数
...
@@ -86,6 +91,7 @@ public class OrderWeightServiceImpl implements OrderWeightService {
...
@@ -86,6 +91,7 @@ public class OrderWeightServiceImpl implements OrderWeightService {
.
platCanExtractWeight
(
orderInfo
.
getTransportWeight
().
subtract
(
platOrderGoodsWeight
))
.
platCanExtractWeight
(
orderInfo
.
getTransportWeight
().
subtract
(
platOrderGoodsWeight
))
.
ownCarryWeight
(
BigDecimal
.
ZERO
)
.
ownCarryWeight
(
BigDecimal
.
ZERO
)
.
ownCanExtractWeight
(
BigDecimal
.
ZERO
)
.
ownCanExtractWeight
(
BigDecimal
.
ZERO
)
.
canExtractWeight
(
orderInfo
.
getTransportWeight
().
subtract
(
platOrderGoodsWeight
))
.
build
();
.
build
();
}
}
if
(
Objects
.
equals
(
orderInfo
.
getTruckDemand
(),
TruckDemandEnum
.
TruckType
.
OWNER_CAR
.
getCode
())){
if
(
Objects
.
equals
(
orderInfo
.
getTruckDemand
(),
TruckDemandEnum
.
TruckType
.
OWNER_CAR
.
getCode
())){
...
@@ -95,6 +101,7 @@ public class OrderWeightServiceImpl implements OrderWeightService {
...
@@ -95,6 +101,7 @@ public class OrderWeightServiceImpl implements OrderWeightService {
.
ownCanExtractWeight
(
orderInfo
.
getTransportWeight
().
subtract
(
ownOrderGoodsWeight
))
.
ownCanExtractWeight
(
orderInfo
.
getTransportWeight
().
subtract
(
ownOrderGoodsWeight
))
.
platformCarryWeight
(
BigDecimal
.
ZERO
)
.
platformCarryWeight
(
BigDecimal
.
ZERO
)
.
platCanExtractWeight
(
BigDecimal
.
ZERO
)
.
platCanExtractWeight
(
BigDecimal
.
ZERO
)
.
canExtractWeight
(
orderInfo
.
getTransportWeight
().
subtract
(
ownOrderGoodsWeight
))
.
build
();
.
build
();
}
}
if
(
Objects
.
equals
(
orderInfo
.
getTruckDemand
(),
TruckDemandEnum
.
TruckType
.
PLATFORM_ANY_CAR
.
getCode
())){
if
(
Objects
.
equals
(
orderInfo
.
getTruckDemand
(),
TruckDemandEnum
.
TruckType
.
PLATFORM_ANY_CAR
.
getCode
())){
...
@@ -119,6 +126,7 @@ public class OrderWeightServiceImpl implements OrderWeightService {
...
@@ -119,6 +126,7 @@ public class OrderWeightServiceImpl implements OrderWeightService {
.
platformCarryWeight
(
orderInfo
.
getPlatformCarryWeight
())
.
platformCarryWeight
(
orderInfo
.
getPlatformCarryWeight
())
.
ownCanExtractWeight
(
ownCanExtractWeight
)
.
ownCanExtractWeight
(
ownCanExtractWeight
)
.
platCanExtractWeight
(
platCanExtractWeight
)
.
platCanExtractWeight
(
platCanExtractWeight
)
.
canExtractWeight
(
platCanExtractWeight
.
add
(
ownCanExtractWeight
))
.
build
();
.
build
();
}
else
{
}
else
{
log
.
warn
(
"订单号:{} 的用车需求未知"
,
orderNo
);
log
.
warn
(
"订单号:{} 的用车需求未知"
,
orderNo
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论