From b0c19dd2793b5ada90b303b7ec23a670cdbf48f6 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期五, 11 二月 2022 14:52:52 +0800 Subject: [PATCH] 根据删除的知识点查询 --- zhengcaioa/zhengcaioa/Controllers/ExpertTest/ExpertTestTopicController.cs | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Controllers/ExpertTest/ExpertTestTopicController.cs b/zhengcaioa/zhengcaioa/Controllers/ExpertTest/ExpertTestTopicController.cs index 875ab60..9962972 100644 --- a/zhengcaioa/zhengcaioa/Controllers/ExpertTest/ExpertTestTopicController.cs +++ b/zhengcaioa/zhengcaioa/Controllers/ExpertTest/ExpertTestTopicController.cs @@ -93,6 +93,10 @@ ViewBag.zhongdian = _liaotianService.GetSYScode("system", "shifou").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); ViewBag.jiexi_status = _liaotianService.GetSYScode("expert_test_topic", "jiexi_status").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); ViewBag.shenpi_status = _liaotianService.GetSYScode("expert_test_topic", "shenpi_status").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); + ViewBag.Falv = _liaotianService.GetSYScode("expert_test_topicjiexi", "falv").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); + + ViewBag.shanchuzhishitype = _liaotianService.GetSYScodeshanchu("expert_test_topic", "zhishitype").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); + var areaDTOs = _areaService.GetList().Where(x => x.ParentId == "0 ").ToList(); foreach (var areaDTO in areaDTOs) { @@ -909,6 +913,23 @@ } } + foreach (var sysCodeDtl in sysCodeDtls) + { + + var shuliang = expertTestTopicDTOs1.Count(x => x.Topictype == sysCodeDtl.CodeSn); + var expertTestTopicDTO = new ExpertTestTopicDTO(); + expertTestTopicDTO.Shuliang = shuliang; + expertTestTopicDTO.ZhishitypeName = "鍚堣"; + + expertTestTopicDTO.Zhishitype = ""; + expertTestTopicDTO.Topictype = sysCodeDtl.CodeSn; + expertTestTopicDTOs.Add(expertTestTopicDTO); + } + + + + + //ViewBag.topictype = sysCodeDtls; -- Gitblit v1.9.1