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
4b53dbf8
Commit
4b53dbf8
authored
May 24, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加抽取时间、抽取添加判断规则
parent
8ac3238c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
performance/Performance.Api/Controllers/TemplateController.cs
+2
-1
performance/Performance.EntityModels/Entity/per_allot.cs
+6
-1
No files found.
performance/Performance.Api/Controllers/TemplateController.cs
View file @
4b53dbf8
...
...
@@ -221,9 +221,10 @@ public ApiResponse NewExtractData([CustomizeValidator, FromBody] ExtractRequest
//检验科室、费用类型是否需要补充
allot
.
IsExtracting
=
allot
.
IsExtracting
??
0
;
if
(
allot
.
IsExtracting
==
1
)
if
(
allot
.
IsExtracting
==
1
&&
allot
.
ExtractTime
.
HasValue
&&
DateTime
.
Now
.
AddHours
(-
3
)
<
allot
.
ExtractTime
)
return
new
ApiResponse
(
ResponseType
.
OK
,
"正在提取数据,请稍等!"
,
new
{
IsExtracting
=
true
});
allot
.
IsExtracting
=
1
;
allot
.
ExtractTime
=
DateTime
.
Now
;
allotService
.
Update
(
allot
);
string
email
=
claim
.
GetUserClaim
(
JwtClaimTypes
.
Mail
);
...
...
performance/Performance.EntityModels/Entity/per_allot.cs
View file @
4b53dbf8
...
...
@@ -80,7 +80,12 @@ public class per_allot
/// 是否在抽取数据0 否、1 是、2 抽取成功、3 抽取失败
/// </summary>
public
Nullable
<
int
>
IsExtracting
{
get
;
set
;
}
/// <summary>
/// 数据抽取起始时间
/// </summary>
public
Nullable
<
DateTime
>
ExtractTime
{
get
;
set
;
}
/// <summary>
/// 1、人事科提交重新生成 2、生成成功 3、原始数据修改
/// </summary>
...
...
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