zhengcaioa/Services/CooperatecustomCustomerService.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
zhengcaioa/Services/IntentionCustomerService.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
zhengcaioa/zhengcaioa/Startup.cs | ●●●●● 补丁 | 查看 | 原始文档 | 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,21 +510,32 @@ /// <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; 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; } @@ -529,17 +529,27 @@ { 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();