|
@@ -467,15 +467,18 @@
|
|
|
date_format(create_time,'%Y-%m-%d %H:%i:%S') as createTimeConvert,create_time createTime,
|
|
date_format(create_time,'%Y-%m-%d %H:%i:%S') as createTimeConvert,create_time createTime,
|
|
|
date_format(release_time,'%Y-%m-%d %H:%i:%S') as releaseTimeConvert ,release_time releaseTime
|
|
date_format(release_time,'%Y-%m-%d %H:%i:%S') as releaseTimeConvert ,release_time releaseTime
|
|
|
from news where 1=1
|
|
from news where 1=1
|
|
|
- <if test="n.id!=null">
|
|
|
|
|
|
|
+ <if test="n.id!=null">
|
|
|
and id = #{n.id}
|
|
and id = #{n.id}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="n.title!=null">
|
|
<if test="n.title!=null">
|
|
|
- and title like concat('%',#{n.title},'%')
|
|
|
|
|
|
|
+ and title like concat('%',#{n.title},'%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="n.releaseStatus!=null">
|
|
<if test="n.releaseStatus!=null">
|
|
|
and release_status = #{n.releaseStatus}
|
|
and release_status = #{n.releaseStatus}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="n.status!=null">
|
|
|
|
|
+ and status = #{n.status}
|
|
|
|
|
+ </if>
|
|
|
<if test="n.type!=null">
|
|
<if test="n.type!=null">
|
|
|
and type = #{n.type}
|
|
and type = #{n.type}
|
|
|
</if>
|
|
</if>
|
|
@@ -497,6 +500,9 @@
|
|
|
<if test="n.releaseStatus!=null">
|
|
<if test="n.releaseStatus!=null">
|
|
|
and release_status = #{n.releaseStatus}
|
|
and release_status = #{n.releaseStatus}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="n.status!=null">
|
|
|
|
|
+ and status = #{n.status}
|
|
|
|
|
+ </if>
|
|
|
<if test="n.type!=null">
|
|
<if test="n.type!=null">
|
|
|
and type = #{n.type}
|
|
and type = #{n.type}
|
|
|
</if>
|
|
</if>
|