优化-3
parent
f7ab0ab24d
commit
8f20a3bc7d
|
|
@ -2951,7 +2951,7 @@ public class OrderStatService {
|
|||
String yhParams = "";
|
||||
if (!StrKit.isBlank(tm)) {
|
||||
shParams += " and t.create_time like ? \n";
|
||||
yhParams += " and p.presell_date like '" + tm + "%'\n";
|
||||
yhParams += " and t.create_time like '" + tm + "%'\n";
|
||||
shParamsList.add(tm + "%");
|
||||
}
|
||||
// 实售
|
||||
|
|
@ -2973,15 +2973,16 @@ public class OrderStatService {
|
|||
// 预售
|
||||
List<Record> yhList = Db.find(
|
||||
"SELECT\n" +
|
||||
" p.supermarket_id id,\n" +
|
||||
" SUM(p.presell_amount) total_price\n" +
|
||||
" t.supermarket_id id,\n" +
|
||||
" SUM(t.total_price) total_price\n" +
|
||||
"FROM\n" +
|
||||
" `presell_order` p\n" +
|
||||
" `order_temp` t\n" +
|
||||
"WHERE\n" +
|
||||
" del = 0\n" +
|
||||
" t.sale_type = 1\n" +
|
||||
" and t.state = 5\n" +
|
||||
yhParams +
|
||||
" GROUP BY\n" +
|
||||
" p.supermarket_id");
|
||||
" t.supermarket_id");
|
||||
|
||||
List<Record> retChildren = new ArrayList<>();
|
||||
List<Record> retList = new ArrayList<>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue