客户对账查询修改

dev
徐杰盟 2024-04-07 16:39:50 +08:00
parent 47a040eb35
commit 62e3fe125b
1 changed files with 5 additions and 1 deletions

View File

@ -133,9 +133,13 @@ public class CustomerStatService {
" group by t.customer_id\n" +
" ) b on b.customer_id= a.customer_id\n" +
" ) b on b.customer_id= t.customer_id\n" +
" left join (select customer_id, ifnull(sum(presell_amount), 0) presell_amount from presell_order where del = 0 group by customer_id) p\n" +
" left join (select customer_id, ifnull(sum(presell_amount), 0) presell_amount from presell_order where del = 0" +
" and presell_date <= ?" +
" group by customer_id) p\n" +
" on p.customer_id = t.customer_id\n";
paraList.add(querytm);
if (customer_id != null) {
paraList.add(querytm);
// paraList.add(customer_id);