update 应收账款统计列表查询sql

This commit is contained in:
lijiarao
2023-03-14 15:37:48 +08:00
parent f0a89f946c
commit 6d3343d2e3
@@ -2375,8 +2375,8 @@
and departCode = #{departCode}
</if>
<!-- 开票未来款 -->
AND (comeAllMoney <![CDATA[<]]> billMoney or
(comeAllMoney is null and billMoney is not null and billMoney !=0))
AND (paidNoTaxAmount <![CDATA[<]]> invoiceNoTaxAmount or
(paidNoTaxAmount is null and invoiceNoTaxAmount is not null and invoiceNoTaxAmount != 0))
</where>
) a
</select>
@@ -2444,8 +2444,8 @@
and departCode = #{departCode}
</if>
<!-- 开票未来款 -->
AND (comeAllMoney <![CDATA[<]]> billMoney or
(comeAllMoney is null and billMoney is not null and billMoney != 0))
AND (paidNoTaxAmount <![CDATA[<]]> invoiceNoTaxAmount or
(paidNoTaxAmount is null and invoiceNoTaxAmount is not null and invoiceNoTaxAmount != 0))
</where>) p
<if test="column != null and column != ''">
<if test="column == 'allMoney' and order == 'desc'">
@@ -2504,8 +2504,8 @@
and departCode = #{departCode}
</if>
<!-- 开票未来款 -->
AND (comeAllMoney <![CDATA[<]]> billMoney or
(comeAllMoney is null and billMoney is not null and billMoney != 0))
AND (paidNoTaxAmount <![CDATA[<]]> invoiceNoTaxAmount or
(paidNoTaxAmount is null and invoiceNoTaxAmount is not null and invoiceNoTaxAmount != 0))
</where>
) a
</select>