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
38239746
Commit
38239746
authored
Feb 08, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 更新
parent
53e9f5d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
CostPlanNewController.java
...t/other/module/cost/controller/CostPlanNewController.java
+0
-6
CostPlanNewPayServiceImpl.java
...cost/service/impl/costplan/CostPlanNewPayServiceImpl.java
+4
-0
No files found.
cost-service/src/main/java/com/blt/other/module/cost/controller/CostPlanNewController.java
View file @
38239746
...
...
@@ -41,9 +41,6 @@ public class CostPlanNewController {
@PostMapping
(
"/affirm"
)
public
Map
<
String
,
Object
>
affirm
(
@RequestParam
String
costPlanNo
)
{
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
// CostPlanNoLock lock = CostPlanNoLock.getInstance();
// try {
// lock.lock(Math.abs(costPlanNo.hashCode()));
CostPlanService
costPlanService
=
CostPlanServiceFactory
.
getCostPlanService
(
costPlanNo
);
Integer
affirm
=
costPlanService
.
affirm
(
costPlanNo
);
...
...
@@ -51,9 +48,6 @@ public class CostPlanNewController {
result
.
put
(
"msg"
,
"已生成 "
+
affirm
+
" 张费用单"
);
return
result
;
// } finally {
// lock.unlock(Math.abs(costPlanNo.hashCode()));
// }
}
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costplan/CostPlanNewPayServiceImpl.java
View file @
38239746
...
...
@@ -57,6 +57,7 @@ public class CostPlanNewPayServiceImpl extends AbstractCostPlanService implement
.
eq
(
CostPlanDomain:
:
getCostPlanNo
,
planDomain
.
getCostPlanNo
()));
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
Integer
affirm
(
String
costPlanNo
)
{
// 获取 temp 表中的记录
...
...
@@ -69,6 +70,9 @@ public class CostPlanNewPayServiceImpl extends AbstractCostPlanService implement
if
(
costPlanTempDomains
.
stream
().
anyMatch
(
temp
->
null
==
temp
.
getTypeNo
()))
{
throw
new
RuntimeException
(
"存在有金额、但是没有选择类型的子项目"
);
}
if
(
costPlanTempDomains
.
stream
().
noneMatch
(
temp
->
temp
.
getTypeId
()
==
null
))
{
throw
new
RuntimeException
(
"没选类型"
);
}
costPlanDomain
.
setCostPlanStatus
(
1
);
costPlanDao
.
updateById
(
costPlanDomain
);
...
...
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