diff --git a/CONNOR_ITK/RB_SendErpBom_Rule.cxx b/CONNOR_ITK/RB_SendErpBom_Rule.cxx index 98745f1..29e22f7 100644 --- a/CONNOR_ITK/RB_SendErpBom_Rule.cxx +++ b/CONNOR_ITK/RB_SendErpBom_Rule.cxx @@ -1123,7 +1123,9 @@ int RB_SendErpBom_New_Rule(EPM_rule_message_t msg) for (int i = 0; i < attachments_num; i++) { char* itemType = NULL; + POM_AM__set_application_bypass(true); AOM_ask_value_string(attachments[i], "object_type", &itemType); + POM_AM__set_application_bypass(false); WriteLog("itemType:%s\n", itemType); //过滤掉非版本的对象 diff --git a/CONNOR_ITK/RB_SendErpBom_Rule_Release.cxx b/CONNOR_ITK/RB_SendErpBom_Rule_Release.cxx index f34b64f..c7d4715 100644 --- a/CONNOR_ITK/RB_SendErpBom_Rule_Release.cxx +++ b/CONNOR_ITK/RB_SendErpBom_Rule_Release.cxx @@ -1186,7 +1186,9 @@ int RB_SendErpBom_New_Rule_Release(EPM_rule_message_t msg) for (int i = 0; i < attachments_num; i++) { char* itemType = NULL; + POM_AM__set_application_bypass(true); AOM_ask_value_string(attachments[i], "object_type", &itemType); + POM_AM__set_application_bypass(false); WriteLog("itemType:%s\n", itemType); //过滤掉非版本的对象 diff --git a/CONNOR_ITK/RB_SendErpItem_New_Rule.cxx b/CONNOR_ITK/RB_SendErpItem_New_Rule.cxx index 39abfa9..26d7d65 100644 --- a/CONNOR_ITK/RB_SendErpItem_New_Rule.cxx +++ b/CONNOR_ITK/RB_SendErpItem_New_Rule.cxx @@ -160,7 +160,9 @@ int RB_SendErpItem_New_Rule(EPM_rule_message_t msg) WriteLog("status:%d\n", status); char* itemType = NULL; + POM_AM__set_application_bypass(true); AOM_ask_value_string(attachments[i], "object_type", &itemType); + POM_AM__set_application_bypass(false); WriteLog("itemType:%s\n", itemType); diff --git a/CONNOR_ITK/RB_SendErpItem_New_Rule_Release.cxx b/CONNOR_ITK/RB_SendErpItem_New_Rule_Release.cxx index cd775fe..30bf12b 100644 --- a/CONNOR_ITK/RB_SendErpItem_New_Rule_Release.cxx +++ b/CONNOR_ITK/RB_SendErpItem_New_Rule_Release.cxx @@ -21,7 +21,7 @@ int RB_SendErpItem_New_Rule_Release(EPM_rule_message_t msg) WriteLog("=========================对象下发到ERP Start rule release===================\n"); - //POM_AM__set_application_bypass(true); + int ifail = EPM_go; int attachments_num = 0; tag_t rootTask = NULLTAG, * attachments = NULLTAG; @@ -162,8 +162,9 @@ int RB_SendErpItem_New_Rule_Release(EPM_rule_message_t msg) int status = ConnServer(c_sql_values[1], c_sql_values[2], c_sql_values[0]); WriteLog("status:%d\n", status); char* itemType = NULL; - + POM_AM__set_application_bypass(true); AOM_ask_value_string(attachments[i], "object_type", &itemType); + POM_AM__set_application_bypass(false); WriteLog("itemType:%s\n", itemType); @@ -174,6 +175,7 @@ int RB_SendErpItem_New_Rule_Release(EPM_rule_message_t msg) DOFREE(itemType); continue; } + char* itemId1 = NULL; AOM_ask_value_string(attachments[i], "item_id", &itemId1); WriteLog("itemId1:%s\n", itemId1);