Commit 29dba483 authored by 黄奎's avatar 黄奎

新增处理类

parent d2fa0358
...@@ -9,6 +9,24 @@ namespace Edu.Model.ViewModel.Course ...@@ -9,6 +9,24 @@ namespace Edu.Model.ViewModel.Course
/// </summary> /// </summary>
public class RB_Course_Discuss_ViewModel:Model.Entity.Course.RB_Course_Discuss public class RB_Course_Discuss_ViewModel:Model.Entity.Course.RB_Course_Discuss
{ {
/// <summary>
/// 创建人
/// </summary>
public string CreateByName { get; set; }
/// <summary>
/// 修改人
/// </summary>
public string UpdateByName { get; set; }
/// <summary>
/// 创建时间字符串
/// </summary>
public string CreateTimeStr { get { return Common.ConvertHelper.FormatTime(this.CreateTime); } }
/// <summary>
/// 修改时间字符串
/// </summary>
public string UpdateTimeStr { get { return Common.ConvertHelper.FormatTime(this.UpdateTime); } }
} }
} }
\ No newline at end of file
...@@ -9,5 +9,24 @@ namespace Edu.Model.ViewModel.Course ...@@ -9,5 +9,24 @@ namespace Edu.Model.ViewModel.Course
/// </summary> /// </summary>
public class RB_Course_Source_ViewModel : Model.Entity.Course.RB_Course_Source public class RB_Course_Source_ViewModel : Model.Entity.Course.RB_Course_Source
{ {
/// <summary>
/// 创建人
/// </summary>
public string CreateByName { get; set; }
/// <summary>
/// 更新人
/// </summary>
public string UpdateByName { get; set; }
/// <summary>
/// 创建时间字符串
/// </summary>
public string CreateTimeStr { get { return Common.ConvertHelper.FormatTime(this.CreateTime); } }
/// <summary>
/// 修改时间字符串
/// </summary>
public string UpdateTimeStr { get { return Common.ConvertHelper.FormatTime(this.UpdateTime); } }
} }
} }
\ No newline at end of file
...@@ -237,7 +237,7 @@ namespace Edu.Module.Course ...@@ -237,7 +237,7 @@ namespace Edu.Module.Course
/// </summary> /// </summary>
/// <param name="model"></param> /// <param name="model"></param>
/// <returns></returns> /// <returns></returns>
public bool AddNoticeRevice(RB_Course_NoticeRevice_ViewModel model) public bool AddNoticeReviceModule(RB_Course_NoticeRevice_ViewModel model)
{ {
var newId = noticeReviceRepository.Insert(model); var newId = noticeReviceRepository.Insert(model);
model.ReviceId = newId; model.ReviceId = newId;
...@@ -348,7 +348,6 @@ namespace Edu.Module.Course ...@@ -348,7 +348,6 @@ namespace Edu.Module.Course
/// <returns></returns> /// <returns></returns>
public bool RemoveChapterModule(object ChapterId) public bool RemoveChapterModule(object ChapterId)
{ {
Dictionary<string, object> fileds = new Dictionary<string, object>() Dictionary<string, object> fileds = new Dictionary<string, object>()
{ {
{nameof(RB_Course_Chapter_ViewModel.Status) ,(int)DateStateEnum.Delete}, {nameof(RB_Course_Chapter_ViewModel.Status) ,(int)DateStateEnum.Delete},
......
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