@ -105,12 +105,13 @@
<!-- #{companyCode} -->
<!-- </foreach> -->
<if test= "companyCode != null and companyCode != '' and companyCode != 'null' and companyCode == '99'" >
and t.comp_code in
and ( t.comp_code in
<foreach collection= "companyCodes" index= "index" item= "companyCode" separator= "," open= "(" close= ")" >
#{companyCode}
</foreach>
or t.comp_code is null or t.comp_code = ''
)
</if>
<!-- or t.comp_code is null or t.comp_code = '' -->
<if test= "companyCode != null and companyCode != '99' and companyCode != '88' and companyCode != '' and companyCode != 'null'" >
and t.comp_code = #{companyCode}
</if>
@ -135,9 +136,6 @@
<if test= "bzdh != null and bzdh != '' and bzdh != 'null' and bzdh != '99'" >
and t.bzdh = #{bzdh}
</if>
<if test= "bzdh == null or bzdh == '' or bzdh == 'null' or bzdh == '99'" >
and t.bzdh is not null and t.inaccount_status = '1'
</if>
<if test= "taxRate != null and taxRate != '' and taxRate != 'null' and taxRate != '99'" >
and (t.tax_rate in
<foreach collection= "rates" index= "index" item= "taxRate" separator= "," open= "(" close= ")" >
@ -231,7 +229,7 @@
<!-- <if test="qsksrq==null or qsksrq=='' or qsjsrq==null or qsjsrq==''"> -->
<!-- order by t.invoice_date desc -->
<!-- </if> -->
<!-- order by t.bzdh desc-->
order by t.bzdh desc
</select>
<select id= "selectDksh" parameterType= "java.util.Map"
resultType="com.dxhy.base.entity.BaseTDxDkCount"
@ -517,8 +515,11 @@
<if test= "bzdh != null and bzdh != '' and bzdh != 'null' and bzdh != '99'" >
and t.bzdh = #{bzdh}
</if>
<if test= "bzdh == null or bzdh == '' or bzdh == 'null' or bzdh == '99'" >
and t.bzdh is not null
<if test= "taxRate != null and taxRate != '' and taxRate != 'null' and taxRate != '99'" >
and (t.tax_rate in
<foreach collection= "rates" index= "index" item= "taxRate" separator= "," open= "(" close= ")" >
#{taxRate}
</foreach>
</if>
<if test= "inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99' and inAccountStatus == '1'.toString()" >
and t.inaccount_status = #{inAccountStatus}
@ -564,7 +565,7 @@
<if test= "accountPeriod != null and accountPeriod != '' and accountPeriod != 'null' and accountPeriod != '99'" >
and t.account_period = #{accountPeriod}
</if>
<!-- order by t.bzdh desc -->
order by t.bzdh desc
</select>
<select id= "selectHj" parameterType= "java.util.Map"