Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
84f77a31
提交
84f77a31
authored
10月 29, 2023
作者:
huningning
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/v5.5_settlement_20231011' into v5.5_settlement_20231011
上级
252e5160
c3a8dd7d
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
36 行增加
和
18 行删除
+36
-18
OrderChildFreightInfoVO.java
...a/com/clx/performance/vo/app/OrderChildFreightInfoVO.java
+9
-1
OrderChildVO.java
...rc/main/java/com/clx/performance/vo/app/OrderChildVO.java
+10
-1
OrderChildDaoImpl.java
.../java/com/clx/performance/dao/impl/OrderChildDaoImpl.java
+1
-0
OwnerAccountMapper.java
...n/java/com/clx/performance/mapper/OwnerAccountMapper.java
+1
-1
OrderChildPoundAuditServiceImpl.java
...ormance/service/impl/OrderChildPoundAuditServiceImpl.java
+5
-8
OrderChildServiceImpl.java
...m/clx/performance/service/impl/OrderChildServiceImpl.java
+6
-4
OwnerAccountServiceImpl.java
...clx/performance/service/impl/OwnerAccountServiceImpl.java
+4
-3
没有找到文件。
performance-api/src/main/java/com/clx/performance/vo/app/OrderChildFreightInfoVO.java
浏览文件 @
84f77a31
...
...
@@ -49,7 +49,15 @@ public class OrderChildFreightInfoVO {
@ApiModelProperty
(
value
=
"总运费(元)"
,
example
=
"1.23"
)
private
BigDecimal
totalFreight
;
public
BigDecimal
getTotalFreight
()
{
return
freightPrice
.
multiply
(
weight
).
setScale
(
2
,
RoundingMode
.
HALF_UP
);
BigDecimal
totalFreight
=
freightPrice
.
multiply
(
weight
);
if
(
unloadNet
!=
null
){
totalFreight
=
freightPrice
.
multiply
(
unloadNet
.
compareTo
(
loadNet
)
<
0
?
unloadNet
:
loadNet
);
BigDecimal
dif
=
unloadNet
.
subtract
(
weight
);
if
(
dif
.
compareTo
(
BigDecimal
.
ZERO
)
<
0
){
totalFreight
=
totalFreight
.
add
(
lossPrice
.
multiply
(
dif
));
}
}
return
totalFreight
.
setScale
(
2
,
RoundingMode
.
HALF_UP
);
}
@ApiModelProperty
(
value
=
"亏吨扣款(元)"
,
example
=
"1.23"
)
...
...
performance-api/src/main/java/com/clx/performance/vo/app/OrderChildVO.java
浏览文件 @
84f77a31
...
...
@@ -154,7 +154,15 @@ public class OrderChildVO {
@ApiModelProperty
(
value
=
"总运费(元)"
,
example
=
"1.23"
)
private
BigDecimal
totalFreight
;
public
BigDecimal
getTotalFreight
()
{
return
freightPrice
.
multiply
(
weight
).
setScale
(
2
,
RoundingMode
.
HALF_UP
);
BigDecimal
totalFreight
=
freightPrice
.
multiply
(
weight
);
if
(
unloadNet
!=
null
){
totalFreight
=
freightPrice
.
multiply
(
unloadNet
.
compareTo
(
loadNet
)
<
0
?
unloadNet
:
loadNet
);
BigDecimal
dif
=
unloadNet
.
subtract
(
weight
);
if
(
dif
.
compareTo
(
BigDecimal
.
ZERO
)
<
0
){
totalFreight
=
totalFreight
.
add
(
lossPrice
.
multiply
(
dif
));
}
}
return
totalFreight
.
setScale
(
2
,
RoundingMode
.
HALF_UP
);
}
}
\ No newline at end of file
performance-web/src/main/java/com/clx/performance/dao/impl/OrderChildDaoImpl.java
浏览文件 @
84f77a31
...
...
@@ -64,6 +64,7 @@ public class OrderChildDaoImpl extends BaseDaoImpl<OrderChildMapper, OrderChild,
.
set
(
OrderChild:
:
getUnloadTime
,
item
.
getUnloadTime
())
.
set
(
OrderChild:
:
getPoundStatus
,
item
.
getPoundStatus
())
.
set
(
OrderChild:
:
getWeight
,
item
.
getWeight
())
.
set
(
OrderChild:
:
getFreight
,
item
.
getFreight
())
.
set
(
OrderChild:
:
getStatus
,
item
.
getStatus
())
);
...
...
performance-web/src/main/java/com/clx/performance/mapper/OwnerAccountMapper.java
浏览文件 @
84f77a31
...
...
@@ -40,7 +40,7 @@ public interface OwnerAccountMapper extends BaseMapper<OwnerAccount> {
)
Integer
subAccount
(
@Param
(
"account"
)
OwnerAccount
account
,
@Param
(
"now"
)
String
now
);
@Update
(
"update owner_account set frozen_balance = frozen_balance - #{account.frozenBalance},"
+
@Update
(
"update owner_account set frozen_balance = frozen_balance - #{account.frozenBalance},
account_balance = account_balance - #{account.accountBalance},
"
+
"modified_time=#{now}"
+
"where id = #{account.id} and modified_time = #{account.modifiedTime}"
)
...
...
performance-web/src/main/java/com/clx/performance/service/impl/OrderChildPoundAuditServiceImpl.java
浏览文件 @
84f77a31
...
...
@@ -156,20 +156,17 @@ public class OrderChildPoundAuditServiceImpl implements OrderChildPoundAuditSer
* 运单拉运吨数计算
*/
public
BigDecimal
orderChildWeightCalc
(
OrderChild
orderChild
){
if
(
orderChild
.
getLoadNet
()
==
null
)
{
return
orderChild
.
getTruckLoad
();}
else
{
return
orderChild
.
getLoadNet
();}
return
orderChild
.
getUnloadNet
().
compareTo
(
orderChild
.
getLoadNet
())
<
0
?
orderChild
.
getUnloadNet
()
:
orderChild
.
getLoadNet
();
}
/**
* 运费计算
*/
public
BigDecimal
orderChildFreightCalc
(
OrderChild
orderChild
){
BigDecimal
totalFreight
=
orderChild
.
getFreightPrice
().
multiply
(
orderChild
.
getWeight
());
if
(
orderChild
.
getUnloadNet
()
!=
null
){
BigDecimal
dif
=
orderChild
.
getUnloadNet
().
subtract
(
orderChild
.
getWeight
());
if
(
dif
.
compareTo
(
BigDecimal
.
ZERO
)
<
0
){
totalFreight
=
totalFreight
.
add
(
orderChild
.
getLossPrice
().
multiply
(
dif
));
}
BigDecimal
totalFreight
=
orderChild
.
getFreightPrice
().
multiply
(
orderChild
.
getUnloadNet
().
compareTo
(
orderChild
.
getLoadNet
())
<
0
?
orderChild
.
getUnloadNet
()
:
orderChild
.
getLoadNet
());
BigDecimal
dif
=
orderChild
.
getUnloadNet
().
subtract
(
orderChild
.
getLoadNet
());
if
(
dif
.
compareTo
(
BigDecimal
.
ZERO
)
<
0
){
totalFreight
=
totalFreight
.
add
(
orderChild
.
getLossPrice
().
multiply
(
dif
));
}
return
totalFreight
.
setScale
(
0
,
RoundingMode
.
HALF_UP
);
...
...
performance-web/src/main/java/com/clx/performance/service/impl/OrderChildServiceImpl.java
浏览文件 @
84f77a31
...
...
@@ -1281,13 +1281,15 @@ public class OrderChildServiceImpl implements OrderChildService {
carrierOrderChildDetailVO
.
setChildLogs
(
orderChildLogStruct
.
convert
(
orderChildLog
));
//应付运费
BigDecimal
payableFreight
=
BigDecimal
.
ZERO
;
if
(
Objects
.
nonNull
(
orderChild
.
getLoadNet
())
){
payableFreight
=
orderChild
.
get
LoadNet
()
.
multiply
(
orderChild
.
get
FreightPrice
())
BigDecimal
payableFreight
=
orderChild
.
getFreightPrice
().
multiply
(
orderChild
.
getWeight
())
;
if
(
orderChild
.
getUnloadNet
()
!=
null
){
payableFreight
=
orderChild
.
get
FreightPrice
()
.
multiply
(
orderChild
.
get
UnloadNet
().
compareTo
(
orderChild
.
getLoadNet
())
<
0
?
orderChild
.
getUnloadNet
()
:
orderChild
.
getLoadNet
())
.
setScale
(
0
,
BigDecimal
.
ROUND_HALF_UP
);
}
//亏吨扣款(元)
BigDecimal
lossDeduction
=
BigDecimal
.
ZERO
;
if
(
Objects
.
nonNull
(
orderChild
.
getLoadNet
())
&&
Objects
.
nonNull
(
orderChild
.
getUnloadNet
())){
...
...
performance-web/src/main/java/com/clx/performance/service/impl/OwnerAccountServiceImpl.java
浏览文件 @
84f77a31
...
...
@@ -183,11 +183,11 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
//账户余额
runningWaterRecord
.
setAccountBalance
(
account
.
getAccountBalance
());
//冻结金额
runningWaterRecord
.
setFrozenBalance
(
account
.
getFrozenBalance
()
.
add
(
caseOutBalance
)
);
runningWaterRecord
.
setFrozenBalance
(
account
.
getFrozenBalance
());
//扣除金额
runningWaterRecord
.
setTakeOutBalance
(
BigDecimal
.
ZERO
);
//可用余额
runningWaterRecord
.
setUsableBalance
(
account
.
getUsableBalance
()
.
subtract
(
caseOutBalance
)
);
runningWaterRecord
.
setUsableBalance
(
account
.
getUsableBalance
());
runningWaterRecord
.
setOwnerUserNo
(
param
.
getOwnerUserNo
());
runningWaterRecord
.
setAccountType
(
param
.
getAccountType
());
...
...
@@ -363,10 +363,11 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
OwnerAccount
account
=
ownerAccountDao
.
getAccountByOwnerUserNoAndAccountType
(
ownerCaseOut
.
getOwnerUserNo
(),
ownerCaseOut
.
getAccountType
());
OwnerAccount
update
=
new
OwnerAccount
();
update
.
setFrozenBalance
(
caseOutBalance
);
update
.
setAccountBalance
(
caseOutBalance
);
update
.
setId
(
account
.
getId
());
update
.
setModifiedTime
(
account
.
getModifiedTime
());
Integer
flag
=
ownerAccountDao
.
updateOwnerAccountForConfirm
(
update
);
if
(
flag
>
0
)
{
if
(
flag
!=
null
&&
flag
>
0
)
{
account
=
ownerAccountDao
.
getAccountByOwnerUserNoAndAccountType
(
ownerCaseOut
.
getOwnerUserNo
(),
ownerCaseOut
.
getAccountType
());
//插入提现成功流水
OwnerRunningWaterRecord
runningWaterRecord
=
new
OwnerRunningWaterRecord
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论