|
@@ -24,10 +24,18 @@
|
|
|
<if test="bound != null and bound != ''">
|
|
|
and a.bound = #{bound}
|
|
|
</if>
|
|
|
- <if test="enable != null and enable != ''">
|
|
|
- and a.enable = #{enable}
|
|
|
- </if>
|
|
|
|
|
|
+
|
|
|
+ <if test="enable != null">
|
|
|
+ <choose>
|
|
|
+ <when test="enable">
|
|
|
+ and a.enable =1
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ and a.enable = 0
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
+ </if>
|
|
|
</where>
|
|
|
order by a.create_time desc
|
|
|
</select>
|