From 378725af30f2ccf5007f80c553865be2b39f727a Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 18 十月 2022 17:09:58 +0800
Subject: [PATCH] 修改数据库地址

---
 zhengcaioa/zhengcaioa/Controllers/Expert/ZhuanjiahuidaController.cs |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Controllers/Expert/ZhuanjiahuidaController.cs b/zhengcaioa/zhengcaioa/Controllers/Expert/ZhuanjiahuidaController.cs
index 3904acf..cb26f66 100644
--- a/zhengcaioa/zhengcaioa/Controllers/Expert/ZhuanjiahuidaController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/Expert/ZhuanjiahuidaController.cs
@@ -21,16 +21,18 @@
         private readonly ILogger<ZhuanjiahuidaController> _logger;
         private readonly ILZhuanjiahuidumService _lZhuanjiahuidumService;
         private readonly ILiaotianService _liaotianService;
-        private readonly IConfiguration _configuration;
+        //private readonly IConfiguration _configuration;
+        private readonly IPltPageService _pltPageService;
 
 
 
-
-        public ZhuanjiahuidaController(ILogger<ZhuanjiahuidaController> logger, ILZhuanjiahuidumService lZhuanjiahuidumService, ILiaotianService liaotianService)
+        public ZhuanjiahuidaController(ILogger<ZhuanjiahuidaController> logger, ILZhuanjiahuidumService lZhuanjiahuidumService, ILiaotianService liaotianService
+              , IPltPageService pltPageService)
         {
             _logger = logger;
             _lZhuanjiahuidumService = lZhuanjiahuidumService;
             _liaotianService = liaotianService;
+            _pltPageService = pltPageService;
         }
         [CheckLogin]
         public IActionResult Index()
@@ -54,6 +56,10 @@
             //actionlist.Add(actionEntity1);
             ViewData["ActionInfo"] = actionlist;
 
+            var pageEntities = _pltPageService.GetUserPage(curentuser.Id, "/Zhuanjiahuida/Index");
+            var pageEntities2 = pageEntities.Where(x => x.PageMethod == "02").ToList();
+            ViewData["ActionInfo2"] = pageEntities2;
+
             ViewBag.shifou = _liaotianService.GetSYScode("system", "shifou").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList();
             return View();
         }

--
Gitblit v1.9.1