Commit be1e9641 authored by 黄奎's avatar 黄奎

页面修改

parent 5b64baca
...@@ -25,7 +25,6 @@ namespace Edu.Repository.User ...@@ -25,7 +25,6 @@ namespace Edu.Repository.User
{ {
where += $@" and {nameof(RB_Notice_Read.AccountId)} ={demodel.AccountId}"; where += $@" and {nameof(RB_Notice_Read.AccountId)} ={demodel.AccountId}";
} }
string sql = $@" select * from RB_Notice_Read where {where}"; string sql = $@" select * from RB_Notice_Read where {where}";
return Get<RB_Notice_Read_ViewModel>(sql).ToList(); return Get<RB_Notice_Read_ViewModel>(sql).ToList();
} }
...@@ -37,7 +36,7 @@ namespace Edu.Repository.User ...@@ -37,7 +36,7 @@ namespace Edu.Repository.User
/// <returns></returns> /// <returns></returns>
public List<RB_Notice_Read_ViewModel> GetNoticeReadNumList(string noticeIds) public List<RB_Notice_Read_ViewModel> GetNoticeReadNumList(string noticeIds)
{ {
string sql = $@" select NoticeId,count(0) as ReadNum from RB_Notice_Read where NoticeId in ({noticeIds}) group by NoticeId"; string sql = $@" select NoticeId,count(0) as ReadNum from RB_Notice_Read where NoticeId in ({noticeIds}) group by NoticeId ";
return Get<RB_Notice_Read_ViewModel>(sql).ToList(); return Get<RB_Notice_Read_ViewModel>(sql).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