username@email.com
2022-08-27 6e2b929cf381e2320ba6e7dec56c0371124d2b51
zhengcaioa/zhengcaioa/Controllers/admin/AdmGoodsManageController.cs
@@ -32,6 +32,7 @@
        private readonly IAdmGoodsRecordService _admGoodsRecordService;
        public AdmGoodsManageController(ILogger<AdmGoodsManageController> logger, ILiaotianService liaotianService, IAdmGoodsManageService admGoodsManageService, IAdmGoodsClassifyService admGoodsClassifyService, IPltPageService pltPageService
            , IAdmGoodsRecordService admGoodsRecordService)
        {
@@ -58,8 +59,8 @@
            actionlist.Add(actionEntity);
            List<PageEntity> pageEntities = _pltPageService.GetUserPage(curentuser.Id, "/AdmGoodsManage/Index/");
            foreach (var pageEntity in pageEntities )
            var pageEntities1 = pageEntities.Where(x => x.PageMethod == "01").ToList();
            foreach (var pageEntity in pageEntities1)
            {
                ActionEntity actionEntity1 = new ActionEntity();
                actionEntity1.OpenType = pageEntity.OpenType;
@@ -102,7 +103,7 @@
            ViewData["ActionInfo"] = actionlist;
            ViewData["ActionInfo2"] = pageEntities1;
            ViewBag.GoodsStatus = _liaotianService.GetSYScode("adm_goods_manage", "goods_status").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList();
@@ -160,6 +161,9 @@
        {
            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
            ViewData["curentuser"] = curentuser;
            var pageEntities = _pltPageService.GetUserPage(curentuser.Id, "/AdmGoodsManage/Index/");
            var pageEntities2 = pageEntities.Where(x => x.PageMethod == "02").ToList();
            ViewData["ActionInfo2"] = pageEntities2;
            AdmGoodsManageDTO dto = new AdmGoodsManageDTO();
            if (!String.IsNullOrEmpty(id))