修复统计问题
parent
8a6eee5165
commit
80e19b32ad
|
|
@ -2212,13 +2212,13 @@ public class OrderStatService {
|
|||
}
|
||||
|
||||
List<Record> customer_pre_list = Db.find("select\n" +
|
||||
" a.customer_id,\n" +
|
||||
" c.id customer_id,\n" +
|
||||
" tp.id customer_type_id,\n" +
|
||||
" tp.name customer_type_name,\n" +
|
||||
" c.name customer_name,\n" +
|
||||
" c.name,\n" +
|
||||
" a.total_amount prepay_total_amount, \n" +
|
||||
" b.total_amount refund_total_amount, \n" +
|
||||
" ifnull(a.total_amount, 0) prepay_total_amount, \n" +
|
||||
" ifnull(b.total_amount, 0) refund_total_amount, \n" +
|
||||
" p.surplus prepay_surplus\n" +
|
||||
" from customer c \n" +
|
||||
" left join ( \n" +
|
||||
|
|
|
|||
Loading…
Reference in New Issue