Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
6713b463
Commit
6713b463
authored
May 26, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
验证科室核算单元、工号异步改同步
parent
8ac3238c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
performance/Performance.Api/Controllers/AllotController.cs
+2
-10
No files found.
performance/Performance.Api/Controllers/AllotController.cs
View file @
6713b463
...
@@ -313,16 +313,8 @@ public ApiResponse GenerateReport([CustomizeValidator(RuleSet = "Delete"), FromB
...
@@ -313,16 +313,8 @@ public ApiResponse GenerateReport([CustomizeValidator(RuleSet = "Delete"), FromB
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
AccountingVerify
([
FromRoute
]
int
allotId
)
public
ApiResponse
AccountingVerify
([
FromRoute
]
int
allotId
)
{
{
_backgroundTaskQueue
.
QueueBackgroundWorkItem
(
async
token
=>
_allotService
.
AccoungtingVerify
(
allotId
);
{
return
new
ApiResponse
(
ResponseType
.
OK
,
"核算单元及组别数据验证结束,请刷新页面。"
);
using
(
var
scope
=
_serviceScopeFactory
.
CreateScope
())
{
var
scopedServices
=
scope
.
ServiceProvider
.
GetRequiredService
<
AllotService
>();
scopedServices
.
AccoungtingVerify
(
allotId
);
await
Task
.
Delay
(
TimeSpan
.
FromSeconds
(
5
),
token
);
}
});
return
new
ApiResponse
(
ResponseType
.
OK
,
"核算单元及组别数据验证任务开始"
);
}
}
/*
/*
...
...
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