砂站运输量统计
parent
69edf63a52
commit
cc5e52929b
|
|
@ -1991,7 +1991,7 @@ public class OrderStatService {
|
|||
"FROM\n" +
|
||||
"(\n" +
|
||||
"SELECT\n" +
|
||||
"t.customer_id,\n" +
|
||||
"t.sn,t.customer_id,\n" +
|
||||
"t.customer_name,\n" +
|
||||
"t.weight,\n" +
|
||||
"t.total_price,\n" +
|
||||
|
|
@ -2005,7 +2005,7 @@ public class OrderStatService {
|
|||
"AND t.create_time <=? \n" +
|
||||
"AND t.isprepaid = 1 UNION\n" +
|
||||
"SELECT\n" +
|
||||
"t.customer_id,\n" +
|
||||
"t.sn,t.customer_id,\n" +
|
||||
"t.customer_name,\n" +
|
||||
"t.weight,\n" +
|
||||
"t.total_price,\n" +
|
||||
|
|
@ -2068,7 +2068,7 @@ public class OrderStatService {
|
|||
"FROM\n" +
|
||||
"(\n" +
|
||||
"SELECT\n" +
|
||||
"t.supermarket_id AS id,\n" +
|
||||
"t.sn,t.supermarket_id AS id,\n" +
|
||||
"t.customer_id,\n" +
|
||||
"t.customer_name,\n" +
|
||||
"t.weight,\n" +
|
||||
|
|
@ -2083,7 +2083,7 @@ public class OrderStatService {
|
|||
"AND t.create_time <=? \n" +
|
||||
"AND t.isprepaid = 1 UNION\n" +
|
||||
"SELECT\n" +
|
||||
"t.supermarket_id AS id,\n" +
|
||||
"t.sn,t.supermarket_id AS id,\n" +
|
||||
"t.customer_id,\n" +
|
||||
"t.customer_name,\n" +
|
||||
"t.weight,\n" +
|
||||
|
|
@ -2120,7 +2120,7 @@ public class OrderStatService {
|
|||
"FROM\n" +
|
||||
"(\n" +
|
||||
"SELECT\n" +
|
||||
"t.weight,\n" +
|
||||
"t.sn,t.weight,\n" +
|
||||
"t.total_price,\n" +
|
||||
"t.product_id\n" +
|
||||
"FROM\n" +
|
||||
|
|
@ -2131,7 +2131,7 @@ public class OrderStatService {
|
|||
"AND t.create_time <=?\n" +
|
||||
"AND t.isprepaid = 0 UNION\n" +
|
||||
"SELECT\n" +
|
||||
"t.weight,\n" +
|
||||
"t.sn,t.weight,\n" +
|
||||
"t.total_price,\n" +
|
||||
"t.product_id\n" +
|
||||
"FROM\n" +
|
||||
|
|
@ -2177,7 +2177,7 @@ public class OrderStatService {
|
|||
"( SELECT id, NAME FROM supermarket ) m join \n" +
|
||||
"(\n" +
|
||||
"SELECT\n" +
|
||||
"t.supermarket_id AS id,\n" +
|
||||
"t.sn,t.supermarket_id AS id,\n" +
|
||||
"t.weight,\n" +
|
||||
"t.total_price FROM\n" +
|
||||
"order_sale t \n" +
|
||||
|
|
@ -2187,7 +2187,7 @@ public class OrderStatService {
|
|||
"AND t.create_time <=? \n" +
|
||||
"AND t.isprepaid = 0 UNION\n" +
|
||||
"SELECT\n" +
|
||||
"t.supermarket_id AS id,\n" +
|
||||
"t.sn,t.supermarket_id AS id,\n" +
|
||||
"t.weight,\n" +
|
||||
"t.total_price\n" +
|
||||
"FROM\n" +
|
||||
|
|
|
|||
Loading…
Reference in New Issue