首页统计修改 排除 处置砂
parent
c45f67c983
commit
c42ee62ec8
|
|
@ -175,6 +175,7 @@ group by date
|
|||
" from order_temp t\n" +
|
||||
" where t.sale_type = 0\n" +
|
||||
" and t.state = 5\n" +
|
||||
" and t.product_id != 4\n" +
|
||||
" union\n" +
|
||||
" select \n" +
|
||||
" 0 total_weight,\n" +
|
||||
|
|
@ -445,6 +446,7 @@ group by date
|
|||
List<Record> data2 = Db.find("select case when t.customer_id is null then 2 else 1 end cid, count(t.sn) day_cnt, sum(t.weight) day_weight, sum(total_price) day_total_price \n" +
|
||||
" from order_temp t\n" +
|
||||
" where t.state = 5\n" +
|
||||
" and t.product_id != 4\n" +
|
||||
" and t.create_time like ?\n" +
|
||||
" group by cid", nowdaytm + "%");
|
||||
|
||||
|
|
|
|||
|
|
@ -2243,6 +2243,7 @@ public class OrderStatService {
|
|||
" ifnull(sum(t.total_price), 0) total_price\n" +
|
||||
" from order_temp t\n" +
|
||||
" where t.state = 5\n" +
|
||||
" and t.product_id != 4\n" +
|
||||
saleParam +
|
||||
" and t.supermarket_id = 4\n" +
|
||||
" and (t.create_time < '2021-09-08 00:00:00'\n" +
|
||||
|
|
@ -2260,6 +2261,7 @@ public class OrderStatService {
|
|||
" ifnull(sum(t.total_price), 0) total_price\n" +
|
||||
" from order_temp t\n" +
|
||||
" where t.state = 5\n" +
|
||||
" and t.product_id != 4\n" +
|
||||
saleParam +
|
||||
" and t.supermarket_id = 4\n" +
|
||||
" and ((t.create_time >= '2021-09-08 00:00:00' and t.create_time <= '2021-10-15 23:59:59') \n" +
|
||||
|
|
@ -2297,6 +2299,7 @@ public class OrderStatService {
|
|||
" ifnull(sum(t.total_price), 0) total_price\n" +
|
||||
" from order_temp t\n" +
|
||||
" where t.state = 5\n" +
|
||||
" and t.product_id != 4\n" +
|
||||
saleParam +
|
||||
" and t.supermarket_id != 4\n" +
|
||||
" and t.create_time>= ? \n" +
|
||||
|
|
@ -2354,6 +2357,7 @@ public class OrderStatService {
|
|||
" select t.customer_id, sum(t.total_price) total_price\n" +
|
||||
" from order_temp t\n" +
|
||||
" where t.customer_id is not null\n" +
|
||||
" and t.product_id != 4\n" +
|
||||
" and t.create_time <= ?\n" +
|
||||
" and t.state = 5\n" +
|
||||
" and t.sale_type = 0\n" +
|
||||
|
|
@ -2660,6 +2664,7 @@ public class OrderStatService {
|
|||
" ifnull(sum(t.total_price), 0) total_price\n" +
|
||||
" from order_temp t\n" +
|
||||
" where t.state = 5\n" +
|
||||
" and t.product_id != 4\n" +
|
||||
" and t.create_time >= ?\n" +
|
||||
" and t.create_time <= ?\n" +
|
||||
paramsSql +
|
||||
|
|
|
|||
Loading…
Reference in New Issue