From c1ec7e06f7b44beaf793af23477e1134451c80ae Mon Sep 17 00:00:00 2001
From: PC-201906131823\Administrator <zyyao>
Date: 星期三, 10 十一月 2021 08:59:06 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/zhengcaioa/Controllers/ExpertTest/ExpertTestTopicController.cs |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Controllers/ExpertTest/ExpertTestTopicController.cs b/zhengcaioa/zhengcaioa/Controllers/ExpertTest/ExpertTestTopicController.cs
index a50827f..bed0bf2 100644
--- a/zhengcaioa/zhengcaioa/Controllers/ExpertTest/ExpertTestTopicController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/ExpertTest/ExpertTestTopicController.cs
@@ -139,7 +139,7 @@
                 expertTestTopicanwserDTOs = _expertTestTopicService.GetListanwser(id);
                 if (dto.Topictype=="03")
                 {
-                    expertTestTopicanwserDTOs = expertTestTopicanwserDTOs.OrderByDescending(x=>x.Anwserno).ToList();
+                    expertTestTopicanwserDTOs = expertTestTopicanwserDTOs.OrderBy(x=>x.Anwserno).ToList();
                 }
                 if (expertTestTopicanwserDTOs.Count == 0)
                 {
@@ -909,6 +909,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