diff --git a/HEZON_ITK/bs_sap.cpp b/HEZON_ITK/bs_sap.cpp index abced68..d31e49a 100644 --- a/HEZON_ITK/bs_sap.cpp +++ b/HEZON_ITK/bs_sap.cpp @@ -176,7 +176,7 @@ void get_bom(System::Collections::Generic::List 0 ? pid : id; int index = pid.find('-'); if (index != -1) - pid = pid.substr(index + 1); + pid = pid.substr(0,index); } for (int j = 0; j < line_cnt; j++) { System::Collections::Generic::Dictionary ^dic = gcnew System::Collections::Generic::Dictionary();