试题查询模糊匹配

This commit is contained in:
flower 2019-01-28 23:33:54 +08:00
parent 1e350c0060
commit 105478f0a6
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select id, title, answer, type, label, category_id, create_by, create_date, update_by, update_date, remarks, del_flag from exam_question
<where>
<if test="id != null and id != '' "> and id = #{id}</if>
<if test="title != null and title != '' "> and title = #{title}</if>
<if test="title != null and title != '' "> and title like CONCAT('%',#{title},'%')</if>
<if test="answer != null and answer != '' "> and answer = #{answer}</if>
<if test="type != null and type != '' "> and type = #{type}</if>
<if test="label != null and label != '' "> and label = #{label}</if>