xiangpei
2024-05-27 6dc4345f9c84d829566ae1632477f11c22fac2f5
题目查询增加题干搜索
3个文件已修改
55 ■■■■ 已修改文件
src/main/java/com/mindskip/xzs/service/impl/ExamPaperServiceImpl.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/mindskip/xzs/viewmodel/admin/question/QuestionPageRequestVM.java 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/QuestionMapper.xml 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/mindskip/xzs/service/impl/ExamPaperServiceImpl.java
@@ -217,7 +217,7 @@
                userNames.add(user.getRealName());
            }
        }
        vm.setUserId(userIds);
        vm.setUserIds(userIds);
        vm.setUserNames(userNames);
        return vm;
    }
src/main/java/com/mindskip/xzs/viewmodel/admin/question/QuestionPageRequestVM.java
@@ -1,9 +1,10 @@
package com.mindskip.xzs.viewmodel.admin.question;
import com.mindskip.xzs.base.BasePage;
import lombok.Data;
@Data
public class QuestionPageRequestVM extends BasePage {
    private Integer id;
@@ -13,52 +14,7 @@
    private String content;
    private String questionName;
    private String titleContent;
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getLevel() {
        return level;
    }
    public void setLevel(Integer level) {
        this.level = level;
    }
    public Integer[] getSubjectId() {
        return subjectId;
    }
    public void setSubjectId(Integer[] subjectId) {
        this.subjectId = subjectId;
    }
    public Integer getQuestionType() {
        return questionType;
    }
    public void setQuestionType(Integer questionType) {
        this.questionType = questionType;
    }
    public String getContent() {
        return content;
    }
    public void setContent(String content) {
        this.content = content;
    }
    public String getQuestionName() {
        return questionName;
    }
    public void setQuestionName(String questionName) {
        this.questionName = questionName;
    }
}
src/main/resources/mapper/QuestionMapper.xml
@@ -186,6 +186,9 @@
        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="titleContent != null and titleContent != ''">
                and JSON_VALUE(t.content, '$.titleContent') like concat('%', #{titleContent}, '%')
            </if>
            <if test="id != null ">
                and q.id= #{id}
            </if>