Fix:尝试修复筛选最近10天数据的bug

This commit is contained in:
黄珑 2025-08-29 17:59:10 +08:00
parent b0e2c42ad0
commit 6c65f5be85
1 changed files with 1 additions and 1 deletions

View File

@ -638,7 +638,7 @@ export class OrderService {
totalQuery += ` AND o.date_created >= ?`; totalQuery += ` AND o.date_created >= ?`;
const tenDaysAgo = new Date(); const tenDaysAgo = new Date();
tenDaysAgo.setDate(tenDaysAgo.getDate() - 10); tenDaysAgo.setDate(tenDaysAgo.getDate() - 10);
parameters.push(new Date(tenDaysAgo).toISOString().substring(0, 10)); parameters.push(tenDaysAgo.toISOString());
} }
// 处理 status 参数 // 处理 status 参数