/// <summary> /// 添加最新预报列表 /// </summary> /// <param name="NewArrivalNoticeDTO"></param> /// <returns></returns> public int AddNewArrivalNotice(SWfsNewArrivalNotice NewArrivalNoticeDTO) { int result = 0; result = DapperUtil.Insert <SWfsNewArrivalNotice>(NewArrivalNoticeDTO); return(result); }
/// <summary> /// 获取最新预告信息 /// </summary> /// <param name="pageno">频道编号</param> /// <returns></returns> public string GetNewNoticeNameByNowTime(string pageno) { string noticeTitle = ""; DynamicParameters dp = new DynamicParameters(); dp.Add("PageNo", pageno, System.Data.DbType.AnsiString, System.Data.ParameterDirection.Input); SWfsNewArrivalNotice model = DapperUtil.Query <SWfsNewArrivalNotice>("ComBeziWfs_SWfsNewArrivalNotice_SelectNewNoticeByPageNo", dp).FirstOrDefault(); if (model != null) { noticeTitle = model.NewArrivalNoticName + "_" + model.NewArrivalNoticDate; } return(noticeTitle); }