sync oracle metadata and register new ERP scrap tables

This commit is contained in:
egg
2026-02-13 17:52:59 +08:00
parent 248cbc25e0
commit 7cbb155619
6 changed files with 1399 additions and 378 deletions

View File

@@ -38,6 +38,9 @@ DB_CONFIG = {
# MES 表列表(預設清單)
MES_TABLES = [
'DW_MES_LOT_V',
'DW_MES_EQUIPMENTSTATUS_WIP_V',
'DW_MES_SPEC_WORKCENTER_V',
'DW_MES_CONTAINER',
'DW_MES_HOLDRELEASEHISTORY',
'DW_MES_JOB',
@@ -53,7 +56,10 @@ MES_TABLES = [
'DW_MES_HM_LOTMOVEOUT',
'DW_MES_JOBTXNHISTORY',
'DW_MES_LOTMATERIALSHISTORY',
'DW_MES_RESOURCE'
'DW_MES_RESOURCE',
'ERP_WIP_MOVETXN',
'ERP_WIP_MOVETXN_DETAIL',
'ERP_PJ_WIP_SCRAP_REASONS_EXCLUDE',
]
def get_table_schema(cursor, table_name, owner=None):