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
9e48a42c
Commit
9e48a42c
authored
Dec 10, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新费用单的时候更新rmb金额
parent
62794454
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
17 deletions
+26
-17
Dockerfile
bailuntec-cost-core/src/main/docker/Dockerfile
+1
-0
CostController.java
...blt/other/module/cost/controller/cost/CostController.java
+16
-16
AbstractCostService.java
...er/module/cost/service/impl/cost/AbstractCostService.java
+8
-0
Lend2PayCostServiceImpl.java
...odule/cost/service/impl/cost/Lend2PayCostServiceImpl.java
+1
-1
No files found.
bailuntec-cost-core/src/main/docker/Dockerfile
View file @
9e48a42c
...
...
@@ -6,3 +6,4 @@ RUN echo "Asia/Shanghai" > /etc/timezone
ENTRYPOINT
["java","-Xms300m","-Xmx600m","-jar","-Dspring.profiles.active=test","/app.jar"]
EXPOSE
8082
cost/list/reset/resetInvoice
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/controller/cost/CostController.java
View file @
9e48a42c
...
...
@@ -64,6 +64,22 @@ public class CostController {
CostLogService
costLogService
;
@Resource
CostDao
costDao
;
@Autowired
UnSubmitState
unSubmitState
;
@Autowired
DepartmentCheckState
departmentCheckState
;
@Autowired
FinalCheckState
finalCheckState
;
@Autowired
FinancialCheckState
financialCheckState
;
@Autowired
PayedState
payedState
;
@Autowired
RefuseState
refuseState
;
@Autowired
UnPayState
unPayState
;
@Autowired
HrCheckState
hrCheckState
;
@ApiOperation
(
"获取前端要打印的费用单列表"
)
@PostMapping
(
"/list/print/list"
)
...
...
@@ -160,22 +176,6 @@ public class CostController {
return
resp
;
}
@Autowired
UnSubmitState
unSubmitState
;
@Autowired
DepartmentCheckState
departmentCheckState
;
@Autowired
FinalCheckState
finalCheckState
;
@Autowired
FinancialCheckState
financialCheckState
;
@Autowired
PayedState
payedState
;
@Autowired
RefuseState
refuseState
;
@Autowired
UnPayState
unPayState
;
@Autowired
HrCheckState
hrCheckState
;
@ApiOperation
(
"提交费用单"
)
@PostMapping
(
"submitAudit"
)
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/cost/AbstractCostService.java
View file @
9e48a42c
...
...
@@ -110,6 +110,9 @@ public abstract class AbstractCostService implements CostService {
@Override
public
void
setPrimaryDepartment
(
List
<
CostDomain
>
costDomains
)
{
if
(
ListUtil
.
isEmpty
(
costDomains
))
{
return
;
}
List
<
OaUser
>
oaUserList
=
oaUserMapper
.
selectList
(
new
LambdaQueryWrapper
<
OaUser
>()
.
in
(
OaUser:
:
getOaUserId
,
costDomains
.
stream
().
map
(
CostDomain:
:
getCreateUserid
).
collect
(
Collectors
.
toList
()))
...
...
@@ -178,6 +181,11 @@ public abstract class AbstractCostService implements CostService {
setCostDomain
(
costDomain
);
costDomain
.
setLastModifyDate
(
LocalDateTime
.
now
());
BigDecimal
toRmbRate
=
CurUtils
.
getCur
(
costDomain
.
getDic
(),
"CNY"
);
costDomain
.
setToRmbRate
(
toRmbRate
);
costDomain
.
setAmountRmb
(
costDomain
.
getAmount
().
multiply
(
toRmbRate
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
));
Integer
update
=
costDao
.
update
(
costDomain
,
new
LambdaQueryWrapper
<
CostDomain
>()
.
eq
(
CostDomain:
:
getCostNo
,
costDomain
.
getCostNo
()));
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/cost/Lend2PayCostServiceImpl.java
View file @
9e48a42c
...
...
@@ -6,7 +6,6 @@ import com.bailuntec.api.bailuntec.cw.request.PostApplyReq;
import
com.bailuntec.api.bailuntec.cw.response.CwResult
;
import
com.bailuntec.common.BeanUtils
;
import
com.bailuntec.common.JsonUtilByJackson
;
import
com.blt.other.common.exception.BizRuntimeException
;
import
com.blt.other.common.exception.RpcException
;
import
com.blt.other.common.util.CurUtils
;
import
com.blt.other.module.cost.model.CostDomain
;
...
...
@@ -159,6 +158,7 @@ public class Lend2PayCostServiceImpl extends AbstractCostService implements Cost
//todo 邮件通知
log
.
error
(
"金额异常 联系管理员,costNo:{}"
,
supCostDomain
.
getCostNo
());
}
supCostDomain
.
setLastModifyDate
(
LocalDateTime
.
now
());
costDao
.
updateById
(
supCostDomain
);
}
...
...
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