/// <summary>
        /// 更改资讯状态/轮播
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public ReturnMsg UpdateMaterialInfoStatus(CmsMaterialMstrQuery query)
        {
            var rm = new ReturnMsg();

            if (string.IsNullOrEmpty(query.MATERIAL_ID))
            {
                rm.IsSuccess = false;
                rm.msg       = "请选择要操作的资讯";
                return(rm);
            }
            var materialInfo = _cmsMaterialMstrRepository.FirstOrDefault(c => c.Id == query.MATERIAL_ID && c.DEL_FLAG == 1);

            if (materialInfo == null)
            {
                rm.IsSuccess = false;
                rm.msg       = "该资讯不存在";
                return(rm);
            }
            if (query.ExcuteType == 1)
            {
                if (query.IS_ROUND == 1)
                {
                    var materialList = _cmsMaterialMstrRepository.GetAllList(c => c.IS_ROUND == 1 && c.MATERIAL_STATUS == "在线" && c.MATERIAL_TYPE_ID == materialInfo.MATERIAL_TYPE_ID && c.CREATE_ORG_NO == AbpSession.ORG_NO);
                    if (materialList.Count >= 5)
                    {
                        rm.IsSuccess = false;
                        rm.msg       = "同类型资讯已达最大轮播数,请取消后再试";
                        return(rm);
                    }
                }
                materialInfo.IS_ROUND = query.IS_ROUND;
                _initHelper.InitUpdate(materialInfo, AbpSession.USR_ID);
                _cmsMaterialMstrRepository.Update(materialInfo);
            }
            else if (query.ExcuteType == 2)
            {
                materialInfo.MATERIAL_STATUS = query.MATERIAL_STATUS;
                _initHelper.InitUpdate(materialInfo, AbpSession.USR_ID);
                _cmsMaterialMstrRepository.Update(materialInfo);
            }
            else
            {
                rm.IsSuccess = false;
                rm.msg       = "请选择操作类型";
                return(rm);
            }
            rm.IsSuccess = true;

            return(rm);
        }
 public ActionResult GetMaterialMstrInfo(string materialId)
 {
     try
     {
         if (string.IsNullOrEmpty(materialId))
         {
             return(Fail("数据传输异常"));
         }
         var result = _cmsMaterialMstrRepository.FirstOrDefault(c => c.Id == materialId && c.DEL_FLAG == 1).ToDto();
         return(Success("获取成功", result));
     }
     catch (Exception ex)
     {
         return(Fail(ex.Message));
     }
 }