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
846d0fe4
Commit
846d0fe4
authored
Mar 28, 2019
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://192.168.0.110:8880/zry/performance
into develop
parents
c1d1cd1d
b558fa43
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 @
846d0fe4
...
@@ -28,6 +28,11 @@ public IEnumerable<TEntity> DapperQuery(string sql, object param)
...
@@ -28,6 +28,11 @@ public IEnumerable<TEntity> DapperQuery(string sql, object param)
return
context
.
Database
.
GetDbConnection
().
Query
<
TEntity
>(
sql
,
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
)
public
bool
Add
(
TEntity
entity
)
{
{
context
.
Set
<
TEntity
>().
Add
(
entity
);
context
.
Set
<
TEntity
>().
Add
(
entity
);
...
...
performance/Performance.Repository/PerforCofdirectorRepository.cs
View file @
846d0fe4
...
@@ -17,5 +17,21 @@ public class PerforCofdirectorRepository : PerforRepository<cof_director>
...
@@ -17,5 +17,21 @@ public class PerforCofdirectorRepository : PerforRepository<cof_director>
public
PerforCofdirectorRepository
(
PerformanceDbContext
context
)
:
base
(
context
)
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