|
@@ -36,7 +36,7 @@
|
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
<if test="sort != null "> and sort = #{sort}</if>
|
|
|
<if test="publisherId != null "> and publisher_id = #{publisherId}</if>
|
|
|
- <if test="delFlag != null and delFlag != ''">and del_flag = #{delFlag}</if>
|
|
|
+ and del_flag = '0'
|
|
|
<if test="image != null and image != ''">and image = #{image}</if>
|
|
|
<if test="newsTime != null ">and news_time = #{newsTime}</if>
|
|
|
<if test="phonenumber != null ">and phonenumber = #{phonenumber}</if>
|
|
@@ -46,7 +46,7 @@
|
|
|
<!-- 通过Id查询-->
|
|
|
<select id="selectPoNewsByNewsId" parameterType="String" resultMap="PoNewsResult">
|
|
|
<include refid="selectPoNewsVo"/>
|
|
|
- where news_id = #{newsId}
|
|
|
+ where news_id = #{newsId} and del_flag = '0'
|
|
|
</select>
|
|
|
|
|
|
<!-- 增加-->
|
|
@@ -131,6 +131,7 @@
|
|
|
<where>
|
|
|
<if test="newsTitle != null and newsTitle != ''"> and news_title like concat('%', #{newsTitle}, '%')</if>
|
|
|
<if test="newsTimeStart != null and newsTimeEnd != null "> and news_time between #{newsTimeStart} and #{newsTimeEnd}</if>
|
|
|
+ and del_flag = '0'
|
|
|
</where>
|
|
|
</select>
|
|
|
|