송신에 del.string 적용
This commit is contained in:
@@ -258,6 +258,23 @@ public class RemoteTransfer {
|
|||||||
|
|
||||||
if (bizCodeStartIndex <= 0 || bizCodeStartIndex >= localFileName.length()) bizCodeStartIndex = 0;
|
if (bizCodeStartIndex <= 0 || bizCodeStartIndex >= localFileName.length()) bizCodeStartIndex = 0;
|
||||||
if (bizCodeEndIndex <= 0 || bizCodeEndIndex > localFileName.length()) bizCodeEndIndex = localFileName.length();
|
if (bizCodeEndIndex <= 0 || bizCodeEndIndex > localFileName.length()) bizCodeEndIndex = localFileName.length();
|
||||||
|
|
||||||
|
// 거래 구분 코드 길이가 가변인 경우( END INDEX가 0인 경우) 20260206
|
||||||
|
if ( organInfo.getBizCdEndIdx() == 0 ){
|
||||||
|
String delStr = null;
|
||||||
|
try {
|
||||||
|
Properties orgInfo = PropManager.getInstance().getProperties(
|
||||||
|
"TelegramInfo{" + procCode + "_" + instCode + "}");
|
||||||
|
delStr = orgInfo.getProperty( "del.string" );
|
||||||
|
if ( delStr != null && !delStr.trim().equals("")){
|
||||||
|
int delIndex = fileName.indexOf(delStr);
|
||||||
|
if ( delIndex > -1 ) {
|
||||||
|
bizCodeEndIndex = delIndex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}catch( Exception e) {}
|
||||||
|
}
|
||||||
|
|
||||||
String bizCode = localFileName.substring(bizCodeStartIndex, bizCodeEndIndex);
|
String bizCode = localFileName.substring(bizCodeStartIndex, bizCodeEndIndex);
|
||||||
|
|
||||||
loginfo.setBjobMsgDstcd(bizCode);
|
loginfo.setBjobMsgDstcd(bizCode);
|
||||||
|
|||||||
Reference in New Issue
Block a user