Browse Source

优化查询条件

master
陈裕财 5 years ago
parent
commit
6e65b7bbdc
  1. 1
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmQuestionMapper.xml

1
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmQuestionMapper.xml

@ -67,6 +67,7 @@
#{item}
</foreach>
</if>
<if test="hisHandlerUserid !=null "> and exists (select 1 from xm.xm_question_handle h where h.question_id = res.id and h.handler_userid=#{hisHandlerUserid} and handle_status=#{hisHandleStatus})</if>
<if test=" createTimeStart !=null "> and res.create_time &gt; #{createTimeStart} </if>
<if test=" createTimeEnd !=null "> and res.create_time &lt; #{createTimeEnd} </if>
<include refid="where"/>

Loading…
Cancel
Save