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
6b98dbdb
Commit
6b98dbdb
authored
Mar 17, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加日志,收入全导,其他(非公式)全导;二次绩效加载根据unittype判断
parent
38a07311
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
69 additions
and
18 deletions
+69
-18
performance/Performance.Api/Controllers/ModExtractController.cs
+2
-1
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
+15
-0
performance/Performance.Services/DFExtractService.cs
+41
-15
performance/Performance.Services/ModExtractService.cs
+4
-1
performance/Performance.Services/SecondAllotService.cs
+7
-1
No files found.
performance/Performance.Api/Controllers/ModExtractController.cs
View file @
6b98dbdb
...
...
@@ -160,8 +160,9 @@ public ApiResponse AddItem([FromBody]ItemListRequest request)
[
HttpPost
]
public
ApiResponse
Items
([
FromBody
]
ModItemRequest
request
)
{
logger
.
LogInformation
(
$"请求地址
{
url
.
HttpPost
}
/modextract/items"
);
logger
.
LogInformation
(
$"
绩效收入模板配置项列表 :
请求地址
{
url
.
HttpPost
}
/modextract/items"
);
HttpHelper
.
HttpPost
(
url
.
HttpPost
+
"/modextract/items"
,
JsonHelper
.
Serialize
(
request
),
true
);
logger
.
LogInformation
(
$"绩效收入模板配置项列表在
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd hh:mm:ss完成请求"
)}
"
);
var
list
=
modExtractService
.
Items
(
request
.
ModuleId
.
Value
);
return
new
ApiResponse
(
ResponseType
.
OK
,
list
);
}
...
...
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
View file @
6b98dbdb
...
...
@@ -683,6 +683,11 @@
绩效ID
</summary>
</member>
<member
name=
"P:Performance.EntityModels.ag_secondallot.UseTempId"
>
<summary>
使用模板
</summary>
</member>
<member
name=
"P:Performance.EntityModels.ag_secondallot.UnitType"
>
<summary>
科室类型
...
...
@@ -1393,6 +1398,11 @@
科室
</summary>
</member>
<member
name=
"P:Performance.EntityModels.im_accountbasic.IncludeAvgCalculate"
>
<summary>
是否带入平均计算 是 否
</summary>
</member>
<member
name=
"P:Performance.EntityModels.im_accountbasic.PermanentStaff"
>
<summary>
定科人数
...
...
@@ -2518,6 +2528,11 @@
科室
</summary>
</member>
<member
name=
"P:Performance.EntityModels.res_account.IncludeAvgCalculate"
>
<summary>
是否带入平均计算 是 否
</summary>
</member>
<member
name=
"P:Performance.EntityModels.res_account.PermanentStaff"
>
<summary>
定科人数
...
...
performance/Performance.Services/DFExtractService.cs
View file @
6b98dbdb
This diff is collapsed.
Click to expand it.
performance/Performance.Services/ModExtractService.cs
View file @
6b98dbdb
...
...
@@ -440,9 +440,12 @@ public void AddItems(int moduleId)
throw
new
PerformanceException
(
$"医院配置信息未设置"
);
}
var
connection
=
ConnectionBuilder
.
Create
(
DatabaseType
.
SqlServer
,
hospitalConfig
.
DbSource
,
hospitalConfig
.
DbName
,
hospitalConfig
.
DbUser
,
hospitalConfig
.
DbPassword
);
logger
.
LogInformation
(
"创建数据库连接"
);
var
connection
=
ConnectionBuilder
.
Create
(
DatabaseType
.
Oracle
,
hospitalConfig
.
DbSource
,
hospitalConfig
.
DbName
,
hospitalConfig
.
DbUser
,
hospitalConfig
.
DbPassword
);
string
sql
=
sqlconfig
.
Content
;
logger
.
LogInformation
(
$"执行sql:
{
sql
}
"
);
var
dataList
=
perforExtractRepository
.
ExecuteScript
(
connection
,
sql
,
null
);
logger
.
LogInformation
(
$"获取数据
{
dataList
?.
Count
??
0
}
条"
);
if
(
dataList
!=
null
&&
dataList
.
Any
())
{
var
itemList
=
dataList
.
Select
(
t
=>
new
mod_item
...
...
performance/Performance.Services/SecondAllotService.cs
View file @
6b98dbdb
...
...
@@ -84,7 +84,13 @@ public List<SecondListResponse> GetSecondList(int userId)
throw
new
NotImplementedException
(
"该医院未生成绩效"
);
var
allotListId
=
allotList
.
Select
(
t
=>
t
.
ID
).
ToList
();
var
secondList
=
perforAgsecondallotRepository
.
GetEntities
(
t
=>
allotListId
.
Contains
(
t
.
AllotId
.
Value
)
&&
t
.
Department
==
user
.
Department
);
Expression
<
Func
<
ag_secondallot
,
bool
>>
exp
=
t
=>
allotListId
.
Contains
(
t
.
AllotId
.
Value
)
&&
t
.
Department
==
user
.
Department
;
if
(
role
.
RoleID
==
application
.
NurseRole
)
exp
=
exp
.
And
(
t
=>
t
.
UnitType
==
"护理组"
);
else
exp
=
exp
.
And
(
t
=>
t
.
UnitType
!=
"护理组"
);
var
secondList
=
perforAgsecondallotRepository
.
GetEntities
(
exp
);
//各科室绩效分配结果
var
accountList
=
perforResaccountRepository
.
GetEntities
(
t
=>
allotListId
.
Contains
(
t
.
AllotID
.
Value
)
&&
t
.
Department
==
user
.
Department
);
//取得未生成二次绩效的绩效id
...
...
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