Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-cost-system
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
bltdc
dc-cost-system
Commits
0ce8ec64
Commit
0ce8ec64
authored
Oct 26, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c8324839
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
15 deletions
+11
-15
CostPlanNewController.java
...odule/cost/controller/costplan/CostPlanNewController.java
+10
-15
CostPlanDomain.java
...a/com/blt/other/module/database/model/CostPlanDomain.java
+1
-0
No files found.
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/controller/costplan/CostPlanNewController.java
View file @
0ce8ec64
...
...
@@ -103,35 +103,30 @@ public class CostPlanNewController {
}
@PostMapping
(
"/changeDic"
)
public
Map
<
String
,
Object
>
changeDic
(
HttpServletResponse
response
,
HttpServletRequest
request
)
{
public
Map
<
String
,
Object
>
changeDic
(
HttpServletResponse
response
,
HttpServletRequest
request
)
{
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
String
fromDic
=
request
.
getParameter
(
"fromDic"
);
String
payCounteractStr
=
request
.
getParameter
(
"payCounteract"
);
payCounteractStr
=
payCounteractStr
.
replace
(
" "
,
""
);
BigDecimal
payCounteract
=
null
;
String
toDic
=
request
.
getParameter
(
"toDic"
);
String
payCounteractStr
=
request
.
getParameter
(
"payCounteract"
).
replace
(
" "
,
""
);
String
payLendBalanceStr
=
request
.
getParameter
(
"payLendBalance"
).
replace
(
" "
,
""
);
BigDecimal
payCounteract
;
if
(!
payCounteractStr
.
isEmpty
())
{
payCounteract
=
new
BigDecimal
(
payCounteractStr
);
}
else
{
// result.put("success",false);
// result.put("msg","请输入合法的冲销金额");
// return result;
payCounteract
=
new
BigDecimal
(
0
);
}
String
payLendBalanceStr
=
request
.
getParameter
(
"payLendBalance"
);
payLendBalanceStr
=
payLendBalanceStr
.
replace
(
" "
,
""
);
BigDecimal
payLendBalance
=
null
;
BigDecimal
payLendBalance
;
if
(!
payLendBalanceStr
.
isEmpty
())
{
payLendBalance
=
new
BigDecimal
(
payLendBalanceStr
);
}
else
{
// result.put("success",false);
// result.put("msg","请输入合法的余额");
// return result;
payLendBalance
=
new
BigDecimal
(
0
);
}
String
toDic
=
request
.
getParameter
(
"toDic"
);
BigDecimal
cur
=
CurUtils
.
getCur
(
fromDic
,
toDic
,
getExchangeRateApi
);
BigDecimal
counteract
=
payCounteract
.
multiply
(
cur
);
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/database/model/CostPlanDomain.java
View file @
0ce8ec64
...
...
@@ -76,6 +76,7 @@ public class CostPlanDomain {
private
BigDecimal
payPlanAmount
;
// 计划金额 ( 支付币种 )
private
String
payDic
;
// 支付币种
private
BigDecimal
payCur
;
// 汇率
private
Integer
isTax
;
// 0 不抵扣个税 1 抵扣个税
private
Integer
companyValue
;
// 公司主体value
...
...
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