Commit 73c2a9c9 by yinyong

数据中心--资产负债表应收账款计算展示改为:应收账款-预收账款(非Ebay-Eabay)

parent 1c7c98b6
......@@ -49,7 +49,7 @@ public interface DcSupplierTransactionMapper {
@Select("select sum(end_amount) from dc_supplier_transaction where day = #{lastDay} and end_amount > 0 and is_finish = 1 and types = 2")
BigDecimal getFinishedAccountsPayableSum(@Param("lastDay") Date lastDay);
@Select("select sum(amount_end) from dc_daily_receivable where day = #{lastDay}")
@Select("select sum(case when platform != 'Ebay' then amount_end else 0 end) - sum(case when platform = 'Ebay' then amount_end else 0 end) from dc_daily_receivable where day = #{lastDay}")
BigDecimal getAccountsReceivable(@Param("lastDay") Date lastDay);
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment