Commit 8486df18 by jianglong

优化fttfcm报文注册

parent 5050b135
......@@ -19,13 +19,13 @@ public class FttfcmDocset extends AbstractTransactionDocSet<FttfcmStoreBo> {
@PostConstruct
public void buildMember() {
buildLetterProvider("fttfcm","FTT3001");
buildLetterProvider("fttfcm","FTT3201","FTT1991","FTT2991");
//扫描Cortype支持,必须要执行
scanDocCortypSupport();
}
public Map<String,Object> buildExtraMapForLetter(FttfcmStoreBo trnbo, DoceotVo doceotVo){
if (MdaUtils.compareTo(doceotVo.getDocnam(),"FTT3001")==0){
if (MdaUtils.compareTo(doceotVo.getDocnam(),"FTT3201")==0){
return buildFtt320l1.build(trnbo,doceotVo);
} else {
return new HashMap<>();
......
......@@ -63,12 +63,15 @@ public class FttfcmDocumentRegister implements IDocumentRegister {
{
case "320":
trndocService.defDocEot (trndoc, "TRN", "320", "\\FTT320L1", "LET", 0, troPtspta.getPts().getPtainr(), "\\FTDGRP\\REC","MT 320", "TRO", "" );
trndocService.setDocSendFormat(trndoc, "TRN320", "SWT", "MT320");
break;
case "199":
trndocService.defDocEot ( trndoc, "TRN", "199", "\\FTT199L1", "LET", 0, troPtspta.getPts().getPtainr(), "\\FTDGRP\\REC", "MT 199", "TRO", "" );
trndocService.setDocSendFormat(trndoc, "TRN199", "SWT", "MT199");
break;
case "299":
trndocService.defDocEot (trndoc, "TRN", "299", "\\FTT299L1", "LET", 0, troPtspta.getPts().getPtainr(), "\\FTDGRP\\REC", "MT 299", "TRO", "" );
trndocService.setDocSendFormat(trndoc, "TRN299", "SWT", "MT299");
break;
}
}
......@@ -78,12 +81,15 @@ public class FttfcmDocumentRegister implements IDocumentRegister {
{
case "320":
trndocService.defDocEot (trndoc, "TRN", "320", "\\FTT320L1", "LET", 0, triPtspta.getPts().getPtainr(), "\\FTDGRP\\REC","MT 320", "TRI", "" );
trndocService.setDocSendFormat(trndoc, "TRN320", "SWT", "MT320");
break;
case "199":
trndocService.defDocEot (trndoc, "TRN", "199", "\\FTT199L1", "LET", 0, triPtspta.getPts().getPtainr(), "\\FTDGRP\\REC", "MT 199", "TRI", "" );
trndocService.setDocSendFormat(trndoc, "TRN199", "SWT", "MT199");
break;
case "299":
trndocService.defDocEot (trndoc, "TRN", "299", "\\FTT299L1", "LET", 0, triPtspta.getPts().getPtainr(), "\\FTDGRP\\REC", "MT 299", "TRI", "" );
trndocService.setDocSendFormat(trndoc, "TRN299", "SWT", "MT299");
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment