Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
T
tcm-system
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TCM
tcm-system
Commits
8c012c87
Commit
8c012c87
authored
Jul 17, 2023
by
tangfang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改余额为0的处理,
添加银行卡空指针问题
parent
bb784864
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
CompanyServiceImpl.java
...ngding/web/authority/service/impl/CompanyServiceImpl.java
+1
-1
FinanceServiceImpl.java
...ngding/web/authority/service/impl/FinanceServiceImpl.java
+7
-3
No files found.
src/main/java/com/pangding/web/authority/service/impl/CompanyServiceImpl.java
View file @
8c012c87
...
...
@@ -669,7 +669,7 @@ public class CompanyServiceImpl implements CompanyService {
reqVo
.
setReservedPhone
(
reqVo
.
getPhone
());
reqVo
.
setStatus
(
0
);
ResponseResult
<
CompanyBankCardReqVo
>
result
=
new
ResponseResult
<>();
if
(
2
==
reqVo
.
getType
())
{
if
(
!
StringHelper
.
isEmpty
(
reqVo
.
getType
())
&&
2
==
reqVo
.
getType
())
{
result
=
payFeign
.
bindCompanyAccount
(
reqVo
);
}
else
{
result
=
payFeign
.
bindBack
(
reqVo
);
...
...
src/main/java/com/pangding/web/authority/service/impl/FinanceServiceImpl.java
View file @
8c012c87
...
...
@@ -474,10 +474,14 @@ public class FinanceServiceImpl implements FinanceService {
public
ResponseResult
<
String
>
saveCapitalFlow
(
CapitalFlowReqVo
req
)
{
mqService
.
log
(
new
MessageLogReqVo
(
ReportMqConstant
.
REPORT_PRODUCT_DETAIL_SAVE
,
req
.
getTempId
()));
double
money
=
req
.
getActualMoney
();
System
.
out
.
println
(
"处理余额:"
+
req
.
getOrderId
()
+
","
+
req
.
getOrderMonetDetailId
()
+
",money:"
+
money
);
if
(
CompanyConstant
.
CATEGORY_REFUND
==
req
.
getCategory
())
{
// 退款
money
=
-
money
;
if
(
money
==
0
){
money
=
0
;
}
else
{
money
=
-
money
;
}
}
if
(
StringHelper
.
isEmpty
(
money
)){
throw
new
CodeException
(
"金额不能为空"
);
...
...
@@ -487,7 +491,7 @@ public class FinanceServiceImpl implements FinanceService {
updateCompanyMoneyReqVo
.
setCompanyId
(
req
.
getCompanyId
());
updateCompanyMoneyReqVo
.
setNewWithdrawTotalCash
(
money
);
companyExtendDao
.
updateCompanyMoney
(
updateCompanyMoneyReqVo
);
System
.
out
.
println
(
"处理余额:"
+
req
.
getOrderId
()
+
","
+
req
.
getOrderMonetDetailId
());
CompanyResVo
companyVo
=
companyDao
.
load
(
req
.
getCompanyId
(),
CompanyResVo
.
class
);
if
(
StringHelper
.
isEmpty
(
companyVo
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment