pqdif进程跳过xml和报告初始化

This commit is contained in:
lnk
2026-07-20 16:29:23 +08:00
parent 86dc51d066
commit 9f74ada894
2 changed files with 37 additions and 20 deletions

View File

@@ -1176,6 +1176,7 @@ void process_ledger_update(trigger_update_xml_t *ledger_update_xml)
//3-写入台账内容/////////////////////////////////// //3-写入台账内容///////////////////////////////////
//4-配置映射文件////////////////////////////// //4-配置映射文件//////////////////////////////
if (g_node_id != PQDIF_DATA_BASE_NODE_ID) {
char model[64] = {0}; char model[64] = {0};
// 获取模型ID检查是否返回 NULL // 获取模型ID检查是否返回 NULL
parse_model_cfg_web_one(ied,&model);//存储在/FeProject/dat/ parse_model_cfg_web_one(ied,&model);//存储在/FeProject/dat/
@@ -1210,6 +1211,11 @@ void process_ledger_update(trigger_update_xml_t *ledger_update_xml)
//5-报告块初始化/////////////////////////////////// //5-报告块初始化///////////////////////////////////
//调试 //调试
}
else {
printf("[PQDIF] skip model xml and report init terminal=%s\n", ied_usr->terminal_id);
}
printf("ledger id: %s\n", ((ied_usr_t*)ied->channel[0].ied->usr_ext)->terminal_id); printf("ledger id: %s\n", ((ied_usr_t*)ied->channel[0].ied->usr_ext)->terminal_id);
//6-init_rem_dib_table////////////////////////////// //6-init_rem_dib_table//////////////////////////////
@@ -1279,6 +1285,7 @@ void process_ledger_update(trigger_update_xml_t *ledger_update_xml)
//3-写入台账内容//////////////////////////////////////////// //3-写入台账内容////////////////////////////////////////////
//4-配置映射文件/////////////////////////////////////////// //4-配置映射文件///////////////////////////////////////////
if (g_node_id != PQDIF_DATA_BASE_NODE_ID) {
char model[64] = {0}; char model[64] = {0};
// 获取模型ID检查是否返回 NULL // 获取模型ID检查是否返回 NULL
parse_model_cfg_web_one(ied,&model);//存储在/FeProject/dat/ parse_model_cfg_web_one(ied,&model);//存储在/FeProject/dat/
@@ -1313,6 +1320,11 @@ void process_ledger_update(trigger_update_xml_t *ledger_update_xml)
parse_rpt_log_ini_one(ied); parse_rpt_log_ini_one(ied);
//5-报告块初始化/////////////////////////////////// //5-报告块初始化///////////////////////////////////
}
else {
printf("[PQDIF] skip model xml and report init terminal=%s\n", ied_usr->terminal_id);
}
//6-init_rem_dib_table////////////////////////////// //6-init_rem_dib_table//////////////////////////////
init_rem_dib_table_one(ied); init_rem_dib_table_one(ied);
//6-init_rem_dib_table/////////////////////////////////// //6-init_rem_dib_table///////////////////////////////////

View File

@@ -205,6 +205,7 @@ apr_status_t init_rdb()
//台账读取过后初始化各级的日志 //台账读取过后初始化各级的日志
init_loggers(); init_loggers();
if (g_node_id != PQDIF_DATA_BASE_NODE_ID) {
rv = parse_model_cfg_web(); rv = parse_model_cfg_web();
if (rv != APR_SUCCESS) {//不可能 if (rv != APR_SUCCESS) {//不可能
echo_errg("Parsed model with error,try to run! \n"); echo_errg("Parsed model with error,try to run! \n");
@@ -228,6 +229,10 @@ apr_status_t init_rdb()
return rv; return rv;
} }
} }
else {
printf("[PQDIF] skip model xml and report init in init_rdb\n");
}
}
if (app_get_private_config(g_my_conf_fname) != APR_SUCCESS) { if (app_get_private_config(g_my_conf_fname) != APR_SUCCESS) {
echo_errg("Failed when processing private configuration\n"); echo_errg("Failed when processing private configuration\n");