首页统计全部数据,去掉预售单数据
parent
04a7961e08
commit
a27e23a467
|
|
@ -218,19 +218,24 @@ group by date
|
|||
" ifnull(sum(p.presell_amount), 0) total_price,\n" +
|
||||
" 0 truck_cnt,\n" +
|
||||
" 0 year_total_weight,\n" +
|
||||
" ifnull(sum(case when p.presell_date >= ? then p.presell_amount end ), 0) year_total_price,\n" +
|
||||
// " ifnull(sum(case when p.presell_date >= ? then p.presell_amount end ), 0) year_total_price,\n" +
|
||||
" 0 year_total_price,\n" +
|
||||
" 0 year_truck_cnt,\n" +
|
||||
" 0 month_total_weight,\n" +
|
||||
" ifnull(sum(case when p.presell_date >= ? then p.presell_amount end ), 0) month_total_price,\n" +
|
||||
// " ifnull(sum(case when p.presell_date >= ? then p.presell_amount end ), 0) month_total_price,\n" +
|
||||
" 0 month_total_price,\n" +
|
||||
" 0 month_truck_cnt,\n" +
|
||||
" 0 day_total_weight,\n" +
|
||||
" ifnull(sum(case when p.presell_date >= ? then p.presell_amount end ), 0) day_total_price,\n" +
|
||||
// " ifnull(sum(case when p.presell_date >= ? then p.presell_amount end ), 0) day_total_price,\n" +
|
||||
" 0 day_total_price,\n" +
|
||||
" 0 day_truck_cnt\n" +
|
||||
" from presell_order p\n" +
|
||||
" where p.del = 0\n" +
|
||||
" ) g";
|
||||
|
||||
Record ocout = Db.findFirst(sql_ordercluster, year, year, year, month, month, month, day, day, day, day, year, month, day);
|
||||
Record ocout = Db.findFirst(sql_ordercluster, year, year, year, month, month, month, day, day, day, day
|
||||
// , year, month, day
|
||||
);
|
||||
out.set("ordercluster", ocout);
|
||||
|
||||
return out;
|
||||
|
|
|
|||
Loading…
Reference in New Issue