protected override GetModuleListRD ProcessRequest(DTO.Base.APIRequest <EmptyRequestParameter> pRequest)
        {
            var rd = new GetModuleListRD();
            var loggingSessionInfo              = new SessionManager().CurrentUserLoginInfo;
            WApplicationInterfaceBLL bllApp     = new WApplicationInterfaceBLL(loggingSessionInfo);
            T_UserGuideModulesBLL    bll        = new T_UserGuideModulesBLL(loggingSessionInfo);
            List <ModuleInfo>        moduleList = new List <ModuleInfo>();
            //是否绑定微信公众号
            var entityApp = bllApp.QueryByEntity(new WApplicationInterfaceEntity()
            {
                CustomerId = loggingSessionInfo.ClientID, IsDelete = 0
            }, null);

            if (entityApp.Count() > 0)
            {
                rd.IsBindWeChat = 1;
            }
            ///新手引导大模块
            var entity = bll.QueryByEntity(new T_UserGuideModulesEntity()
            {
                ModuleStep = 0, IsDelete = 0
            }, null);
            IEnumerable <ModuleInfo> ModuleList = from e in entity
                                                  select new ModuleInfo()
            {
                ModuleName         = e.ModuleName,
                ModuleCode         = e.ModuleCode,
                UserGuideModulesId = e.UserGuideModulesId.ToString(),
                ParentModule       = e.ParentModule.ToString(),
                Url      = e.Url,
                VideoUrl = e.VideoUrl,
                //ImageUrl1=e.ImageUrl1,
                //ImageUrl2=e.ImageUrl2,
                //ImageUrl3=e.ImageUrl3
            };
            ///每个用户最后一次的记录,已经模块是否完成
            T_UserGuideAccessLogBLL bllUserGuideLog = new T_UserGuideAccessLogBLL(loggingSessionInfo);
            var LogList = bllUserGuideLog.QueryByEntity(new Entity.T_UserGuideAccessLogEntity()
            {
                CustomerId = loggingSessionInfo.ClientID, UserId = loggingSessionInfo.CurrentLoggingManager.User_Id, IsDelete = 0
            }, null);

            foreach (var m in ModuleList)
            {
                foreach (var log in LogList)
                {
                    if (m.UserGuideModulesId == log.UserGuideModulesId.ToString())
                    {
                        m.LastStep       = (int)log.LastAccessStep;
                        m.LastUrl        = log.Url;
                        m.FinishedStatus = (int)log.FinishedStatus;
                    }
                }
                moduleList.Add(m);
            }
            rd.ModuleInfoList = moduleList;

            return(rd);
        }
        protected override GetModuleNextStepRD ProcessRequest(DTO.Base.APIRequest <GetModuleNextStepRP> pRequest)
        {
            var rd         = new GetModuleNextStepRD();
            var preModule  = new NextModule();
            var nextModule = new NextModule();
            var nowModule  = new NextModule();
            var para       = pRequest.Parameters;

            var loggingSessionInfo = new SessionManager().CurrentUserLoginInfo;

            T_UserGuideModulesBLL    bll    = new T_UserGuideModulesBLL(loggingSessionInfo);
            T_UserGuideModulesEntity entity = new T_UserGuideModulesEntity();

            ///上一步
            entity = bll.QueryByEntity(new T_UserGuideModulesEntity()
            {
                ParentModule = new Guid(para.ParentModule), ModuleStep = para.Step - 1, IsDelete = 0
            }, null).SingleOrDefault();
            if (entity != null)
            {
                preModule.ModuleCode   = entity.ModuleCode;
                preModule.ParentModule = entity.ParentModule.ToString();
                preModule.Url          = entity.Url;
                preModule.VideoUrl     = entity.VideoUrl;
                preModule.ModuleStep   = (int)entity.ModuleStep;
                //preModule.UserGuideModulesId = entity.UserGuideModulesId.ToString();
                //preModule.ImageUrl1 = entity.ImageUrl1;
                //preModule.ImageUrl2 = entity.ImageUrl2;
                //preModule.ImageUrl3 = entity.ImageUrl3;
            }
            ///当前步
            entity = bll.QueryByEntity(new T_UserGuideModulesEntity()
            {
                ParentModule = new Guid(para.ParentModule), ModuleStep = para.Step, IsDelete = 0
            }, null).SingleOrDefault();
            if (entity != null)
            {
                nowModule.ModuleCode   = entity.ModuleCode;
                nowModule.ParentModule = entity.ParentModule.ToString();
                nowModule.Url          = entity.Url;
                nowModule.VideoUrl     = entity.VideoUrl;
                nowModule.ModuleStep   = (int)entity.ModuleStep;
                //nowModule.UserGuideModulesId = entity.UserGuideModulesId.ToString();
                //nowModule.ImageUrl1 = entity.ImageUrl1;
                //nowModule.ImageUrl2 = entity.ImageUrl2;
                //nowModule.ImageUrl3 = entity.ImageUrl3;
            }
            ///下一步
            entity = bll.QueryByEntity(new T_UserGuideModulesEntity()
            {
                ParentModule = new Guid(para.ParentModule), ModuleStep = para.Step + 1, IsDelete = 0
            }, null).SingleOrDefault();

            if (entity != null)
            {
                nextModule.ModuleCode   = entity.ModuleCode;
                nextModule.ParentModule = entity.ParentModule.ToString();
                nextModule.Url          = entity.Url;
                nextModule.VideoUrl     = entity.VideoUrl;
                nextModule.ModuleStep   = (int)entity.ModuleStep;
                //nextModule.UserGuideModulesId = entity.UserGuideModulesId.ToString();
                //nextModule.ImageUrl1 = entity.ImageUrl1;
                //nextModule.ImageUrl2 = entity.ImageUrl2;
                //nextModule.ImageUrl3 = entity.ImageUrl3;
            }

            rd.PreModule  = preModule;
            rd.NextModule = nextModule;
            rd.NowModule  = nowModule;
            return(rd);
        }