Fix:尝试修复筛选最近10天数据的bug
This commit is contained in:
parent
b0e2c42ad0
commit
6c65f5be85
|
|
@ -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 参数
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue