Files
obsidian_sycn/工作笔记/归档/集度汽车/工作记录/看板开发/能量流.md
T
2026-07-31 15:28:08 +08:00

7 lines
523 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
1. 使用模式和充电状态时间融合:
1. 先确定为什么有的充电状态结束时间是null,计划填充当日23:59:59
2. 对充电状态的开始和结束时间进行格式化;
3. 将使用模式开始和结束时间,充电状态的开始和结束时间union all;
4. 分别对开始时间和结束时间排序,并用row_number赋予行号rn
5. 将开始时间和结束时间进行left join,条件为 vid相等,且rn相等;
6. 使用lead、lag串行重新配对开始和结束时间;