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
74c2b17c
Commit
74c2b17c
authored
Apr 21, 2021
by
liyanlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加付款理由
parent
6850e85c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
CostFinansysDetailController.java
.../module/cost/controller/CostFinansysDetailController.java
+14
-2
No files found.
cost-service/src/main/java/com/blt/other/module/cost/controller/CostFinansysDetailController.java
View file @
74c2b17c
package
com
.
blt
.
other
.
module
.
cost
.
controller
;
package
com
.
blt
.
other
.
module
.
cost
.
controller
;
import
com.bailuntec.cost.api.dto.CostDetailDto
;
import
com.bailuntec.cost.api.dto.CostDto
;
import
com.bailuntec.cost.api.dto.CostDto
;
import
com.blt.other.common.annotation.LoginIgnore
;
import
com.blt.other.common.annotation.LoginIgnore
;
import
com.blt.other.common.util.AxiosUtil
;
import
com.blt.other.common.util.AxiosUtil
;
...
@@ -16,6 +17,7 @@ import com.blt.other.module.sys.service.UserService;
...
@@ -16,6 +17,7 @@ import com.blt.other.module.sys.service.UserService;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -24,6 +26,9 @@ import javax.annotation.Resource;
...
@@ -24,6 +26,9 @@ import javax.annotation.Resource;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Optional
;
@Api
(
tags
=
"财务信息接口"
)
@Api
(
tags
=
"财务信息接口"
)
@RestController
@RestController
...
@@ -86,13 +91,20 @@ public class CostFinansysDetailController {
...
@@ -86,13 +91,20 @@ public class CostFinansysDetailController {
data
.
setPayWay
(
""
);
data
.
setPayWay
(
""
);
data
.
setAccount
(
cost
.
getBankCard
());
//帐号
data
.
setAccount
(
cost
.
getBankCard
());
//帐号
// 费用理由
// 费用理由
final
StringBuilder
costReason
=
new
StringBuilder
();
cost
.
getCostDetailList
()
.
forEach
(
item
->
{
if
(!
StringUtils
.
isEmpty
(
item
.
getCostReason
()))
{
costReason
.
append
(
"付款理由:"
).
append
(
item
.
getCostReason
()).
append
(
";"
);
}
});
if
(
1
==
cost
.
getCostForm
())
{
if
(
1
==
cost
.
getCostForm
())
{
data
.
setRemark
(
cost
.
getTypeName
());
data
.
setRemark
(
cost
.
getTypeName
());
if
(
null
!=
cost
.
getIsLend
()
&&
2
==
cost
.
getIsLend
())
{
if
(
null
!=
cost
.
getIsLend
()
&&
2
==
cost
.
getIsLend
())
{
data
.
setRemark
(
cost
.
getCostReason
());
data
.
setRemark
(
cost
.
getCostReason
()
+
";"
+
costReason
.
toString
()
);
}
}
}
else
{
}
else
{
data
.
setRemark
(
cost
.
getCostReason
());
data
.
setRemark
(
cost
.
getCostReason
()
+
";"
+
costReason
.
toString
()
);
}
}
// 币种、金额
// 币种、金额
if
(
null
!=
cost
.
getIsLend
()
&&
2
==
cost
.
getIsLend
())
{
if
(
null
!=
cost
.
getIsLend
()
&&
2
==
cost
.
getIsLend
())
{
...
...
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