From ea037964dba48654bdaf7169517c64508984841e Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 19 七月 2021 14:53:45 +0800
Subject: [PATCH] 今日开发: 工作考评 按部门排序。不显示离职员工                  工作统计,去掉标题                  所有查询,只选择开始或者结束日期,自动补充另外一个日期                  工作统计增加根据日期查询,只显示有数据的项                  增加全员工作统计菜单,可以查询每个每个在职员工的工作统计

---
 zhengcaioa/zhengcaioa/Startup.cs |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Startup.cs b/zhengcaioa/zhengcaioa/Startup.cs
index 58f88ba..b14aef3 100644
--- a/zhengcaioa/zhengcaioa/Startup.cs
+++ b/zhengcaioa/zhengcaioa/Startup.cs
@@ -68,7 +68,12 @@
 
             var connectionString = Configuration.GetConnectionString("DefaultConnection");
             services.AddDbContext<zhengcaioaContext>(options =>
-            options.UseSqlServer(connectionString));            
+            options.UseSqlServer(connectionString));
+
+            var connectionString1 = Configuration.GetConnectionString("zcwebConnection");
+            services.AddDbContext<zcwebContext>(options =>
+            options.UseSqlServer(connectionString1));
+
             services.AddControllersWithViews();
 
             services.AddScoped(typeof(ISimService), typeof(SimService));
@@ -139,12 +144,18 @@
             services.AddScoped(typeof(IOrderBanciDtlService), typeof(OrderBanciDtlService));
             services.AddScoped(typeof(IOrderBanciService), typeof(OrderBanciService));
             services.AddScoped(typeof(IOrderBanciOrderService), typeof(OrderBanciOrderService));
-            
+
+            //zcweb
+            services.AddScoped(typeof(IDtChannelArticleNewsService), typeof(DtChannelArticleNewsService)); 
 
             //定时执行
             services.AddHostedService<TimedBackgroundService>();
 
 
+            //定时执行
+            services.AddHostedService<TimerGetShopUsersService>();
+
+
             services.AddAutoMapper(typeof(AutoMapperConfigs));
             services.AddUEditorService("ueditor.json", true, "wwwroot");
             services.AddMvc(options =>{

--
Gitblit v1.9.1