|
|
@@ -14,22 +14,22 @@
|
|
|
from activity
|
|
|
where 1=1
|
|
|
<if test="sTime != null">
|
|
|
- start_time <![CDATA[ >= ]]> #{sTime,jdbcType=TIMESTAMP}
|
|
|
+ and start_time <![CDATA[ >= ]]> #{sTime,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
<if test="eTime != null">
|
|
|
- start_time <![CDATA[ < ]]> #{eTime,jdbcType=TIMESTAMP}
|
|
|
+ and start_time <![CDATA[ < ]]> #{eTime,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
<if test="name != null">
|
|
|
- name like CONCAT('%',#{name,jdbcType=VARCHAR},'%')
|
|
|
+ and name like CONCAT('%',#{name,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="host != null">
|
|
|
- host like CONCAT('%',#{host,jdbcType=VARCHAR},'%')
|
|
|
+ and host like CONCAT('%',#{host,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="type != null">
|
|
|
- type = #{type,jdbcType=INTEGER}
|
|
|
+ and type = #{type,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="form != null">
|
|
|
- form = #{form,jdbcType=INTEGER}
|
|
|
+ and form = #{form,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
order by start_time desc
|
|
|
<if test="page_sql!=null">
|
|
|
@@ -43,22 +43,22 @@
|
|
|
from activity
|
|
|
where 1=1
|
|
|
<if test="sTime != null">
|
|
|
- start_time <![CDATA[ >= ]]> #{sTime,jdbcType=TIMESTAMP}
|
|
|
+ and start_time <![CDATA[ >= ]]> #{sTime,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
<if test="eTime != null">
|
|
|
- start_time <![CDATA[ < ]]> #{eTime,jdbcType=TIMESTAMP}
|
|
|
+ and start_time <![CDATA[ < ]]> #{eTime,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
<if test="name != null">
|
|
|
- name like CONCAT('%',#{name,jdbcType=VARCHAR},'%')
|
|
|
+ and name like CONCAT('%',#{name,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="host != null">
|
|
|
- host like CONCAT('%',#{host,jdbcType=VARCHAR},'%')
|
|
|
+ and host like CONCAT('%',#{host,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
<if test="type != null">
|
|
|
- type = #{type,jdbcType=INTEGER}
|
|
|
+ and type = #{type,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="form != null">
|
|
|
- form = #{form,jdbcType=INTEGER}
|
|
|
+ and form = #{form,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
@@ -71,4 +71,15 @@
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
+
|
|
|
+ <select id="findPortalList" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from activity
|
|
|
+ <if test="form != null">
|
|
|
+ form = #{form,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ order by start_time desc
|
|
|
+ limit #{pageNo,jdbcType=INTEGER}, #{pageSize,jdbcType=INTEGER}
|
|
|
+</select>
|
|
|
</mapper>
|