Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-cost
Overview
Overview
Details
Activity
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
huluobin
bailuntec-cost
Commits
17041cf2
Commit
17041cf2
authored
Jan 13, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 3.0
parents
f0fd2060
6a3d971f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
CostCashiercallbackDomain.java
...m/blt/other/database/model/CostCashiercallbackDomain.java
+1
-0
AbstractCostService.java
...er/module/cost/service/impl/cost/AbstractCostService.java
+8
-3
No files found.
cost-service/src/main/java/com/blt/other/database/model/CostCashiercallbackDomain.java
View file @
17041cf2
...
@@ -9,6 +9,7 @@ public class CostCashiercallbackDomain {
...
@@ -9,6 +9,7 @@ public class CostCashiercallbackDomain {
private
Integer
id
;
private
Integer
id
;
private
String
costNo
;
private
String
costNo
;
private
String
message
;
private
String
message
;
private
Integer
payid
;
private
Integer
payid
;
private
String
payno
;
private
String
payno
;
private
BigDecimal
payamount
;
private
BigDecimal
payamount
;
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/cost/AbstractCostService.java
View file @
17041cf2
...
@@ -435,16 +435,21 @@ public abstract class AbstractCostService implements CostService {
...
@@ -435,16 +435,21 @@ public abstract class AbstractCostService implements CostService {
}
}
void
cashierCallbackPass
(
CostCashiercallbackDomain
costCashiercallbackDomain
)
{
void
cashierCallbackPass
(
CostCashiercallbackDomain
costCashiercallbackDomain
)
{
CostDomain
costDomain
=
this
.
getCostByCostNo
(
costCashiercallbackDomain
.
getCostNo
());
// 获取xx货币-->CNY的汇率
// 获取xx货币-->CNY的汇率
if
(
costCashiercallbackDomain
.
getCashierunitcode
()
!=
null
)
{
BigDecimal
toRmbRate
=
CurUtils
.
getCur
(
costCashiercallbackDomain
.
getCashierunitcode
().
toUpperCase
(),
"CNY"
);
BigDecimal
toRmbRate
=
CurUtils
.
getCur
(
costCashiercallbackDomain
.
getCashierunitcode
().
toUpperCase
(),
"CNY"
);
costCashiercallbackDomain
.
setToRmbRate
(
toRmbRate
);
costCashiercallbackDomain
.
setToRmbRate
(
toRmbRate
);
costDomain
.
setToRmbRate
(
toRmbRate
);
}
// 保存出纳付款记录
// 保存出纳付款记录
Integer
integer
=
costCashiercallbackService
.
saveCostCashiercallbackResponse
(
costCashiercallbackDomain
);
Integer
integer
=
costCashiercallbackService
.
saveCostCashiercallbackResponse
(
costCashiercallbackDomain
);
log
.
warn
(
"保存出纳付款信息成功:"
+
integer
+
" "
+
costCashiercallbackDomain
);
log
.
warn
(
"保存出纳付款信息成功:"
+
integer
+
" "
+
costCashiercallbackDomain
);
// 付款成功,更改费用单信息,否则返回失败
// 付款成功,更改费用单信息,否则返回失败
CostDomain
costDomain
=
this
.
getCostByCostNo
(
costCashiercallbackDomain
.
getCostNo
());
costDomain
.
setCostStatus
(
4
);
costDomain
.
setCostStatus
(
4
);
if
(
null
!=
costDomain
.
getIsLend
())
{
if
(
null
!=
costDomain
.
getIsLend
())
{
...
@@ -452,10 +457,10 @@ public abstract class AbstractCostService implements CostService {
...
@@ -452,10 +457,10 @@ public abstract class AbstractCostService implements CostService {
costDomain
.
setLendStatus
(
1
);
costDomain
.
setLendStatus
(
1
);
}
}
}
}
costDomain
.
setAmountRmb
(
costCashiercallbackDomain
.
getCashierpaymoneyrmb
());
costDomain
.
setPayUserId
(
costCashiercallbackDomain
.
getPayuserid
());
costDomain
.
setPayUserId
(
costCashiercallbackDomain
.
getPayuserid
());
costDomain
.
setPayTime
(
new
Date
());
costDomain
.
setPayTime
(
new
Date
());
costDomain
.
setAmountRmb
(
costCashiercallbackDomain
.
getCashierpaymoneyrmb
());
costDomain
.
setToRmbRate
(
toRmbRate
);
this
.
updateCost
(
costDomain
);
this
.
updateCost
(
costDomain
);
costLogService
.
save
(
costCashiercallbackDomain
.
getCostNo
(),
costCashiercallbackDomain
.
getPayuserid
(),
"出纳收/付款成功:"
+
costCashiercallbackDomain
.
getPaynote
());
costLogService
.
save
(
costCashiercallbackDomain
.
getCostNo
(),
costCashiercallbackDomain
.
getPayuserid
(),
"出纳收/付款成功:"
+
costCashiercallbackDomain
.
getPaynote
());
}
}
...
...
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