From 050d8fde17d71d0e5d3353984a55838903abbe36 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期一, 10 七月 2023 13:43:56 +0800 Subject: [PATCH] 增加制单人查询条件 --- zhengcaioa/zhengcaioa/Controllers/Expert/ZhuanjiahuidaController.cs | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Controllers/Expert/ZhuanjiahuidaController.cs b/zhengcaioa/zhengcaioa/Controllers/Expert/ZhuanjiahuidaController.cs index 3904acf..299b638 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() @@ -53,6 +55,10 @@ //actionEntity1.ActionName = "鏂板"; //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(); @@ -160,7 +166,7 @@ { //string SecurityKey = _configuration.GetSection("SecurityKey").Value; var keyId = headers["Authorization"].FirstOrDefault(); - if (string.IsNullOrEmpty("keyId")) + if (string.IsNullOrEmpty(keyId)) { returnMsg.code = 2; returnMsg.error = "娌℃湁鑾峰彇鍒皌oken"; @@ -234,7 +240,7 @@ { //string SecurityKey = _configuration.GetSection("SecurityKey").Value; var keyId = headers["Authorization"].FirstOrDefault(); - if (string.IsNullOrEmpty("keyId")) + if (string.IsNullOrEmpty(keyId)) { returnMsg.code = 2; returnMsg.error = "娌℃湁鑾峰彇鍒皌oken"; -- Gitblit v1.9.1