|
|
|
@ -220,13 +220,36 @@ |
|
|
|
|
<if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'"> |
|
|
|
|
and t.account_period = #{accountPeriod} |
|
|
|
|
</if> |
|
|
|
|
<if test="taxRate!=null and taxRate!='' and taxRate!='多税率' and taxRate != null and taxRate !='99'"> |
|
|
|
|
and t.tax_rate = #{taxRate} |
|
|
|
|
</if> |
|
|
|
|
<if test="taxRate=='多税率'"> |
|
|
|
|
and t.tax_rate like '%,%' |
|
|
|
|
</if> |
|
|
|
|
<if test="sortPzbh == '1'"> |
|
|
|
|
order by t.sn_voucher_number desc |
|
|
|
|
</if> |
|
|
|
|
<if test="sortPzbh == '2'"> |
|
|
|
|
order by t.sn_voucher_number |
|
|
|
|
</if> |
|
|
|
|
<if test="sortBzdh == '1'"> |
|
|
|
|
order by t.bzdh desc |
|
|
|
|
</if> |
|
|
|
|
<if test="sortBzdh == '2'"> |
|
|
|
|
order by t.bzdh |
|
|
|
|
</if> |
|
|
|
|
<if test="sortKprq == '1'"> |
|
|
|
|
order by t.invoice_date desc |
|
|
|
|
</if> |
|
|
|
|
<if test="sortKprq == '2'"> |
|
|
|
|
order by t.invoice_date |
|
|
|
|
</if> |
|
|
|
|
<!-- <if test="qsksrq != null and qsksrq != '' and qsksrq != 'null' and qsjsrq != null and qsjsrq != '' and qsjsrq != 'null'">--> |
|
|
|
|
<!-- order by t.qs_date desc,t.invoice_date desc--> |
|
|
|
|
<!-- </if>--> |
|
|
|
|
<!-- <if test="qsksrq==null or qsksrq=='' or qsjsrq==null or qsjsrq==''">--> |
|
|
|
|
<!-- order by t.invoice_date desc--> |
|
|
|
|
<!-- </if>--> |
|
|
|
|
order by t.bzdh desc |
|
|
|
|
</select> |
|
|
|
|
<select id="selectDksh" parameterType="java.util.Map" |
|
|
|
|
resultType="com.dxhy.base.entity.BaseTDxDkCount" |
|
|
|
@ -556,6 +579,12 @@ |
|
|
|
|
<if test="accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'"> |
|
|
|
|
and t.account_period = #{accountPeriod} |
|
|
|
|
</if> |
|
|
|
|
<if test="taxRate!=null and taxRate!='' and taxRate!='多税率' and taxRate != null and taxRate !='99'"> |
|
|
|
|
and t.tax_rate = #{taxRate} |
|
|
|
|
</if> |
|
|
|
|
<if test="taxRate=='多税率'"> |
|
|
|
|
and t.tax_rate like '%,%' |
|
|
|
|
</if> |
|
|
|
|
<if test="sortPzbh == '1'"> |
|
|
|
|
order by t.sn_voucher_number desc |
|
|
|
|
</if> |
|
|
|
@ -574,13 +603,6 @@ |
|
|
|
|
<if test="sortKprq == '2'"> |
|
|
|
|
order by t.invoice_date |
|
|
|
|
</if> |
|
|
|
|
<if test="taxRate!=null and taxRate!='' and taxRate!='多税率' and taxRate != null and taxRate !='99'"> |
|
|
|
|
and t.tax_rate = #{taxRate} |
|
|
|
|
</if> |
|
|
|
|
<if test="taxRate=='多税率'"> |
|
|
|
|
and t.tax_rate like '%,%' |
|
|
|
|
</if> |
|
|
|
|
order by t.bzdh desc |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="selectHj" parameterType="java.util.Map" |
|
|
|
|