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} and departCode = #{departCode}
</if> </if>
<!-- 开票未来款 --> <!-- 开票未来款 -->
AND (comeAllMoney <![CDATA[<]]> billMoney or AND (paidNoTaxAmount <![CDATA[<]]> invoiceNoTaxAmount or
(comeAllMoney is null and billMoney is not null and billMoney !=0)) (paidNoTaxAmount is null and invoiceNoTaxAmount is not null and invoiceNoTaxAmount != 0))
</where> </where>
) a ) a
</select> </select>
@@ -2444,8 +2444,8 @@
and departCode = #{departCode} and departCode = #{departCode}
</if> </if>
<!-- 开票未来款 --> <!-- 开票未来款 -->
AND (comeAllMoney <![CDATA[<]]> billMoney or AND (paidNoTaxAmount <![CDATA[<]]> invoiceNoTaxAmount or
(comeAllMoney is null and billMoney is not null and billMoney != 0)) (paidNoTaxAmount is null and invoiceNoTaxAmount is not null and invoiceNoTaxAmount != 0))
</where>) p </where>) p
<if test="column != null and column != ''"> <if test="column != null and column != ''">
<if test="column == 'allMoney' and order == 'desc'"> <if test="column == 'allMoney' and order == 'desc'">
@@ -2504,8 +2504,8 @@
and departCode = #{departCode} and departCode = #{departCode}
</if> </if>
<!-- 开票未来款 --> <!-- 开票未来款 -->
AND (comeAllMoney <![CDATA[<]]> billMoney or AND (paidNoTaxAmount <![CDATA[<]]> invoiceNoTaxAmount or
(comeAllMoney is null and billMoney is not null and billMoney != 0)) (paidNoTaxAmount is null and invoiceNoTaxAmount is not null and invoiceNoTaxAmount != 0))
</where> </where>
) a ) a
</select> </select>