revert: restore v1.1.14 (37a9f303)
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
shishengliang
2026-09-16 09:29:30 +08:00
parent c49a02e3d9
commit 6ea1b3d5dd
210 changed files with 4448 additions and 36179 deletions
+3 -4
View File
@@ -8,11 +8,10 @@ export interface EnergyDateRange {
const YMD_RE = /^\d{4}-\d{2}-\d{2}$/;
// 车辆归属以账本 vehicle_id 为准,与氢能总览的筛选口径一致。
// 账本未关联车辆的记录归入外部车辆,避免在日报中遗漏真实加氢数据。
// 新账本目前只承载羚牛车辆订单;外部车辆仍需返回空集合而不是混用羚牛数据。
export function customerClause(customer: CustomerKind): string {
if (customer === 'external') return 'vehicle_id IS NULL';
if (customer === 'lingniu') return 'vehicle_id IS NOT NULL';
if (customer === 'external') return '1=0';
if (customer === 'lingniu') return '1=1';
return '1=1';
}