Commit bbfe9481 authored by liwei's avatar liwei

拼path路径,改为直接查url

parent 20de9857
...@@ -36,18 +36,6 @@ ...@@ -36,18 +36,6 @@
<select id="queryCmsActivity" resultMap="BaseResultMap"> <select id="queryCmsActivity" resultMap="BaseResultMap">
select * from cms_activity select * from cms_activity
where 1=1 where 1=1
<!-- <if test="entity.beginTime !=null and entity.beginTime != '' ">
and publish_date &gt;= #{entity.beginTime}
</if>
<if test="entity.endTime !=null and entity.endTime != '' ">
and publish_date &lt;= #{entity.endTime}
</if>
<if test="entity.beginTime !=null and entity.beginTime != '' ">
and create_date &gt;= #{entity.beginTime}
</if>
<if test="entity.endTime !=null and entity.endTime != '' ">
and create_date &lt;= #{entity.endTime}
</if>-->
<if test="entity.createBy !=null and entity.createBy != '' "> <if test="entity.createBy !=null and entity.createBy != '' ">
and create_by like concat('%',#{entity.createBy},'%') and create_by like concat('%',#{entity.createBy},'%')
</if> </if>
......
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
</update> </update>
<select id="selectById" resultMap="BaseResultMap" parameterType="java.lang.Integer"> <select id="selectById" resultMap="BaseResultMap" parameterType="java.lang.Integer">
select cn.*, select cn.*,
oi.path oi.url
from cms_notice cn from cms_notice cn
left join oss_info oi on oi.business_id = cn.picture_id left join oss_info oi on oi.business_id = cn.picture_id
where cn.business_id = #{businessId} where cn.business_id = #{businessId}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment