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
6b1dd702
Commit
6b1dd702
authored
Jun 07, 2022
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次分配模板修复
parent
92f5b65d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
1 deletions
+38
-1
performance/Performance.Services/AllotCompute/ResultComputeService.cs
+1
-0
performance/Performance.Services/AllotService.cs
+1
-0
performance/Performance.Services/DapperService.cs
+35
-0
performance/Performance.Services/SecondAllotService.cs
+1
-1
No files found.
performance/Performance.Services/AllotCompute/ResultComputeService.cs
View file @
6b1dd702
...
@@ -700,6 +700,7 @@ public bool IssuedChangeSecond(per_allot allot, List<ag_secondallot> secondList)
...
@@ -700,6 +700,7 @@ public bool IssuedChangeSecond(per_allot allot, List<ag_secondallot> secondList)
second
.
NursingDeptRemark
=
"科室绩效结果发生变更,需要重新提交"
;
second
.
NursingDeptRemark
=
"科室绩效结果发生变更,需要重新提交"
;
}
}
_service
.
FreezeAllotSync
(
allot
.
ID
);
_service
.
FreezeAllotSync
(
allot
.
ID
);
_service
.
SecondUseTempRestoreSync
();
}
}
}
}
perforAgsecondallotRepository
.
UpdateRange
(
updSeconds
.
ToArray
());
perforAgsecondallotRepository
.
UpdateRange
(
updSeconds
.
ToArray
());
...
...
performance/Performance.Services/AllotService.cs
View file @
6b1dd702
...
@@ -449,6 +449,7 @@ public void Generate(per_allot allot)
...
@@ -449,6 +449,7 @@ public void Generate(per_allot allot)
// 科室创建但不下发
// 科室创建但不下发
resultComputeService
.
GenerateSecondAllot
(
allot
);
resultComputeService
.
GenerateSecondAllot
(
allot
);
_service
.
FreezeAllotSync
(
allot
.
ID
);
_service
.
FreezeAllotSync
(
allot
.
ID
);
_service
.
SecondUseTempRestoreSync
();
UpdateAllotStates
(
allot
.
ID
,
(
int
)
AllotStates
.
绩效结果解析成功
,
EnumHelper
.
GetDescription
(
AllotStates
.
绩效结果解析成功
),
generate
);
UpdateAllotStates
(
allot
.
ID
,
(
int
)
AllotStates
.
绩效结果解析成功
,
EnumHelper
.
GetDescription
(
AllotStates
.
绩效结果解析成功
),
generate
);
perforCofdirectorRepository
.
SupplementaryData
(
allot
.
ID
);
perforCofdirectorRepository
.
SupplementaryData
(
allot
.
ID
);
...
...
performance/Performance.Services/DapperService.cs
View file @
6b1dd702
...
@@ -17,6 +17,7 @@ public DapperService(IOptions<AppConnection> options)
...
@@ -17,6 +17,7 @@ public DapperService(IOptions<AppConnection> options)
_options
=
options
;
_options
=
options
;
}
}
#
region
数据静态存储
/// <summary>
/// <summary>
/// 数据静态存储
/// 数据静态存储
/// </summary>
/// </summary>
...
@@ -48,5 +49,39 @@ public void FreezeAllot(int allotId)
...
@@ -48,5 +49,39 @@ public void FreezeAllot(int allotId)
}
}
}
}
}
}
#
endregion
#
region
二次分配模板修复
/// <summary>
/// 二次分配模板修复
/// </summary>
/// <param name="allotId"></param>
public
void
SecondUseTempRestoreSync
()
{
Task
.
Factory
.
StartNew
(()
=>
SecondUseTempRestore
());
}
/// <summary>
/// 数据静态存储
/// </summary>
/// <param name="allotId"></param>
/// <returns></returns>
public
void
SecondUseTempRestore
()
{
using
(
var
connection
=
new
MySqlConnection
(
_options
.
Value
.
PerformanceConnectionString
))
{
if
(
connection
.
State
!=
ConnectionState
.
Open
)
connection
.
Open
();
try
{
string
sql
=
$@"call proc_second_restore()"
;
connection
.
Execute
(
sql
,
commandTimeout
:
60
*
60
);
}
catch
(
Exception
)
{
throw
;
}
}
}
#
endregion
}
}
}
}
performance/Performance.Services/SecondAllotService.cs
View file @
6b1dd702
...
@@ -1729,7 +1729,7 @@ public bool ConfirmAudit(int userId, SecondAuditRequest request)
...
@@ -1729,7 +1729,7 @@ public bool ConfirmAudit(int userId, SecondAuditRequest request)
agsecondallotRepository
.
DeleteComputeHistory
(
request
.
SecondId
);
agsecondallotRepository
.
DeleteComputeHistory
(
request
.
SecondId
);
if
(
request
.
IsPass
==
1
)
if
(
request
.
IsPass
==
1
)
_service
.
FreezeAllotSync
(
second
.
AllotId
.
Value
);
_service
.
FreezeAllotSync
(
second
.
AllotId
.
Value
);
_service
.
SecondUseTempRestoreSync
();
return
result
;
return
result
;
}
}
...
...
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