import { ApiClientFactory } from '../core/api.client.factory'; import { ICarWashRecordStatisticsData, ICommonHistoryRecordParams, ICommonHistoryRecordResult, INighConstructionSunData, INightConstructionRecord, INightConstructionTrend, IResidualSoilAlarmSumData, IResidueLegacyTrend, IWashStationHistoryRecordParams, IWashStationHistoryRecordResult, IWashStationTrend, WashStationRecord } from '../model/washVehicles.model'; export class WashVehiclesService { constructor(private factory: ApiClientFactory) {} // 洗车台======最近10天趋势 async loadWashStationTrend(projectId: string): Promise { const result = await this.factory.gssApi.get(`/web/projects/${projectId}/washCar/lastDays`); return result; } // 洗车台=======查询历史记录 async loadWashStationHistoryRecord( projectId: string, data: IWashStationHistoryRecordParams ): Promise { const result = await this.factory.gssApi.get( `/web/projects/${projectId}/washCar/listHistory`, data ); return result; } // 夜间施工=======近30天趋势分析 async loadNightConstructionTrend(projectId: string): Promise { const result = await this.factory.gssApi.get( `/web/projects/${projectId}/workNight/workNightRecentLastDays` ); return result; } // 夜间施工=======近30天夜间施工记录 async loadNightConstructionRecord(projectId: string): Promise { const result = await this.factory.gssApi.get( `/web/projects/${projectId}/workNight/last30DayWorkNight` ); return result; } // 夜间施工=======查询历史记录 async loadNightConstructionHistoryRecord( projectId: string, data: ICommonHistoryRecordParams ): Promise { const result = await this.factory.gssApi.get( `/web/projects/${projectId}/workNight/listWorkNightHistory`, data ); return result; } // 渣土遗留=======近30天趋势分析 async loadResidueLegacyTrend(projectId: string): Promise { const result = await this.factory.gssApi.get( `/web/projects/${projectId}/residueLeft/residueLeftBehindLastDays` ); return result; } // 渣土遗留=======近30天渣土遗留报警记录 async loadResidueLegacyRecord(projectId: string): Promise { const result = await this.factory.gssApi.get( `/web/projects/${projectId}/residueLeft/last30DayResidueLeftBehind` ); return result; } // 渣土遗留=======查询历史记录 async loadResidueLegacyHistoryRecord( projectId: string, data: ICommonHistoryRecordParams ): Promise { const result = await this.factory.gssApi.get( `/web/projects/${projectId}/residueLeft/listResidueLeftBehindHistory`, data ); return result; } // 洗车台======当天洗车台报警记录 async loadWashAlarmRecord(projectId: string): Promise { const result = await this.factory.gssApi.get( `/web/projects/${projectId}/washCar/currentDayWashCarAlarm` ); return result; } // 洗车台=======当天洗车记录统计 async loadCarWashRecordStatistics(projectId: string): Promise { const result = await this.factory.gssApi.get( `/web/projects/${projectId}/washCar/currentDayWashCarPercent` ); return result; } // 夜间施工=======夜间施工情况汇总 async loadNighConstructionSun(projectId: string): Promise { const result = await this.factory.gssApi.get( `/web/projects/${projectId}/workNight/currentDayWorkAtNight` ); return result; } // 渣土遗留=======渣土遗留报警情况汇总 async loadResidualSoilAlarmSum(projectId: string): Promise { const result = await this.factory.gssApi.get( `/web/projects/${projectId}/residueLeft/currentDayResidueLeftBehindSumVO` ); return result; } }