From 9a3284f88a52411db022edc686390c0dd8a1823e Mon Sep 17 00:00:00 2001 From: 17808 <1780814303@qq.com> Date: 星期三, 01 十一月 2023 15:13:58 +0800 Subject: [PATCH] 成绩统计后端 --- src/main/resources/mapper/QuestionMapper.xml | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/QuestionMapper.xml b/src/main/resources/mapper/QuestionMapper.xml index 50d0a31..ba39eaa 100644 --- a/src/main/resources/mapper/QuestionMapper.xml +++ b/src/main/resources/mapper/QuestionMapper.xml @@ -183,6 +183,7 @@ q.* FROM t_question q LEFT JOIN t_question_subject qs on q.id = qs.question_id + LEFT JOIN t_text_content t on q.info_text_content_id = t.id <where> and q.deleted=0 and qs.deleted = 0 <if test="id != null "> @@ -201,6 +202,9 @@ <if test="questionType != null "> and q.question_type= #{questionType} </if> + <if test="questionName != null and questionName != ''"> + and t.content->'$."titleContent"' LIKE concat('%',#{questionName},'%') + </if> <if test="content != null"> and q.info_text_content_id in (SELECT id FROM t_text_content WHERE content like concat('%',#{content},'%') ) </if> -- Gitblit v1.8.0