|
|
@@ -452,7 +452,17 @@
|
|
|
and a.payment_id = #{hlwPaymentDetail.paymentId}
|
|
|
</if>
|
|
|
<if test="hlwPaymentDetail.status != null">
|
|
|
- and a.status = #{hlwPaymentDetail.status}
|
|
|
+ <choose>
|
|
|
+ <when test="hlwPaymentDetail.status =='-1'.toString()">
|
|
|
+ and a.status is null
|
|
|
+ </when>
|
|
|
+ <when test="hlwPaymentDetail.status =='99'.toString()">
|
|
|
+ and (a.status = 1 or a.status = 2)
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ and a.status = #{hlwPaymentDetail.status}
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
</if>
|
|
|
<if test="hlwPaymentDetail.userCode != null and hlwPaymentDetail.userCode != ''">
|
|
|
and hu.user_code = #{hlwPaymentDetail.userCode}
|