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
c24e41ca
Commit
c24e41ca
authored
Mar 26, 2019
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绩效生成状态修改
parent
457718cc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
performance/Performance.Api/Controllers/AllotController.cs
+2
-2
performance/Performance.Services/PerExcelService/PerExcelService.cs
+8
-0
No files found.
performance/Performance.Api/Controllers/AllotController.cs
View file @
c24e41ca
...
...
@@ -150,8 +150,8 @@ public ApiResponse Generate([CustomizeValidator(RuleSet = "Delete"), FromBody]Al
var
allot
=
_allotService
.
GetAllot
(
request
.
ID
);
if
(
null
==
allot
||
string
.
IsNullOrEmpty
(
allot
.
Path
))
throw
new
PerformanceException
(
"当前绩效记录不存在或没有上传数据文件"
);
_perExcelService
.
Execute
(
allot
);
//
BackgroundJob.Enqueue(() => _perExcelService.Execute(allot));
//
_perExcelService.Execute(allot);
BackgroundJob
.
Enqueue
(()
=>
_perExcelService
.
Execute
(
allot
));
return
new
ApiResponse
(
ResponseType
.
OK
);
}
}
...
...
performance/Performance.Services/PerExcelService/PerExcelService.cs
View file @
c24e41ca
...
...
@@ -78,6 +78,11 @@ public class PerExcelService : IAutoInjection
public
void
Execute
(
per_allot
allot
)
{
allot
.
States
=
2
;
_perforPerAllotRepository
.
Update
(
allot
);
Clear
(
allot
.
ID
);
// 导出数据
var
excel
=
Import
(
allot
.
Path
);
...
...
@@ -98,6 +103,9 @@ public void Execute(per_allot allot)
//发送邮件
SendEmail
(
allot
);
allot
.
States
=
5
;
_perforPerAllotRepository
.
Update
(
allot
);
}
/// <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