feat(energy): rebuild hydrogen BI board and drill-through
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -8,10 +8,11 @@ export interface EnergyDateRange {
|
||||
|
||||
const YMD_RE = /^\d{4}-\d{2}-\d{2}$/;
|
||||
|
||||
// 新账本目前只承载羚牛车辆订单;外部车辆仍需返回空集合而不是混用羚牛数据。
|
||||
// 车辆归属以账本 vehicle_id 为准,与氢能总览的筛选口径一致。
|
||||
// 账本未关联车辆的记录归入外部车辆,避免在日报中遗漏真实加氢数据。
|
||||
export function customerClause(customer: CustomerKind): string {
|
||||
if (customer === 'external') return '1=0';
|
||||
if (customer === 'lingniu') return '1=1';
|
||||
if (customer === 'external') return 'vehicle_id IS NULL';
|
||||
if (customer === 'lingniu') return 'vehicle_id IS NOT NULL';
|
||||
return '1=1';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user