本地年统计修改
parent
25e28f6d4d
commit
d86d0c37e6
|
|
@ -4634,7 +4634,7 @@ public class OrderStatService {
|
||||||
|
|
||||||
//所有总
|
//所有总
|
||||||
List<Record> totalList = Db.find("select count(t.sn) as order_num, sum(t.total_price) as total_price, sum(t.weight) as weight\n" +
|
List<Record> totalList = Db.find("select count(t.sn) as order_num, sum(t.total_price) as total_price, sum(t.weight) as weight\n" +
|
||||||
" from order_temp t where t.sale_type = 0" + shParams, shParamsList.toArray());
|
" from order_temp t where t.sale_type = 0 and t.state = 5 " + shParams, shParamsList.toArray());
|
||||||
|
|
||||||
// 实售处理
|
// 实售处理
|
||||||
if (shList != null && !shList.isEmpty()) {
|
if (shList != null && !shList.isEmpty()) {
|
||||||
|
|
@ -4680,7 +4680,7 @@ public class OrderStatService {
|
||||||
", count(t.sn) as orderCount" +
|
", count(t.sn) as orderCount" +
|
||||||
", sum(t.total_price) as totalPrice, sum(t.weight) as weight\n" +
|
", sum(t.total_price) as totalPrice, sum(t.weight) as weight\n" +
|
||||||
" from order_temp t \n" +
|
" from order_temp t \n" +
|
||||||
" where t.sale_type = 0" +
|
" where t.sale_type = 0 and t.state = 5 " +
|
||||||
params +
|
params +
|
||||||
" group by t.product_id\n" +
|
" group by t.product_id\n" +
|
||||||
" ) a \n" +
|
" ) a \n" +
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue