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
b558fa43
Commit
b558fa43
authored
Mar 28, 2019
by
李承祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除无效的绩效数据
parent
efd0ac30
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
performance/Performance.Repository/BaseRepository.cs
+5
-0
performance/Performance.Repository/PerforCofdirectorRepository.cs
+16
-0
No files found.
performance/Performance.Repository/BaseRepository.cs
View file @
b558fa43
...
...
@@ -28,6 +28,11 @@ public IEnumerable<TEntity> DapperQuery(string sql, object param)
return
context
.
Database
.
GetDbConnection
().
Query
<
TEntity
>(
sql
,
param
);
}
public
int
Execute
(
string
sql
,
object
param
)
{
return
context
.
Database
.
GetDbConnection
().
Execute
(
sql
,
param
);
}
public
bool
Add
(
TEntity
entity
)
{
context
.
Set
<
TEntity
>().
Add
(
entity
);
...
...
performance/Performance.Repository/PerforCofdirectorRepository.cs
View file @
b558fa43
...
...
@@ -17,5 +17,21 @@ public class PerforCofdirectorRepository : PerforRepository<cof_director>
public
PerforCofdirectorRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
{
}
public
int
DeleteData
(
int
allotId
)
{
return
Execute
(
"delete from im_accountbasic where allotid=@allotid;"
+
"delete from im_data where allotid=@allotid;"
+
"delete from im_employee where allotid=@allotid;"
+
"delete from im_header where allotid=@allotid;"
+
"delete from im_specialunit where allotid=@allotid;"
+
"delete from per_allot where allotid=@allotid;"
+
"delete from per_sheet where allotid=@allotid;"
+
"delete from res_accountdoctor where allotid=@allotid;"
+
"delete from res_accountnurse where allotid=@allotid;"
+
"delete from res_baiscnorm where allotid=@allotid;"
+
"delete from res_compute where allotid=@allotid;"
+
"delete from res_specialunit where allotid=@allotid;"
,
new
{
allotid
=
allotId
});
}
}
}
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