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
6c6db09c
Commit
6c6db09c
authored
Nov 29, 2022
by
纪旭 韦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加载上月代码优化
parent
84971c18
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
16 deletions
+3
-16
performance/Performance.Api/Job/AutoSyncConfigJob.cs
+2
-1
performance/Performance.Services/ConfigService.cs
+1
-15
No files found.
performance/Performance.Api/Job/AutoSyncConfigJob.cs
View file @
6c6db09c
using
FluentScheduler
;
using
FluentScheduler
;
using
Microsoft.Extensions.Logging
;
using
Microsoft.Extensions.Logging
;
using
Performance.DtoModels
;
using
Performance.Infrastructure
;
using
Performance.Infrastructure
;
using
Performance.Repository
;
using
Performance.Repository
;
using
Performance.Services
;
using
Performance.Services
;
...
@@ -50,7 +51,7 @@ public void Execute()
...
@@ -50,7 +51,7 @@ public void Execute()
if
(
needSyncData
!=
null
&&
needSyncData
.
Any
())
if
(
needSyncData
!=
null
&&
needSyncData
.
Any
())
{
{
foreach
(
var
item
in
needSyncData
)
foreach
(
var
item
in
needSyncData
)
configService
.
CopyCommand
(
item
,
prevAllot
.
ID
,
true
);
configService
.
NewCopy
(
new
CopyRequest
()
{
AllotId
=
item
.
ID
,
Type
=
new
[]
{
"personnels"
,
"workItems"
,
"drugTypeDisburses"
,
"drugTypeFactors"
,
"deptTypes"
,
"agains"
,
"accountings"
,
"department"
}
}
);
}
}
var
noModify
=
allots
.
FirstOrDefault
(
w
=>
ConvertHelper
.
To
<
DateTime
>(
$"
{
w
.
Year
}
-
{
w
.
Month
}
"
)
<
date
&&
w
.
IsModifyConfig
==
0
);
var
noModify
=
allots
.
FirstOrDefault
(
w
=>
ConvertHelper
.
To
<
DateTime
>(
$"
{
w
.
Year
}
-
{
w
.
Month
}
"
)
<
date
&&
w
.
IsModifyConfig
==
0
);
...
...
performance/Performance.Services/ConfigService.cs
View file @
6c6db09c
...
@@ -739,21 +739,7 @@ public ApiResponse BatchSaveAccounting(int allotId, SaveCollectData request)
...
@@ -739,21 +739,7 @@ public ApiResponse BatchSaveAccounting(int allotId, SaveCollectData request)
public
void
Copy
(
per_allot
allot
)
public
void
Copy
(
per_allot
allot
)
{
{
var
prevAllotId
=
_perforPerAllotRepository
.
GetPrevAllot
(
allot
);
var
prevAllotId
=
_perforPerAllotRepository
.
GetPrevAllot
(
allot
);
CopyCommand
(
allot
,
prevAllotId
);
NewCopy
(
new
CopyRequest
()
{
AllotId
=
allot
.
ID
,
Type
=
new
[]
{
"personnels"
,
"workItems"
,
"drugTypeDisburses"
,
"drugTypeFactors"
,
"deptTypes"
,
"agains"
,
"accountings"
,
"department"
}
});
}
public
void
CopyCommand
(
per_allot
allot
,
int
prevAllotId
,
bool
delHistotyData
=
false
)
{
_personService
.
CreateAllotPersons
(
allot
.
HospitalId
,
allot
.
ID
,
prevAllotId
);
_copyService
.
Copy_WorkItems
(
allot
,
prevAllotId
,
delHistotyData
);
_copyService
.
Copy_DrugTypes
(
allot
,
prevAllotId
,
delHistotyData
);
_copyService
.
Copy_DrugTypeDisburses
(
allot
,
prevAllotId
,
delHistotyData
);
_copyService
.
Copy_DrugTypeFactors
(
allot
,
prevAllotId
,
delHistotyData
);
_copyService
.
Copy_DeptTypes
(
allot
,
prevAllotId
,
delHistotyData
);
_copyService
.
Copy_Agains
(
allot
,
prevAllotId
,
delHistotyData
);
_copyService
.
Copy_Accountings
(
allot
,
prevAllotId
,
delHistotyData
);
_copyService
.
Copy_DeptDic
(
allot
,
prevAllotId
,
delHistotyData
);
}
}
//todo:新copy
//todo:新copy
...
...
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