|
|
@@ -422,9 +422,17 @@
|
|
|
<if test="hlwPayment.companyName != null and hlwPayment.companyName !=''">
|
|
|
and com.company_name like concat(concat('%',#{hlwPayment.companyName}),'%')
|
|
|
</if>
|
|
|
- <if test="hlwPayment.status != null">
|
|
|
- and a.status = #{hlwPayment.status}
|
|
|
- </if>
|
|
|
+ <choose>
|
|
|
+ <when test="hlwPayment.status =='-1'.toString()">
|
|
|
+ and a.status is null
|
|
|
+ </when>
|
|
|
+ <when test="hlwPayment.status =='99'.toString()">
|
|
|
+ and (a.status = 1 or a.status = 2)
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ and a.status = #{hlwPayment.status}
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
<if test="hlwPayment.invoiceCategoryName != null and hlwPayment.invoiceCategoryName !=''">
|
|
|
and hi.invoice_category_name like concat('%',#{hlwPayment.invoiceCategoryName},'%')
|
|
|
</if>
|