From 82645238a5855f6f7b8c397d1f8fa8b4a3155b94 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 14 七月 2021 16:00:18 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/zhengcaioa/Startup.cs |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Startup.cs b/zhengcaioa/zhengcaioa/Startup.cs
index 182d1fc..53de1cf 100644
--- a/zhengcaioa/zhengcaioa/Startup.cs
+++ b/zhengcaioa/zhengcaioa/Startup.cs
@@ -68,8 +68,12 @@
 
             var connectionString = Configuration.GetConnectionString("DefaultConnection");
             services.AddDbContext<zhengcaioaContext>(options =>
-            options.UseSqlServer(connectionString));
+            options.UseSqlServer(connectionString));            
             services.AddControllersWithViews();
+
+            services.AddScoped(typeof(ISimService), typeof(SimService));
+            services.AddScoped(typeof(IHrSalaryService), typeof(HrSalaryService));
+
             services.AddScoped(typeof(IUserService), typeof(UserService));
             services.AddScoped(typeof(ILiaotianService), typeof(LiaotianService));
             services.AddScoped(typeof(IProjectService), typeof(ProjectService));
@@ -122,12 +126,29 @@
 
             services.AddScoped(typeof(IHrJixiaotichengService), typeof(HrJixiaotichengService));
 
+            services.AddScoped(typeof(IHrSalaryService), typeof(HrSalaryService));
 
+            services.AddScoped(typeof(ICusFangwenjiluService), typeof(CusFangwenjiluService));
+
+            services.AddScoped(typeof(ILZhuanjiahuidumService), typeof(LZhuanjiahuidumService));
+
+            services.AddScoped(typeof(IWfApplytypeService), typeof(WfApplytypeService));
+            services.AddScoped(typeof(IWfRunProcessService), typeof(WfRunProcessService));
+            services.AddScoped(typeof(IWfNeeddeelService), typeof(WfNeeddeelService));
+            services.AddScoped(typeof(IWfHistoryService), typeof(WfHistorieservice));
+            services.AddScoped(typeof(IOrderBanciDtlService), typeof(OrderBanciDtlService));
+            services.AddScoped(typeof(IOrderBanciService), typeof(OrderBanciService));
+            services.AddScoped(typeof(IOrderBanciOrderService), typeof(OrderBanciOrderService));
+            
 
             //定时执行
             services.AddHostedService<TimedBackgroundService>();
 
 
+            //定时执行
+            services.AddHostedService<TimerGetShopUsersService>();
+
+
             services.AddAutoMapper(typeof(AutoMapperConfigs));
             services.AddUEditorService("ueditor.json", true, "wwwroot");
             services.AddMvc(options =>{

--
Gitblit v1.9.1