Commit fdec787f authored by 黄奎's avatar 黄奎

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

parents 60956b45 e8f601ef
...@@ -6,7 +6,7 @@ using Edu.Model.Entity.Log; ...@@ -6,7 +6,7 @@ using Edu.Model.Entity.Log;
namespace Edu.Repository.Log namespace Edu.Repository.Log
{ {
public class RB_Notice_LogRepository:BaseRepository<RB_Notice_Log> public class RB_Notice_LogRepository : BaseRepository<RB_Notice_Log>
{ {
/// <summary> /// <summary>
/// 获取公告日志分页列表 /// 获取公告日志分页列表
...@@ -63,6 +63,7 @@ WHERE 1=1 ...@@ -63,6 +63,7 @@ WHERE 1=1
School_Id = model.School_Id, School_Id = model.School_Id,
CreateBy = model.CreateBy, CreateBy = model.CreateBy,
CreateTime = DateTime.Now, CreateTime = DateTime.Now,
ReviewStatus = model.ReviewStatus
}; };
return base.Insert(newmodel) > 0; return base.Insert(newmodel) > 0;
} }
......
...@@ -224,10 +224,10 @@ ORDER BY {OrderBy}"; ...@@ -224,10 +224,10 @@ ORDER BY {OrderBy}";
where += $@" and b.{nameof(RB_Notice.Number)} LIKE @Number "; where += $@" and b.{nameof(RB_Notice.Number)} LIKE @Number ";
parameters.Add("Number", "%" + demodel.Number.Trim() + "%"); parameters.Add("Number", "%" + demodel.Number.Trim() + "%");
} }
if (demodel.NoticeState > 0) //if (demodel.NoticeState > 0)
{ //{
where += $@" and b.{nameof(RB_Notice.NoticeState)} ={(int)demodel.NoticeState}"; // where += $@" and b.{nameof(RB_Notice.NoticeState)} ={(int)demodel.NoticeState}";
} //}
if (demodel.Is_Top > 0) if (demodel.Is_Top > 0)
{ {
where += $@" and b.{nameof(RB_Notice.Is_Top)} ={demodel.Is_Top}"; where += $@" and b.{nameof(RB_Notice.Is_Top)} ={demodel.Is_Top}";
......
...@@ -399,6 +399,7 @@ namespace Edu.WebApi.Controllers.User ...@@ -399,6 +399,7 @@ namespace Edu.WebApi.Controllers.User
{ {
LogContent = LogContent, LogContent = LogContent,
NoticeId = NoticeId, NoticeId = NoticeId,
ReviewStatus= ReviewStatus,
Group_Id = userInfo.Group_Id, Group_Id = userInfo.Group_Id,
School_Id = userInfo.School_Id, School_Id = userInfo.School_Id,
CreateBy = userInfo.Id, CreateBy = userInfo.Id,
......
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