本地年统计修改

dev
wany 2025-04-08 09:15:02 +08:00
parent 25e28f6d4d
commit d86d0c37e6
1 changed files with 2 additions and 2 deletions

View File

@ -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" +
" 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()) {
@ -4680,7 +4680,7 @@ public class OrderStatService {
", count(t.sn) as orderCount" +
", sum(t.total_price) as totalPrice, sum(t.weight) as weight\n" +
" from order_temp t \n" +
" where t.sale_type = 0" +
" where t.sale_type = 0 and t.state = 5 " +
params +
" group by t.product_id\n" +
" ) a \n" +