Commit e5f4cfdf by rongkailun

【修改】levels筛选条件修改

parent d0ff409b
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
WHERE WHERE
1=1 1=1
<choose> <choose>
<when test="newsParams.levels !=null and newsParams.levels !=''"> <when test="newsParams.levels !=null">
AND levels = #{newsParams.levels} AND levels = #{newsParams.levels}
</when> </when>
<otherwise> <otherwise>
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<select id="selectPartnersList" resultMap="partnersMap"> <select id="selectPartnersList" resultMap="partnersMap">
select * from Partners where 1=1 select * from Partners where 1=1
<choose> <choose>
<when test="newsParams.levels !=null and newsParams.levels !=''"> <when test="newsParams.levels !=null">
AND levels = #{newsParams.levels} AND levels = #{newsParams.levels}
</when> </when>
<otherwise> <otherwise>
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
and editor =#{newsParams.editor} and editor =#{newsParams.editor}
</if> </if>
<choose> <choose>
<when test="newsParams.levels !=null and newsParams.levels !=''"> <when test="newsParams.levels !=null">
AND levels = #{newsParams.levels} AND levels = #{newsParams.levels}
</when> </when>
<otherwise> <otherwise>
......
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