首页统计排除预售订单
parent
6c47c07ae0
commit
89e26a419c
|
|
@ -545,6 +545,8 @@ public class OrderStatService {
|
|||
if (sale_type != null && (sale_type == 0 || sale_type == 1)) {
|
||||
saleParams += " and t.sale_type = ? \n";
|
||||
params.add(sale_type);
|
||||
}else {
|
||||
saleParams += " and t.sale_type = 0 \n";
|
||||
}
|
||||
String sql = "select s.id, s.name, s.name2, p.id product_id, p.`name` product_name, ifnull(a.orderCount, 0) as orderCount, ifnull(a.totalPrice, 0) as totalPrice, ifnull(a.weight, 0) as weight\n" +
|
||||
" from supermarket_product t\n" +
|
||||
|
|
@ -554,7 +556,6 @@ public class OrderStatService {
|
|||
" select t.supermarket_id as id, t.paid, t.total_price, t.weight, t.product_id\n" +
|
||||
" from order_temp t\n" +
|
||||
" where t.state = 5 \n" +
|
||||
" and t.sale_type = 0 \n" +
|
||||
// " and t.create_time like ? \n" +
|
||||
" and t.create_time between ? and ? \n" +
|
||||
saleParams +
|
||||
|
|
|
|||
Loading…
Reference in New Issue