|
@@ -59,15 +59,16 @@
|
|
|
<if test="name != null and name != ''">
|
|
|
AND UPPER(a.name) LIKE CONCAT('%', UPPER(trim(#{name})), '%')
|
|
|
</if>
|
|
|
- <choose>
|
|
|
- <when test='isUsed != null and isPlacefile == "0"'>
|
|
|
- AND b.is_used_run =#{isUsed}
|
|
|
- </when>
|
|
|
- <otherwise>
|
|
|
- AND b.is_used =#{isUsed}
|
|
|
- </otherwise>
|
|
|
- </choose>
|
|
|
-
|
|
|
+ <if test='isUsed != null and isUsed != ""'>
|
|
|
+ <choose>
|
|
|
+ <when test='isPlacefile != null and isPlacefile == "0"'>
|
|
|
+ AND b.is_used_run =#{isUsed}
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ AND b.is_used =#{isUsed}
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
+ </if>
|
|
|
<if test="isReject != null ">
|
|
|
AND b.is_reject = #{isReject}
|
|
|
</if>
|