...
|
...
|
@@ -89,8 +89,27 @@ |
|
|
<if test="record.activityName != null" >
|
|
|
<![CDATA[ AND instr(activity_name ,#{record.activityName}) > 0 ]]>
|
|
|
</if>
|
|
|
<if test="record.status != null" >
|
|
|
and status = #{record.status,jdbcType=INTEGER}
|
|
|
<if test="record.status != null">
|
|
|
<if test="record.status == 4">
|
|
|
<!--已关闭-->
|
|
|
and status= 2
|
|
|
</if>
|
|
|
<if test="record.status == 3">
|
|
|
<!--已结束-->
|
|
|
and end_time <![CDATA[< ]]> #{currentTime}
|
|
|
and status != 2
|
|
|
</if>
|
|
|
<if test="record.status == 2">
|
|
|
<!--进行中-->
|
|
|
and start_time <![CDATA[<= ]]> #{currentTime}
|
|
|
and end_time >= #{currentTime}
|
|
|
and status != 2
|
|
|
</if>
|
|
|
<if test="record.status == 1">
|
|
|
<!--未开始-->
|
|
|
and start_time > #{currentTime}
|
|
|
and status != 2
|
|
|
</if>
|
|
|
</if>
|
|
|
</select>
|
|
|
|
...
|
...
|
@@ -105,8 +124,27 @@ |
|
|
<if test="record.activityName != null" >
|
|
|
<![CDATA[ AND instr(activity_name ,#{record.activityName}) > 0 ]]>
|
|
|
</if>
|
|
|
<if test="record.status != null" >
|
|
|
and status = #{record.status,jdbcType=INTEGER}
|
|
|
<if test="record.status != null">
|
|
|
<if test="record.status == 4">
|
|
|
<!--已关闭-->
|
|
|
and status= 2
|
|
|
</if>
|
|
|
<if test="record.status == 3">
|
|
|
<!--已结束-->
|
|
|
and end_time <![CDATA[< ]]> #{currentTime}
|
|
|
and status != 2
|
|
|
</if>
|
|
|
<if test="record.status == 2">
|
|
|
<!--进行中-->
|
|
|
and start_time <![CDATA[<= ]]> #{currentTime}
|
|
|
and end_time >= #{currentTime}
|
|
|
and status != 2
|
|
|
</if>
|
|
|
<if test="record.status == 1">
|
|
|
<!--未开始-->
|
|
|
and start_time > #{currentTime}
|
|
|
and status != 2
|
|
|
</if>
|
|
|
</if>
|
|
|
order by id desc
|
|
|
limit #{record.start},#{record.size}
|
...
|
...
|
|