username@email.com
2023-07-12 69e9ce6ae24fce670fb8d7af0e1f132e2e009dbc
提交
3个文件已修改
59 ■■■■■ 已修改文件
zhengcaioa/Services/CooperatecustomCustomerService.cs 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/Services/IntentionCustomerService.cs 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Startup.cs 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/Services/CooperatecustomCustomerService.cs
@@ -145,7 +145,7 @@
                var listPosition = _context.CooperatecustomCustomers.Where(r => r.RecStatus == "A").ToList();
                CacheHelperNetCore.CacheNull("CooperatecustomCustomerDTOs");
                resultEntity.ReturnID = cooperatecustomCustomer.Id;
                resultEntity.Result = true;
            }
@@ -510,27 +510,38 @@
        /// <returns></returns>
        public List<CooperatecustomCustomerDTO> GetList(string HuiyuanId = "", string Name = "")
        {
            List<CooperatecustomCustomerDTO> CooperatecustomCustomerDTOs = (List<CooperatecustomCustomerDTO>)CacheHelperNetCore.CacheValue("CooperatecustomCustomerDTOs");
            if (CooperatecustomCustomerDTOs != null && CooperatecustomCustomerDTOs.Count > 0)
            {
                if (!string.IsNullOrEmpty(HuiyuanId))
                {
                    CooperatecustomCustomerDTOs = CooperatecustomCustomerDTOs.Where(x => x.HuiyuanId == HuiyuanId).ToList();
                }
                if (!string.IsNullOrEmpty(Name))
                {
                    CooperatecustomCustomerDTOs = CooperatecustomCustomerDTOs.Where(x => x.Name == Name).ToList();
                }
                return CooperatecustomCustomerDTOs;
            }
            var listPosition = _context.CooperatecustomCustomers.Where(r => r.RecStatus == "A").ToList();
            CooperatecustomCustomerDTOs = _mapper.Map<List<CooperatecustomCustomerDTO>>(listPosition);
            CacheHelperNetCore.CacheInsert("CooperatecustomCustomerDTOs", CooperatecustomCustomerDTOs);
            if (!string.IsNullOrEmpty(HuiyuanId))
            {
                listPosition = listPosition.Where(x => x.HuiyuanId == HuiyuanId).ToList();
            }
            if (!string.IsNullOrEmpty(Name))
            {
                listPosition = listPosition.Where(x => x.Name == Name).ToList();
            }
            var CooperatecustomCustomerDTOs = _mapper.Map<List<CooperatecustomCustomerDTO>>(listPosition);
            CooperatecustomCustomerDTOs = _mapper.Map<List<CooperatecustomCustomerDTO>>(listPosition);
            return CooperatecustomCustomerDTOs;
        }
        public List<CooperatecustomCustomerDTO> GetListsalary(string userid, DateTime datemin, DateTime datemax)
zhengcaioa/Services/IntentionCustomerService.cs
@@ -144,7 +144,7 @@
                // var  intentionCustomerDTOs = _mapper.Map<List<IntentionCustomerDTO>>(listPosition);
                //CacheHelperNetCore.CacheInsert("intentionCustomerDTOs", intentionCustomerDTOs);
                CacheHelperNetCore.CacheNull("intentionCustomerDTOs");
                resultEntity.ReturnID = intentionCustomer.Id;
            resultEntity.Result = true;
        }
@@ -527,19 +527,29 @@
        /// <returns></returns>
        public List<IntentionCustomerDTO> GetList(string huiyuanId = null)
        {
            List<IntentionCustomerDTO> intentionCustomerDTOs = (List<IntentionCustomerDTO>)CacheHelperNetCore.CacheValue("intentionCustomerDTOs");
            if (intentionCustomerDTOs != null && intentionCustomerDTOs.Count > 0)
            {
                if (!string.IsNullOrEmpty(huiyuanId))
                {
                    intentionCustomerDTOs = intentionCustomerDTOs.Where(x => x.HuiyuanId == huiyuanId).ToList();
                }
                return intentionCustomerDTOs;
            }
            var listPosition = _context.IntentionCustomers.Where(r => r.RecStatus == "A").ToList();
            intentionCustomerDTOs = _mapper.Map<List<IntentionCustomerDTO>>(listPosition);
            CacheHelperNetCore.CacheInsert("intentionCustomerDTOs", intentionCustomerDTOs);
            if (!string.IsNullOrEmpty(huiyuanId))
            {
                listPosition = listPosition.Where(x => x.HuiyuanId == huiyuanId).ToList();
            }
            var intentionCustomerDTOs = _mapper.Map<List<IntentionCustomerDTO>>(listPosition);
            intentionCustomerDTOs = _mapper.Map<List<IntentionCustomerDTO>>(listPosition);
            return intentionCustomerDTOs;
        }
zhengcaioa/zhengcaioa/Startup.cs
@@ -68,23 +68,23 @@
            var connectionString = Configuration.GetConnectionString("DefaultConnection");
            services.AddDbContext<zhengcaioaContext>(options =>
            options.UseSqlServer(connectionString));
            options.UseSqlServer(connectionString, option => option.CommandTimeout(60)));
            var connectionString1 = Configuration.GetConnectionString("zcwebConnection");
            services.AddDbContext<zcwebContext>(options =>
            options.UseSqlServer(connectionString1));
            options.UseSqlServer(connectionString1, option => option.CommandTimeout(60)));
            var connectionString2 = Configuration.GetConnectionString("zcUserInfoNConnection");
            services.AddDbContext<zcUserInfoN_dbContext>(options =>
            options.UseSqlServer(connectionString2));
            options.UseSqlServer(connectionString2, option => option.CommandTimeout(60)));
            var connectionString3 = Configuration.GetConnectionString("WebCrawlerConnection");
            services.AddDbContext<WebCrawlerContext>(options =>
            options.UseSqlServer(connectionString3));
            options.UseSqlServer(connectionString3, option => option.CommandTimeout(60)));
            var connectionString4 = Configuration.GetConnectionString("IMdbtestConnection");
            services.AddDbContext<IMdbtestContext>(options =>
            options.UseSqlServer(connectionString4));
            options.UseSqlServer(connectionString4, option => option.CommandTimeout(60)));
            services.AddControllersWithViews();