bug修改
parent
a3a027ee95
commit
ef63210e7a
|
|
@ -2250,7 +2250,7 @@ public class OrderStatService {
|
||||||
" LEFT JOIN product p ON p.id = t.product_id " +
|
" LEFT JOIN product p ON p.id = t.product_id " +
|
||||||
" left join customer c on c.id = t.customer_id\n" +
|
" left join customer c on c.id = t.customer_id\n" +
|
||||||
" where t.state = 5\n" +
|
" where t.state = 5\n" +
|
||||||
" where 1 = 1\n" +
|
// " where 1 = 1\n" +
|
||||||
saleParams +
|
saleParams +
|
||||||
// " and t.create_time like ? \n";
|
// " and t.create_time like ? \n";
|
||||||
" and t.create_time between ? and ? \n";
|
" and t.create_time between ? and ? \n";
|
||||||
|
|
@ -2288,7 +2288,7 @@ public class OrderStatService {
|
||||||
// " from order_end t\n" +
|
// " from order_end t\n" +
|
||||||
" left join customer c on c.id = t.customer_id\n" +
|
" left join customer c on c.id = t.customer_id\n" +
|
||||||
" where t.state = 5\n" +
|
" where t.state = 5\n" +
|
||||||
" where 1 = 1\n" +
|
// " where 1 = 1\n" +
|
||||||
saleParams +
|
saleParams +
|
||||||
// " and t.create_time like ? \n";
|
// " and t.create_time like ? \n";
|
||||||
" and t.create_time between ? and ? \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 product p ON p.id = t.product_id " +
|
||||||
" left join customer c on c.id = t.customer_id\n" +
|
" left join customer c on c.id = t.customer_id\n" +
|
||||||
" where t.state = 5\n" +
|
" where t.state = 5\n" +
|
||||||
" where 1 = 1\n" + saleParams;
|
// " where 1 = 1\n" +
|
||||||
|
saleParams;
|
||||||
|
|
||||||
if (customer_id != null) {
|
if (customer_id != null) {
|
||||||
sql += " and c.id = ? \n";
|
sql += " and c.id = ? \n";
|
||||||
|
|
@ -2362,7 +2363,8 @@ public class OrderStatService {
|
||||||
// " from order_end t\n" +
|
// " from order_end t\n" +
|
||||||
" left join customer c on c.id = t.customer_id\n" +
|
" left join customer c on c.id = t.customer_id\n" +
|
||||||
" where t.state = 5\n" +
|
" where t.state = 5\n" +
|
||||||
" where 1 = 1\n" + saleParams;
|
// " where 1 = 1\n" +
|
||||||
|
saleParams;
|
||||||
|
|
||||||
if (customer_id != null) {
|
if (customer_id != null) {
|
||||||
sql += " and c.id = ? \n";
|
sql += " and c.id = ? \n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue