Commit 5a605e7f by wukaiqiang

预付款及结余汇总 退款额成倍问题

parent b2b92a86
...@@ -287,7 +287,9 @@ public class AdvancePaymentBalanceSumDaoImpl implements AdvancePaymentBalanceSum ...@@ -287,7 +287,9 @@ public class AdvancePaymentBalanceSumDaoImpl implements AdvancePaymentBalanceSum
+ " where 1=1 "); + " where 1=1 ");
if (dealYear != null && !(dealYear.isEmpty())) if (dealYear != null && !(dealYear.isEmpty()))
hql.append(" and advancePayment1.deal_year = :dealYear "); hql.append(" and advancePayment1.deal_year = :dealYear ");
hql.append( " GROUP BY advancePayment1.purchase_sand_unit_id, advancePayment1.project_id ) \r\n" hql.append( " GROUP BY advancePayment1.purchase_sand_unit_id, advancePayment1.project_id )"
+ " GROUP BY advancePayment.project_id \r\n"
+ " ,advancePayment.purchase_sand_unit_id \r\n"
+ " ) AS advancePaymentAdvance ON advancePaymentAdvance.purchase_sand_unit_id = advancePaymentAndBalanceSummary.purchase_sand_unit_id \r\n" + " ) AS advancePaymentAdvance ON advancePaymentAdvance.purchase_sand_unit_id = advancePaymentAndBalanceSummary.purchase_sand_unit_id \r\n"
+ " AND advancePaymentAdvance.project_id = advancePaymentAndBalanceSummary.project_id " + " AND advancePaymentAdvance.project_id = advancePaymentAndBalanceSummary.project_id "
......
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