From 781e000a39e9a333a37a8fb35fe1b9596d85b309 Mon Sep 17 00:00:00 2001
From: dingwei <dingwei@ccpit.org>
Date: Wed, 15 Jan 2025 15:46:04 +0800
Subject: [PATCH] 1、更新常见问题首页显示排序。

---
 src/main/java/org/ccpit/business/questionsManage/QuestionService.java | 2 +-
 src/main/sql/update.sql                                               | 2 +-
 src/main/webapp/WEB-INF/jsp/front/home-page.jsp                       | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/ccpit/business/questionsManage/QuestionService.java b/src/main/java/org/ccpit/business/questionsManage/QuestionService.java
index baf3b7a..2e52e02 100644
--- a/src/main/java/org/ccpit/business/questionsManage/QuestionService.java
+++ b/src/main/java/org/ccpit/business/questionsManage/QuestionService.java
@@ -73,7 +73,7 @@ public class QuestionService {
 	}
 
 	public List<Question> queryQuestionList(){
-		List<Question> questionList = questionDao.queryAll();
+		List<Question> questionList = questionDao.query("from Question q ORDER BY q.createTime DESC");
 		return questionList;
 	}
 
diff --git a/src/main/sql/update.sql b/src/main/sql/update.sql
index 51cbf74..4d485c7 100644
--- a/src/main/sql/update.sql
+++ b/src/main/sql/update.sql
@@ -1 +1 @@
-update sfzx_servicenetwork set tel = '0551-62999713',webSiteAddress='https://www.ccpit-ah.org.cn' where id= 54;
\ No newline at end of file
+update sfzx_servicenetwork set tel = '0571-85811960',contacts = '凌莉' where id = 61;
\ No newline at end of file
diff --git a/src/main/webapp/WEB-INF/jsp/front/home-page.jsp b/src/main/webapp/WEB-INF/jsp/front/home-page.jsp
index 7bf27c6..4e328ee 100644
--- a/src/main/webapp/WEB-INF/jsp/front/home-page.jsp
+++ b/src/main/webapp/WEB-INF/jsp/front/home-page.jsp
@@ -236,7 +236,7 @@ text-decoration:none;
 					<c:forEach items="${questionList}" var="question" begin="0" end="9">
 						<li><span class="secondRow_div_content_content"><a
 								href="/front/aboutQuestionContent/${question.id }"
-								title="${question.title }" target="_blank">${fn:substring(question.title, 0, 40) }</a></span></li>
+								title="${question.title }" target="_blank">${fn:substring(question.title, 0, 36) }</a></span></li>
 					</c:forEach>
 				</ul>
 			</div>
--
libgit2 0.26.0