feat: 工参按地市和日期入库,先查库再从大数据平台取

即席查询取工参属性,OpenCode 导出当天全市 CGI 和经纬度,按 CGI 合并后存成快照;即席查询失败或 CGI 对不上时改由 OpenCode 一并导出属性。拆除前后的工参日期按库优先、逐月回溯的规则选取,多个任务取同一天时只取一次。即席查询 getTableCount 出错不再被当成 0 行。
This commit is contained in:
2026-11-11 01:57:28 +08:00
parent 2d89d3fcd8
commit b5a59622a1
9 changed files with 1765 additions and 5 deletions
+2
View File
@@ -32,6 +32,8 @@ APP_TABLES = {
"celldata",
"collection_source",
"export_task",
"gongcan_snapshot",
"gongcan_cell",
}
_UNSAFE = re.compile(r"[^0-9A-Za-z_]+")
_CHUNK = 300