|
@@ -137,12 +137,16 @@
|
|
|
AND scc.payment_order_id_=#{paymentOrderId}
|
|
|
</if>
|
|
|
<if test="usageStatus!=null">
|
|
|
- <if test="usageStatus < 2">
|
|
|
- AND scc.usage_status_=#{usageStatus}
|
|
|
+ <if test="usageStatus == 0">
|
|
|
+ AND scc.usage_status_=0
|
|
|
AND scc.use_deadline_date_ >= NOW()
|
|
|
</if>
|
|
|
+ <if test="usageStatus == 1">
|
|
|
+ AND scc.usage_status_=1
|
|
|
+ </if>
|
|
|
<if test="usageStatus == 2">
|
|
|
- AND scc.usage_status_=0 AND scc.use_deadline_date_ < NOW()
|
|
|
+ AND scc.usage_status_=0
|
|
|
+ AND scc.use_deadline_date_ < NOW()
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="organId!=null">
|