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