Beispiel #1
0
        /// <summary>
        /// 获取最新消息
        /// </summary>
        /// <returns></returns>
        protected List <FishEntity.ReviewEntity> getModelList( )
        {
            try
            {
                FishBll.Bll.SetReviewBll _bll = new FishBll.Bll.SetReviewBll( );
                string strWhere = " where TO_DAYS(a.date)=TO_DAYS(NOW()) ";
                List <FishEntity.ReviewEntity> modelList = _bll.modelList(FishEntity.Variable.User.username, strWhere);

                if (modelList != null && modelList.Count > 0)
                {
                    return(modelList);
                }
                else
                {
                    return(null);
                }
            }
            catch (Exception ex)
            {
                Utility.LogHelper.WriteException(ex);
                return(null);
            }
        }