bug修改

dev
wany 2025-03-26 17:40:59 +08:00
parent a3a027ee95
commit ef63210e7a
1 changed files with 6 additions and 4 deletions

View File

@ -2250,7 +2250,7 @@ public class OrderStatService {
" LEFT JOIN product p ON p.id = t.product_id " +
" left join customer c on c.id = t.customer_id\n" +
" where t.state = 5\n" +
" where 1 = 1\n" +
// " where 1 = 1\n" +
saleParams +
// " and t.create_time like ? \n";
" and t.create_time between ? and ? \n";
@ -2288,7 +2288,7 @@ public class OrderStatService {
// " from order_end t\n" +
" left join customer c on c.id = t.customer_id\n" +
" where t.state = 5\n" +
" where 1 = 1\n" +
// " where 1 = 1\n" +
saleParams +
// " and t.create_time like ? \n";
" and t.create_time between ? and ? \n";
@ -2330,7 +2330,8 @@ public class OrderStatService {
" LEFT JOIN product p ON p.id = t.product_id " +
" left join customer c on c.id = t.customer_id\n" +
" where t.state = 5\n" +
" where 1 = 1\n" + saleParams;
// " where 1 = 1\n" +
saleParams;
if (customer_id != null) {
sql += " and c.id = ? \n";
@ -2362,7 +2363,8 @@ public class OrderStatService {
// " from order_end t\n" +
" left join customer c on c.id = t.customer_id\n" +
" where t.state = 5\n" +
" where 1 = 1\n" + saleParams;
// " where 1 = 1\n" +
saleParams;
if (customer_id != null) {
sql += " and c.id = ? \n";