|
|
@ -80,16 +80,24 @@ |
|
|
|
and t.company = #{company} |
|
|
|
and t.company = #{company} |
|
|
|
and t.gf_tax_no = #{gfsh} |
|
|
|
and t.gf_tax_no = #{gfsh} |
|
|
|
and t.comp_code = #{companyCode} |
|
|
|
and t.comp_code = #{companyCode} |
|
|
|
<if test="rzclzt != null and rzclzt != '0'.toString() and rzclzt != '6'.toString()"> |
|
|
|
<if test="rzclzt != null and rzclzt != '' and rzclzt == '4'.toString()"> |
|
|
|
and t.bdk_status in ('1','2') |
|
|
|
and t.bdk_status in ('1','2') |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="rzclzt != null and (rzclzt == '0'.toString() or rzclzt == '6'.toString())"> |
|
|
|
<if test="rzclzt != null and rzclzt != '' and (rzclzt == '0'.toString() or rzclzt == '6'.toString())"> |
|
|
|
AND t.inaccount_status = '1' |
|
|
|
AND t.inaccount_status = '1' |
|
|
|
AND t.rzh_yesorno = '0' |
|
|
|
AND t.rzh_yesorno = '0' |
|
|
|
<if test=" bzdh == ''"> |
|
|
|
<if test=" bzdh == ''"> |
|
|
|
and t.bzdh is not null |
|
|
|
and t.bzdh is not null |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<if test="rzclzt != null and rzclzt != '' and rzclzt == '99'"> |
|
|
|
|
|
|
|
AND ( |
|
|
|
|
|
|
|
(t.auth_status = '4' and t.bdk_status IN ( '1', '2' )) |
|
|
|
|
|
|
|
or (t.auth_status in ('0','6') AND t.inaccount_status = '1' AND t.rzh_yesorno = '0' and t.bzdh is not null) |
|
|
|
|
|
|
|
or t.auth_status in ('2','3','5') |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
</if> |
|
|
|
<if test="invoiceStatus != null and invoiceStatus != '' and invoiceStatus != 'null' "> |
|
|
|
<if test="invoiceStatus != null and invoiceStatus != '' and invoiceStatus != 'null' "> |
|
|
|
and t.invoice_status = #{invoiceStatus} |
|
|
|
and t.invoice_status = #{invoiceStatus} |
|
|
|
</if> |
|
|
|
</if> |
|
|
@ -372,11 +380,10 @@ |
|
|
|
and t.auth_status in ('0','2','3','4','5','6') |
|
|
|
and t.auth_status in ('0','2','3','4','5','6') |
|
|
|
and t.export_mark = '0' |
|
|
|
and t.export_mark = '0' |
|
|
|
and t.company =#{company} |
|
|
|
and t.company =#{company} |
|
|
|
<if test="rzclzt != null and rzclzt != '0'.toString() and rzclzt != '6'.toString()"> |
|
|
|
<if test="rzclzt != null and rzclzt != '' and rzclzt == '4'.toString()"> |
|
|
|
and t.bdk_status in ('1','2') |
|
|
|
and t.bdk_status in ('1','2') |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="rzclzt != null and rzclzt != '' and (rzclzt == '0'.toString() or rzclzt == '6'.toString())"> |
|
|
|
<if test="rzclzt != null and (rzclzt == '0'.toString() or rzclzt == '6'.toString())"> |
|
|
|
|
|
|
|
AND t.inaccount_status = '1' |
|
|
|
AND t.inaccount_status = '1' |
|
|
|
AND t.rzh_yesorno = '0' |
|
|
|
AND t.rzh_yesorno = '0' |
|
|
|
<if test=" bzdh == ''"> |
|
|
|
<if test=" bzdh == ''"> |
|
|
@ -384,7 +391,13 @@ |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<if test="rzclzt != null and rzclzt != '' and rzclzt == '99'"> |
|
|
|
|
|
|
|
AND ( |
|
|
|
|
|
|
|
(t.auth_status = '4' and t.bdk_status IN ( '1', '2' )) |
|
|
|
|
|
|
|
or (t.auth_status in ('0','6') AND t.inaccount_status = '1' AND t.rzh_yesorno = '0' and t.bzdh is not null) |
|
|
|
|
|
|
|
or t.auth_status in ('2','3','5') |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
</if> |
|
|
|
<if test="invoiceStatus != null and invoiceStatus != '' and invoiceStatus != 'null' "> |
|
|
|
<if test="invoiceStatus != null and invoiceStatus != '' and invoiceStatus != 'null' "> |
|
|
|
and t.invoice_status = #{invoiceStatus} |
|
|
|
and t.invoice_status = #{invoiceStatus} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|