客户对账查询修改
parent
47a040eb35
commit
62e3fe125b
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue