Commit b5aceb86 authored by 黄奎's avatar 黄奎

页面修改

parent 23849647
......@@ -83,7 +83,11 @@ namespace Edu.Module.User
{ nameof(RB_Notice_Base.UpdateBy),dmodel.UpdateBy},
{ nameof(RB_Notice_Base.UpdateTime),DateTime.Now},
};
flag = notice_BaseRepository.Update(keyValues, new WhereHelper(nameof(RB_Notice_Base.Id), dmodel.Id));
List<WhereHelper> wheres = new List<WhereHelper>()
{
new WhereHelper(nameof(RB_Notice_Base.Id), dmodel.Id)
};
flag = notice_BaseRepository.Update(keyValues, wheres);
}
else
{
......@@ -165,6 +169,7 @@ namespace Edu.Module.User
{
var model = noticeRepository.GetEntity<RB_Notice_ViewModel>(noticeId);
if (model == null) { return ApiResult.ParamIsNull(); }
var noticeBaseModel = notice_BaseRepository.GetList(new RB_Notice_Base_ViewModel() { Group_Id = model.Group_Id }).FirstOrDefault();
var dList = notice_DeptRepository.GetList(new RB_Notice_Dept() { NoticeId = noticeId }, "");
model.To = "-1";
if (dList.Any())
......@@ -233,7 +238,7 @@ namespace Edu.Module.User
model.CopyPeople,
ccList=CopyPeopleList,
model.Content,
fileList= model.FileList.Select(x => new
fileList = model.FileList.Select(x => new
{
x.FileName,
x.FileUrl
......@@ -242,8 +247,9 @@ namespace Edu.Module.User
UpdateByName = empModel?.AccountName ?? "",
UpdateByIcon = empModel?.UserIcon ?? "",
UpdateTime = model.UpdateTime.HasValue ? model.UpdateTime.Value.ToString("yyyy年MM月dd日") : "",
DayStr
});
DayStr,
BgImage = noticeBaseModel?.Image ?? ""
});
}
/// <summary>
......
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