Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bill-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
bill-platform
Commits
a98846b0
Commit
a98846b0
authored
11 months ago
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改批量提交逻辑
parent
b507555b
master
first
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
bill-manager/src/main/java/com/mortals/xhx/module/ph/web/PhQueueController.java
...java/com/mortals/xhx/module/ph/web/PhQueueController.java
+3
-0
bill-manager/src/main/java/com/mortals/xhx/module/pj/web/PjEvaluateController.java
...a/com/mortals/xhx/module/pj/web/PjEvaluateController.java
+11
-6
No files found.
bill-manager/src/main/java/com/mortals/xhx/module/ph/web/PhQueueController.java
View file @
a98846b0
...
...
@@ -111,6 +111,9 @@ public class PhQueueController extends BaseCRUDJsonBodyMappingController<PhQueue
public
void
run
()
{
for
(
PhQueueEntity
entity
:
list
)
{
getSite
(
entity
);
entity
.
setCreateTime
(
new
Date
());
entity
.
setCreateUserId
(
1L
);
entity
.
setCreateUserName
(
"admin"
);
}
removeDuplicate
(
list
);
...
...
This diff is collapsed.
Click to expand it.
bill-manager/src/main/java/com/mortals/xhx/module/pj/web/PjEvaluateController.java
View file @
a98846b0
...
...
@@ -60,6 +60,8 @@ public class PjEvaluateController extends BaseCRUDJsonBodyMappingController<PjEv
@Autowired
private
ICacheService
cacheService
;
@Autowired
private
PjEvaluateService
pjEvaluateService
;
public
PjEvaluateController
()
{
...
...
@@ -108,17 +110,21 @@ public class PjEvaluateController extends BaseCRUDJsonBodyMappingController<PjEv
public
String
batchSave
(
@RequestBody
List
<
PjEvaluateEntity
>
list
)
{
BatchSavePjTask
batchSavePjTask
=
new
BatchSavePjTask
(
list
);
/* BatchSavePjTask batchSavePjTask = new BatchSavePjTask(list);
ThreadPool.getInstance().execute(batchSavePjTask);*/
ThreadPool
.
getInstance
().
execute
(
batchSavePjTask
);
/*
Runnable
runnable
=
new
Runnable
()
{
@Override
public
void
run
()
{
for
(
PjEvaluateEntity
entity
:
list
)
{
getSite
(
entity
);
entity
.
setCreateTime
(
new
Date
());
entity
.
setCreateUserId
(
1L
);
entity
.
setCreateUserName
(
"admin"
);
}
removeDuplicate
(
list
);
if
(
ObjectUtils
.
isEmpty
(
list
))
return
;
...
...
@@ -126,10 +132,9 @@ public class PjEvaluateController extends BaseCRUDJsonBodyMappingController<PjEv
}
};
ThreadPool.getInstance().execute(runnable);
*/
ThreadPool
.
getInstance
().
execute
(
runnable
);
return
JSON
.
toJSONString
(
Rest
.
ok
(
"接收成功"
));
// return super.batchSave(list);
}
...
...
This diff is collapsed.
Click to expand it.
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