<iftest=" createTimeStart !=null "> and res.create_time > #{createTimeStart} </if>
<iftest=" createTimeEnd !=null "> and res.create_time < #{createTimeEnd} </if>
<includerefid="where"/>
<iftest=" productId !=null and productId!='' "> and exists( select 1 from xm.xm_menu m where m.menu_id=res.menu_id and m.product_id=#{productId}) </if>
<iftest="myUserid != null and myUserid != ''"> and ( res.create_userid=#{myUserid} or res.handler_userid=#{myUserid}) </if>