Commit 5dcaa356 authored by 吴春's avatar 吴春

Merge branch 'master' of http://gitlab.oytour.com/Kui2/education

parents defd6cee fdec787f
...@@ -21,6 +21,11 @@ namespace Edu.Model.ViewModel.EduTask ...@@ -21,6 +21,11 @@ namespace Edu.Model.ViewModel.EduTask
/// </summary> /// </summary>
public string AuditNode { get; set; } public string AuditNode { get; set; }
/// <summary>
/// 审核人姓名
/// </summary>
public string AuditManName { get; set; }
/// <summary> /// <summary>
/// 新审核人员编号 /// 新审核人员编号
/// </summary> /// </summary>
......
...@@ -84,9 +84,10 @@ namespace Edu.Module.EduTask ...@@ -84,9 +84,10 @@ namespace Edu.Module.EduTask
List<RB_Class_Room_ViewModel> roomList = new List<RB_Class_Room_ViewModel>(); List<RB_Class_Room_ViewModel> roomList = new List<RB_Class_Room_ViewModel>();
var groupList = list.GroupBy(qitem => new { qitem.ReceiptType }).Select(qitem => new { qitem.Key.ReceiptType }); var groupList = list.GroupBy(qitem => new { qitem.ReceiptType }).Select(qitem => new { qitem.Key.ReceiptType });
string Ids = string.Join(",", list.Select(qitem => qitem.Id)); string Ids = string.Join(",", list.Select(qitem => qitem.Id));
var relevanceList = education_RelevanceRepository.GetEducationRelevanceListRepository(new RB_Education_Relevance_ViewModel() var recordList = education_RecordRepository.GetEducationRecordListRepository(new RB_Education_Record_ViewModel()
{ {
QConditionIds = Ids QConditionIds = Ids,
AuditStatus = WFRrocessStatus.NotAudit
}); });
foreach (var subItem in groupList) foreach (var subItem in groupList)
{ {
...@@ -181,6 +182,7 @@ namespace Edu.Module.EduTask ...@@ -181,6 +182,7 @@ namespace Edu.Module.EduTask
} }
} }
} }
foreach (var item in list) foreach (var item in list)
{ {
object DataObj = new object(); object DataObj = new object();
...@@ -216,6 +218,23 @@ namespace Edu.Module.EduTask ...@@ -216,6 +218,23 @@ namespace Edu.Module.EduTask
} }
DataObj = tempModel; DataObj = tempModel;
} }
object AuditObj =new object();
if (item.VerifyStatus == WFRrocessStatus.NotAudit)
{
var tempRecordList = recordList?.Where(qitem => qitem.ConditionId == item.Id)?.ToList();
if (tempRecordList != null && tempRecordList.Count > 0)
{
foreach (var rItem in tempRecordList)
{
rItem.AuditManName = UserReidsCache.GetUserLoginInfo(rItem.AuditEmId)?.AccountName ?? "";
}
AuditObj = new
{
tempRecordList[0].AuditNode,
AuditManList = tempRecordList.Select(qitem => new { qitem.AuditEmId, qitem.AuditManName })
};
}
}
var obj = new var obj = new
{ {
item.Id, item.Id,
...@@ -234,6 +253,7 @@ namespace Edu.Module.EduTask ...@@ -234,6 +253,7 @@ namespace Edu.Module.EduTask
item.TeacherName, item.TeacherName,
item.SchoolName, item.SchoolName,
item.CourseName, item.CourseName,
AuditObj,
AuditStatusName = item.VerifyStatus == Common.Enum.User.WFRrocessStatus.NotAudit ? "审核中" : item.VerifyStatus.ToName(), AuditStatusName = item.VerifyStatus == Common.Enum.User.WFRrocessStatus.NotAudit ? "审核中" : item.VerifyStatus.ToName(),
}; };
result.Add(obj); result.Add(obj);
......
...@@ -37,7 +37,7 @@ WHERE 1=1 ...@@ -37,7 +37,7 @@ WHERE 1=1
} }
if (query.AuditStatus > 0) if (query.AuditStatus > 0)
{ {
builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Education_Record_ViewModel.AuditStatus), query.AuditStatus); builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Education_Record_ViewModel.AuditStatus), (int)query.AuditStatus);
} }
} }
return Get<RB_Education_Record_ViewModel>(builder.ToString()).ToList(); return Get<RB_Education_Record_ViewModel>(builder.ToString()).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