Commit 15bb3c45 authored by 黄奎's avatar 黄奎

页面修改

parent be020b6e
...@@ -35,7 +35,7 @@ namespace Edu.Module.Log ...@@ -35,7 +35,7 @@ namespace Edu.Module.Log
/// <returns></returns> /// <returns></returns>
public virtual bool SetMsgReadModule(List<int> ids) public virtual bool SetMsgReadModule(List<int> ids)
{ {
bool flag = false; bool flag = true;
Dictionary<string, object> fileds = new Dictionary<string, object>() Dictionary<string, object> fileds = new Dictionary<string, object>()
{ {
{nameof(RB_MsgLog.IsRead),1 } {nameof(RB_MsgLog.IsRead),1 }
...@@ -44,7 +44,7 @@ namespace Edu.Module.Log ...@@ -44,7 +44,7 @@ namespace Edu.Module.Log
{ {
if (item > 0 && flag) if (item > 0 && flag)
{ {
flag= msgLogRepository.Update(fileds, new WhereHelper(nameof(RB_MsgLog.IsRead), item)); flag= msgLogRepository.Update(fileds, new WhereHelper(nameof(RB_MsgLog.Id), item));
} }
} }
return flag; return flag;
......
...@@ -42,10 +42,6 @@ WHERE 1=1 ...@@ -42,10 +42,6 @@ WHERE 1=1
{ {
builder.AppendFormat(" AND {0}={1} ", nameof(RB_MsgLog.Platform), query.Platform); builder.AppendFormat(" AND {0}={1} ", nameof(RB_MsgLog.Platform), query.Platform);
} }
if (query.Status > -1)
{
builder.AppendFormat(" AND {0}={1} ", nameof(RB_MsgLog.Status), query.Status);
}
if (!string.IsNullOrEmpty(query.ReceiveId)) if (!string.IsNullOrEmpty(query.ReceiveId))
{ {
builder.AppendFormat(" AND {0}='{1}' ", nameof(RB_MsgLog.ReceiveId), query.ReceiveId); builder.AppendFormat(" AND {0}='{1}' ", nameof(RB_MsgLog.ReceiveId), query.ReceiveId);
......
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