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
20513e0c
Commit
20513e0c
authored
Mar 01, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
6dc2248d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
+15
-2
RB_OKR_Objective_ViewModel.cs
Edu.Model/ViewModel/OKR/RB_OKR_Objective_ViewModel.cs
+6
-0
OKRPeriodModule.cs
Edu.Module.OKR/OKRPeriodModule.cs
+2
-1
RB_OKR_ObjectiveRepository.cs
Edu.Repository/OKR/RB_OKR_ObjectiveRepository.cs
+7
-1
No files found.
Edu.Model/ViewModel/OKR/RB_OKR_Objective_ViewModel.cs
View file @
20513e0c
...
...
@@ -120,6 +120,12 @@ namespace Edu.Model.ViewModel.OKR
/// 分数颜色
/// </summary>
public
string
ScoreColor
{
get
;
set
;
}
/// <summary>
/// 查询状态 1-查询状态本身等于2和3的 add by:W 2021-03-01
/// </summary>
public
int
selectStatus
{
get
;
set
;}
}
/// <summary>
...
...
Edu.Module.OKR/OKRPeriodModule.cs
View file @
20513e0c
...
...
@@ -1681,7 +1681,8 @@ and {ruleModel.Time} >='{dmodel.RuleSTime.Value.ToString("yyyy-MM-dd")}' and {ru
}
}
}
var
list
=
oKR_ObjectiveRepository
.
GetList
(
new
RB_OKR_Objective_ViewModel
()
{
Group_Id
=
userInfo
.
Group_Id
,
PeriodId
=
PeriodId
,
CreateBy
=
userId
,
Status
=
2
});
// var list = oKR_ObjectiveRepository.GetList(new RB_OKR_Objective_ViewModel() { Group_Id = userInfo.Group_Id, PeriodId = PeriodId, CreateBy = userId, Status = 2 });
var
list
=
oKR_ObjectiveRepository
.
GetList
(
new
RB_OKR_Objective_ViewModel
()
{
Group_Id
=
userInfo
.
Group_Id
,
PeriodId
=
PeriodId
,
CreateBy
=
userId
,
selectStatus
=
1
});
if
(
list
.
Any
())
{
string
objectiveIds
=
string
.
Join
(
","
,
list
.
Select
(
x
=>
x
.
Id
));
...
...
Edu.Repository/OKR/RB_OKR_ObjectiveRepository.cs
View file @
20513e0c
...
...
@@ -91,7 +91,13 @@ namespace Edu.Repository.OKR
{
where
+=
$@" and
{
nameof
(
RB_OKR_Objective_ViewModel
.
Status
)}
=
{
demodel
.
Status
}
"
;
}
if
(
demodel
.
selectStatus
>
0
)
{
if
(
demodel
.
selectStatus
==
1
)
{
where
+=
$@" and
{
nameof
(
RB_OKR_Objective_ViewModel
.
Status
)}
in (2,3)"
;
}
}
string
sql
=
$@" select * from RB_OKR_Objective where
{
where
}
order by Sort asc"
;
return
Get
<
RB_OKR_Objective_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