从品牌网站建设到网络营销策划,从策略到执行的一站式服务
public ListGetNoticeByToUserID(Search search) { //search.userId=3; string sql = "select * from Notices WHERE ID>0 "; var param = new DynamicParameters(); sql += " AND ToUserID LIKE @toUserID"; param.Add("toUserID", "%"+search.userId.ToString()+"%" ); if (search.ID > 0) { sql += " AND id = @id"; param.Add("id", search.ID); } var NoticeState = new List (); NoticeState.AddRange(_workingDB.Query (sql, param).ToList()); string sql2 = "select * from IsReadNotices where NoticeID=@noticeID AND UserID=@uid "; foreach (var n in NoticeState) { IsReadNotice isReadNotices = _workingDB.Query (sql2, new { noticeID = n.ID, uid = search.userId }).SingleOrDefault(); if (isReadNotices != null) { n.statusMsg = isReadNotices.statusMsg; n.Remarks = isReadNotices.Remarks; } } return NoticeState; }
成都网站建设公司地址:成都市青羊区太升南路288号锦天国际A座10层 建设咨询028-86922220
成都快上网科技有限公司-四川网站建设设计公司 | 蜀ICP备19037934号 Copyright 2020,ALL Rights Reserved cdkjz.cn | 成都网站建设 | © Copyright 2020版权所有.
专家团队为您提供成都网站建设,成都网站设计,成都品牌网站设计,成都营销型网站制作等服务,成都建网站就找快上网! | 成都网站建设哪家好? | 网站建设地图