Commit e7f4b00f authored by 黄奎's avatar 黄奎

接口修改

parent 928b606b
...@@ -4932,6 +4932,7 @@ and {ruleModel.Time} >='{dmodel.RuleSTime.Value.ToString("yyyy-MM-dd")}' and {ru ...@@ -4932,6 +4932,7 @@ and {ruleModel.Time} >='{dmodel.RuleSTime.Value.ToString("yyyy-MM-dd")}' and {ru
} }
} }
#endregion #endregion
return AuditList; return AuditList;
} }
...@@ -5130,15 +5131,20 @@ and {ruleModel.Time} >='{dmodel.RuleSTime.Value.ToString("yyyy-MM-dd")}' and {ru ...@@ -5130,15 +5131,20 @@ and {ruleModel.Time} >='{dmodel.RuleSTime.Value.ToString("yyyy-MM-dd")}' and {ru
{ {
var model = oKR_ObjectiveRepository.GetEntity(objectiveId); var model = oKR_ObjectiveRepository.GetEntity(objectiveId);
if (model == null) { return "目标不存在"; } if (model == null) { return "目标不存在"; }
if (model.Status != 3 && model.Status != 4) { return "非暂存/审核驳回状态,无法发起审核"; } // HK 03-01注释
//if (model.Status != 3 && model.Status != 4) {
// return "非暂存/审核驳回状态,无法发起审核";
//}
Dictionary<string, object> keyValues = new Dictionary<string, object>() { Dictionary<string, object> keyValues = new Dictionary<string, object>() {
{ nameof(RB_OKR_Objective_ViewModel.Status), 1} { nameof(RB_OKR_Objective_ViewModel.Status), 1}
}; };
List<WhereHelper> wheres = new List<WhereHelper>() { List<WhereHelper> wheres = new List<WhereHelper>()
new WhereHelper(){ {
new WhereHelper()
{
FiledName=nameof(RB_OKR_Objective_ViewModel.Id), FiledName=nameof(RB_OKR_Objective_ViewModel.Id),
FiledValue=objectiveId, FiledValue=objectiveId,
OperatorEnum=OperatorEnum.Equal OperatorEnum=OperatorEnum.Equal
} }
}; };
bool flag = oKR_ObjectiveRepository.Update(keyValues, wheres); bool flag = oKR_ObjectiveRepository.Update(keyValues, wheres);
......
...@@ -316,7 +316,13 @@ where {where} order by o.Sort asc"; ...@@ -316,7 +316,13 @@ 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 PeriodId ={periodId} and CreateBy in ({v}) GROUP BY CreateBy"; string sql = $@" select CreateBy from RB_OKR_Objective WHERE Group_Id={group_Id} and `Status` =1 and CreateBy in ({v})";
//HK 03-01修改
if (periodId > 0)
{
sql += $" and PeriodId ={periodId}";
}
sql += " GROUP BY CreateBy ";
return Get<RB_OKR_Objective_ViewModel>(sql).ToList(); return Get<RB_OKR_Objective_ViewModel>(sql).ToList();
} }
......
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