Commit cc7de6e1 authored by 赵桢's avatar 赵桢

修改%查询全部问题

parent d4f818d4
...@@ -228,8 +228,8 @@ ...@@ -228,8 +228,8 @@
<if test="qnYear != null and qnYear != ''"><!-- 年份 --> <if test="qnYear != null and qnYear != ''"><!-- 年份 -->
AND t_record.qn_year = #{qnYear} AND t_record.qn_year = #{qnYear}
</if> </if>
<if test="createBy != null and createBy != ''"><!-- 众创空间名称 --> <if test="createBy != null and createBy != ''">
AND t_record.create_by LIKE CONCAT('%', #{createBy}, '%') and create_by like concat('%',replace(#{createBy},'%','\%'),'%')
</if> </if>
ORDER BY ORDER BY
<if test="sorting != null and sorting != ''"> <if test="sorting != null and sorting != ''">
...@@ -1040,7 +1040,7 @@ ...@@ -1040,7 +1040,7 @@
from t_record from t_record
<where> <where>
<if test="createBy != null and createBy != ''"> <if test="createBy != null and createBy != ''">
AND create_by like concat(concat('%',#{createBy},'%')) and create_by like concat('%',replace(#{createBy},'%','\%'),'%')
</if> </if>
<if test="processStatus != null"><!-- 问卷状态 --> <if test="processStatus != null"><!-- 问卷状态 -->
AND process_status = #{processStatus} AND process_status = #{processStatus}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment