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
634e13c9
Commit
634e13c9
authored
Jan 04, 2021
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
b3d0d70a
12f112d2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
459 additions
and
2 deletions
+459
-2
OKRPeriodModule.cs
Edu.Module.OKR/OKRPeriodModule.cs
+406
-0
RB_OKR_ObjectiveRepository.cs
Edu.Repository/OKR/RB_OKR_ObjectiveRepository.cs
+4
-0
RB_OKR_PermissionRepository.cs
Edu.Repository/OKR/RB_OKR_PermissionRepository.cs
+4
-0
OKRPeriodController.cs
Edu.WebApi/Controllers/OKR/OKRPeriodController.cs
+45
-2
No files found.
Edu.Module.OKR/OKRPeriodModule.cs
View file @
634e13c9
This diff is collapsed.
Click to expand it.
Edu.Repository/OKR/RB_OKR_ObjectiveRepository.cs
View file @
634e13c9
...
...
@@ -59,6 +59,10 @@ namespace Edu.Repository.OKR
{
where
+=
$@" and
{
nameof
(
RB_OKR_Objective_ViewModel
.
Group_Id
)}
=
{
demodel
.
Group_Id
}
"
;
}
if
(
demodel
.
Id
>
0
)
{
where
+=
$@" and
{
nameof
(
RB_OKR_Objective_ViewModel
.
Id
)}
=
{
demodel
.
Id
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
demodel
.
ObjectiveIds
))
{
where
+=
$@" and
{
nameof
(
RB_OKR_Objective_ViewModel
.
Id
)}
in(
{
demodel
.
ObjectiveIds
}
)"
;
...
...
Edu.Repository/OKR/RB_OKR_PermissionRepository.cs
View file @
634e13c9
...
...
@@ -90,6 +90,10 @@ namespace Edu.Repository.OKR
{
where
+=
$@" and
{
nameof
(
RB_OKR_Permission_ViewModel
.
State
)}
=
{
demodel
.
State
}
"
;
}
if
(
demodel
.
CreateBy
>
0
)
{
where
+=
$@" and
{
nameof
(
RB_OKR_Permission_ViewModel
.
CreateBy
)}
=
{
demodel
.
CreateBy
}
"
;
}
string
sql
=
$@" select * from RB_OKR_Permission where
{
where
}
order by Id desc"
;
return
Get
<
RB_OKR_Permission_ViewModel
>(
sql
).
ToList
();
...
...
Edu.WebApi/Controllers/OKR/OKRPeriodController.cs
View file @
634e13c9
...
...
@@ -413,8 +413,16 @@ namespace Edu.WebApi.Controllers.OKR
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetOKRMyObjectiveInfo
()
{
public
ApiResult
GetOKRMyObjectiveInfo
()
{
var
userInfo
=
base
.
UserInfo
;
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
Msg
.
ToString
());
int
ObjectiveId
=
parms
.
GetInt
(
"ObjectiveId"
,
0
);
if
(
ObjectiveId
<=
0
)
{
return
ApiResult
.
ParamIsNull
(
"请传递目标id"
);
}
var
obj
=
okrPeriodModule
.
GetOKRMyObjectiveInfo
(
ObjectiveId
,
userInfo
);
return
ApiResult
.
Success
(
""
,
obj
);
}
/// <summary>
...
...
@@ -696,6 +704,41 @@ namespace Edu.WebApi.Controllers.OKR
}
//权限 添加对齐 审核 评论 左边人员列表 对齐视图 数据看板 (管理员版 对齐视图 数据看板)
#
region
添加对齐
/// <summary>
/// 添加对齐
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
SgetOKRMyObjectiveParent
()
{
return
ApiResult
.
Success
();
}
/// <summary>
/// 获取他人的目标列表
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetOKROthersObjectiveList
()
{
var
userInfo
=
base
.
UserInfo
;
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
Msg
.
ToString
());
int
PeriodId
=
parms
.
GetInt
(
"PeriodId"
,
0
);
int
UserId
=
parms
.
GetInt
(
"UserId"
,
0
);
if
(
PeriodId
<=
0
)
{
return
ApiResult
.
ParamIsNull
(
"请传递周期id"
);
}
if
(
UserId
<=
0
)
{
return
ApiResult
.
ParamIsNull
(
"请传递用户id"
);
}
var
list
=
okrPeriodModule
.
GetOKROthersObjectiveList
(
PeriodId
,
UserId
,
userInfo
);
return
ApiResult
.
Success
(
""
,
list
);
}
#
endregion
#
endregion
...
...
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