Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
fe95c38d
Commit
fe95c38d
authored
Mar 10, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
60e88abf
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
42 deletions
+3
-42
RB_OKR_AttentionRepository.cs
Edu.Repository/OKR/RB_OKR_AttentionRepository.cs
+1
-33
RB_OKR_CommentRepository.cs
Edu.Repository/OKR/RB_OKR_CommentRepository.cs
+0
-2
RB_OKR_KeyResultRepository.cs
Edu.Repository/OKR/RB_OKR_KeyResultRepository.cs
+1
-2
RB_OKR_MatterRepository.cs
Edu.Repository/OKR/RB_OKR_MatterRepository.cs
+1
-3
RB_OKR_PeriodConfigRepository.cs
Edu.Repository/OKR/RB_OKR_PeriodConfigRepository.cs
+0
-2
No files found.
Edu.Repository/OKR/RB_OKR_AttentionRepository.cs
View file @
fe95c38d
using
Edu.Common.Enum
;
using
Edu.Model.Entity.OKR
;
using
Edu.Model.Entity.OKR
;
using
Edu.Model.ViewModel.OKR
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
VT.FW.DB.Dapper
;
namespace
Edu.Repository.OKR
{
...
...
@@ -13,35 +10,6 @@ namespace Edu.Repository.OKR
/// </summary>
public
class
RB_OKR_AttentionRepository
:
BaseRepository
<
RB_OKR_Attention
>
{
/// <summary>
/// 获取分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="demodel"></param>
/// <returns></returns>
//public List<RB_OKR_Comment_ViewModel> GetPageList(int pageIndex, int pageSize, out long rowsCount, RB_OKR_Comment_ViewModel demodel)
//{
// string where = $@" 1=1 and State <> 3";
// if (demodel.Group_Id > 0)
// {
// where += $@" and {nameof(RB_OKR_Comment_ViewModel.Group_Id)} ={demodel.Group_Id}";
// }
// if (demodel.PeriodId > 0)
// {
// where += $@" and {nameof(RB_OKR_Comment_ViewModel.PeriodId)} ={demodel.PeriodId}";
// }
// if (demodel.State > 0)
// {
// where += $@" and {nameof(RB_OKR_Comment_ViewModel.State)} ={demodel.State}";
// }
// string sql = $@" select * from RB_OKR_Comment where {where} order by Id desc";
// return GetPage<RB_OKR_Comment_ViewModel>(pageIndex, pageSize, out rowsCount, sql).ToList();
//}
/// <summary>
/// 获取列表
/// </summary>
...
...
Edu.Repository/OKR/RB_OKR_CommentRepository.cs
View file @
fe95c38d
...
...
@@ -14,7 +14,6 @@ namespace Edu.Repository.OKR
/// </summary>
public
class
RB_OKR_CommentRepository
:
BaseRepository
<
RB_OKR_Comment
>
{
/// <summary>
/// 获取分页列表
/// </summary>
...
...
@@ -58,7 +57,6 @@ namespace Edu.Repository.OKR
{
where
+=
$@" and
{
nameof
(
RB_OKR_Comment_ViewModel
.
ParentId
)}
=
{
demodel
.
ParentId
}
"
;
}
string
sql
=
$@" select * from RB_OKR_Comment where
{
where
}
order by Id desc"
;
return
GetPage
<
RB_OKR_Comment_ViewModel
>(
pageIndex
,
pageSize
,
out
rowsCount
,
sql
).
ToList
();
}
...
...
Edu.Repository/OKR/RB_OKR_KeyResultRepository.cs
View file @
fe95c38d
...
...
@@ -14,7 +14,6 @@ namespace Edu.Repository.OKR
/// </summary>
public
class
RB_OKR_KeyResultRepository
:
BaseRepository
<
RB_OKR_KeyResult
>
{
/// <summary>
/// 获取分页列表
/// </summary>
...
...
@@ -139,4 +138,4 @@ namespace Edu.Repository.OKR
return
Execute
(
sql
)
>
0
;
}
}
}
}
\ No newline at end of file
Edu.Repository/OKR/RB_OKR_MatterRepository.cs
View file @
fe95c38d
...
...
@@ -14,7 +14,6 @@ namespace Edu.Repository.OKR
/// </summary>
public
class
RB_OKR_MatterRepository
:
BaseRepository
<
RB_OKR_Matter
>
{
/// <summary>
/// 获取列表
/// </summary>
...
...
@@ -42,6 +41,5 @@ namespace Edu.Repository.OKR
string
sql
=
$@" select * from RB_OKR_Matter where
{
where
}
order by Id desc"
;
return
Get
<
RB_OKR_Matter
>(
sql
).
ToList
();
}
}
}
}
\ No newline at end of file
Edu.Repository/OKR/RB_OKR_PeriodConfigRepository.cs
View file @
fe95c38d
...
...
@@ -29,7 +29,6 @@ namespace Edu.Repository.OKR
{
where
+=
$@" and
{
nameof
(
RB_OKR_PeriodConfig_ViewModel
.
Group_Id
)}
=
{
demodel
.
Group_Id
}
"
;
}
string
sql
=
$@" select * from RB_OKR_PeriodConfig where
{
where
}
order by Id desc"
;
return
GetPage
<
RB_OKR_PeriodConfig_ViewModel
>(
pageIndex
,
pageSize
,
out
rowsCount
,
sql
).
ToList
();
}
...
...
@@ -46,7 +45,6 @@ namespace Edu.Repository.OKR
{
where
+=
$@" and
{
nameof
(
RB_OKR_PeriodConfig_ViewModel
.
Group_Id
)}
=
{
demodel
.
Group_Id
}
"
;
}
string
sql
=
$@" select * from RB_OKR_PeriodConfig where
{
where
}
order by Id desc"
;
return
Get
<
RB_OKR_PeriodConfig_ViewModel
>(
sql
).
ToList
();
}
...
...
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