From 6f58f2cb4ab7d8717cfc8995142ba62f2be09af1 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期二, 02 七月 2024 15:58:10 +0800
Subject: [PATCH] 题目导入完善

---
 src/main/resources/mapper/QuestionMapper.xml |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/QuestionMapper.xml b/src/main/resources/mapper/QuestionMapper.xml
index 4129fa3..6796d90 100644
--- a/src/main/resources/mapper/QuestionMapper.xml
+++ b/src/main/resources/mapper/QuestionMapper.xml
@@ -373,4 +373,13 @@
                  INNER JOIN t_text_content ttc ON tq.info_text_content_id = ttc.id AND tq.id = #{id} AND tq.deleted = 0
     </select>
 
+    <select id="countQuestionByTitle" resultType="integer">
+        SELECT
+               COUNT(q.id)
+        FROM
+             t_question q
+                 INNER JOIN t_text_content d on q.info_text_content_id = d.id
+        WHERE JSON_VALUE(d.content, '$.titleContent') = #{title} AND q.deleted = 0
+    </select>
+
 </mapper>

--
Gitblit v1.8.0