Commit 97e2c31d authored by 黄奎's avatar 黄奎

接口修改

parent e7f4b00f
...@@ -39,6 +39,11 @@ namespace Edu.Model.ViewModel.OKR ...@@ -39,6 +39,11 @@ namespace Edu.Model.ViewModel.OKR
/// </summary> /// </summary>
public int ParentId { get; set; } public int ParentId { get; set; }
/// <summary>
/// 期数s
/// </summary>
public string PeriodIds { get; set; }
/// <summary> /// <summary>
/// 对齐列表 /// 对齐列表
/// </summary> /// </summary>
......
...@@ -4926,7 +4926,8 @@ and {ruleModel.Time} >='{dmodel.RuleSTime.Value.ToString("yyyy-MM-dd")}' and {ru ...@@ -4926,7 +4926,8 @@ and {ruleModel.Time} >='{dmodel.RuleSTime.Value.ToString("yyyy-MM-dd")}' and {ru
{ {
item.Id, item.Id,
item.EmployeeName, item.EmployeeName,
item.UserIcon item.UserIcon,
PeriodIds = list?.Where(qitem=>qitem.CreateBy==item.Id)?.FirstOrDefault()?.PeriodIds??""
}); });
} }
} }
......
...@@ -316,7 +316,7 @@ where {where} order by o.Sort asc"; ...@@ -316,7 +316,7 @@ where {where} order by o.Sort asc";
/// <returns></returns> /// <returns></returns>
public List<RB_OKR_Objective_ViewModel> GetOKRMyEmployeeAuditList(int group_Id, int periodId, string v) public List<RB_OKR_Objective_ViewModel> GetOKRMyEmployeeAuditList(int group_Id, int periodId, string v)
{ {
string sql = $@" select CreateBy from RB_OKR_Objective WHERE Group_Id={group_Id} and `Status` =1 and CreateBy in ({v})"; string sql = $@" select CreateBy,GROUP_CONCAT( DISTINCT PeriodId) AS PeriodIds from RB_OKR_Objective WHERE Group_Id={group_Id} and `Status` =1 and CreateBy in ({v})";
//HK 03-01修改 //HK 03-01修改
if (periodId > 0) if (periodId > 0)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment