Commit db5bea5c by 田超

Merge branch 'fixbug/agentId' into 'master'

解决从测试环境带上来的agent_id导致接口500

See merge request rays/pcloud-book!850
parents 5e5f5366 3c8aa83f
...@@ -599,15 +599,7 @@ ...@@ -599,15 +599,7 @@
AND rights_type = #{rightsType} AND rights_type = #{rightsType}
</if> </if>
) )
<choose> ORDER BY n.create_time DESC
<when test="agentId >0">
and n.agent_id in (#{agentId} ,0)
</when>
<otherwise>
and n.agent_id = 0
</otherwise>
</choose>
ORDER BY n.agent_id desc, n.create_time DESC
</select> </select>
<select id="getClassifyNewsByTempletLabel" parameterType="map" resultType="com.pcloud.book.applet.dto.AppletNewsDTO"> <select id="getClassifyNewsByTempletLabel" parameterType="map" resultType="com.pcloud.book.applet.dto.AppletNewsDTO">
......
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