作者 zhangFan

合并分支 '4.5.version' 到 'master'

部分测试代码



查看合并请求 !1
package com.sy.message.controller;
import org.springframework.stereotype.Controller;
import com.sy.message.freeMarker.FreeMarkerModel;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author
* @time 2019-12-11 10:18
*/
@Controller
@RestController
public class UserController {
@RequestMapping("/getFile")
public void test(){
FreeMarkerModel.createFile();
}
}
... ...
... ... @@ -5,7 +5,10 @@ import com.sy.message.model.*;
import freemarker.template.Configuration;
import freemarker.template.Template;
import freemarker.template.TemplateException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import java.io.*;
import java.util.*;
... ... @@ -13,9 +16,20 @@ import java.util.*;
* @author
* @time 2019-12-11 10:24
*/
@Component
public class FreeMarkerModel {
public static void main(String[] args) {
private static FreeMarkerModel freeMarkerModel;
@Autowired
private Configuration freemakerTemplate;
@PostConstruct
private void init(){
freeMarkerModel = this;
freeMarkerModel.freemakerTemplate = this.freemakerTemplate;
}
public static void createFile() {
FreeMarkerModel freeMarkerModel = new FreeMarkerModel();
Map map = new HashMap();
... ... @@ -67,7 +81,7 @@ public class FreeMarkerModel {
try {
File file = new File("e:/user.xml");
BufferedWriter o = new BufferedWriter(new FileWriter(file));
o.write(freeMarkerModel.freeMarkerFile("/com/sy/message/templates/outlineDeclaration.ftl","utf-8",map));
o.write(freeMarkerModel.freeMarkerFile("outlineDeclaration.ftl","utf-8",map));
// o.write(freeMarkerModel.freeMarkerFile("/com/sy/message/templates/user.ftl","utf-8",map));
o.flush();
o.close();
... ... @@ -83,16 +97,15 @@ public class FreeMarkerModel {
Template t = null;
String result= "";
try {
cfg.setDirectoryForTemplateLoading(new File("E:/java/workspace/custom-unified-declaration/src/main/java"));
t = cfg.getTemplate(fileName);
// cfg.setDirectoryForTemplateLoading(new File("E:/java/workspace/custom-unified-declaration/src/main/java"));
t = freeMarkerModel.freemakerTemplate.getTemplate(fileName);
t.setEncoding(encode);
StringWriter stringWriter = new StringWriter();
t.process(data,stringWriter);
result = stringWriter.toString();
System.out.println(result);
}catch (TemplateException e){
e.printStackTrace();
}catch (IOException e){
}catch (IOException e){
e.printStackTrace();
}
... ...
... ... @@ -29,6 +29,7 @@
<InsurMark>${decHeadType.insurMark!}</InsurMark>
<InsurRate>${decHeadType.insurRate!}</InsurRate>
<LicenseNo>${decHeadType.licenseNo!}</LicenseNo>
<ManualNo>${decHeadType.manualNo!}</ManualNo>
<NetWt>${decHeadType.netWt!}</NetWt>
<NoteS>${decHeadType.noteS!}</NoteS>
<OtherMark>${decHeadType.otherMark!}</OtherMark>
... ... @@ -61,7 +62,8 @@
<CheckFlow>${decHeadType.checkFlow!}</CheckFlow>
<TaxAaminMark>${decHeadType.taxAaminMark!}</TaxAaminMark>
<MarkNo>${decHeadType.markNo!}</MarkNo>
<DespPortCode>${decHeadType.despPortCode!}</DespPortCode>
<#--<DespPortCode>${decHeadType.despPortCode!}</DespPortCode>-->
<EntyPortCode>${decHeadType.entyPortCode!}</EntyPortCode>
<GoodsPlace>${decHeadType.goodsPlace!}</GoodsPlace>
<BLNo>${decHeadType.blNo!}</BLNo>
<InspOrgCode>${decHeadType.inspOrgCode!}</InspOrgCode>
... ...
<?xml version="1.0" encoding="UTF-8"?>
<DecMessage Version="4.4" xmlns="http://www.chinaport.gov.cn/dec">
<DecHead>
<SeqNo></SeqNo>
// <IEFlag>I</IEFlag>
// <Type></Type>
// <AgentCode>1108919038</AgentCode>
// <AgentName>联邦快递(中国)有限公司上海分公司</AgentName>
// <ApprNo></ApprNo>
<BillNo>123</BillNo>
// <ContrNo></ContrNo>
<CustomMaster>0106</CustomMaster>
// <CutMode></CutMode>
// <FeeMark>1</FeeMark>
// <FeeRate>0.0001</FeeRate>
// <GrossWet>39</GrossWet>
<IEDate>20170505</IEDate>
<IEPort>2201</IEPort>
// <FeeCurr>CNY</FeeCurr>
// <InsurCurr>CNY</InsurCurr>
// <OtherCurr>CNY</OtherCurr>
// <DistinatePort>991101</DistinatePort>
// <TradeCountry>CHN</TradeCountry>
<TradeMode>0110</TradeMode>
<TrafMode>0</TrafMode>
// <WrapType>22</WrapType>
// <TradeAreaCode>CHN</TradeAreaCode>
// <DespPortCode>991101</DespPortCode>
// <InsurMark>1</InsurMark>
// <InsurRate>0.0001</InsurRate>
<LicenseNo>66-77-888899</LicenseNo>
// <ManualNo>A00000000000</ManualNo>
// <NetWt>17</NetWt>
<NoteS>@0942082218500030,221820091189125944</NoteS>
// <OtherMark>1</OtherMark>
// <OtherRate>0.0001</OtherRate>
<OwnerCode>3302968CPP</OwnerCode>
<OwnerName>宁波金鸡强磁股份有限公司</OwnerName>
// <PackNo>12</PackNo>
<TradeCode>3302968CPP</TradeCode>
<TradeName>宁波金鸡强磁股份有限公司</TradeName>
<TrafName>aaaaaaaaaaaaaaaaaaaaaaaaaa</TrafName>
// <TransMode>1</TransMode>
<EntryId></EntryId>
// <PreEntryId></PreEntryId>
// <EdiId>1</EdiId>
// <Risk>risk1111</Risk>
// <CopName>宁波金鸡强磁股份有限公司</CopName>
// <CopCode>101115245</CopCode>
// <EntryType>M</EntryType>
<PDate></PDate>
// <TypistNo>8950000038782</TypistNo>
// <InputerName>李四</InputerName>
// <PartenerID></PartenerID>
// <TgdNo></TgdNo>
// <DataSource></DataSource>
// <BillType></BillType>
// <DeclTrnRel>0</DeclTrnRel>
// <ChkSurety>0</ChkSurety>
// <CopCodeScc></CopCodeScc>
// <PromiseItmes>111</PromiseItmes>
// <CheckFlow></CheckFlow>
// <TaxAaminMark></TaxAaminMark>
// <MarkNo>21</MarkNo>
<EntyPortCode>210702</EntyPortCode>
// <GoodsPlace>1111</GoodsPlace>
<BLNo>BlNo</BLNo>
// <InspOrgCode>000000</InspOrgCode>
// <SpecDeclFlag></SpecDeclFlag>
// <PurpOrgCode></PurpOrgCode>
// <DespDate></DespDate>
// <CmplDschrgDt></CmplDschrgDt>
// <CorrelationReasonFlag></CorrelationReasonFlag>
// <VsaOrgCode>110009</VsaOrgCode>
// <OrigBoxFlag></OrigBoxFlag>
// <DeclareName>报关员姓名AAA</DeclareName>
// <NoOtherPack>1</NoOtherPack>
// <OrgCode>110000</OrgCode>
<OverseasConsignorCode>1108919038</OverseasConsignorCode>
<OverseasConsignorCname>OverseasConsignorCname</OverseasConsignorCname>
<OverseasConsignorEname>OverseasConsignorEname</OverseasConsignorEname>
<OverseasConsignorAddr>OverseasConsignorAddr</OverseasConsignorAddr>
<OverseasConsigneeCode>1108919038</OverseasConsigneeCode>
<OverseasConsigneeEname>OverseasConsigneeEname</OverseasConsigneeEname>
<DomesticConsigneeEname>DomesticConsigneeEname</DomesticConsigneeEname>
// <CorrelationNo></CorrelationNo>
// <EdiRemark2></EdiRemark2>
// <EdiRemark></EdiRemark>
</DecHead>
<DecLists>
<DecList>
<ClassMark></ClassMark>
<CodeTS>2001100000</CodeTS>
<ContrItem></ContrItem>
<DeclPrice>22</DeclPrice>
// <DutyMode>1</DutyMode>
<Factor></Factor>
// <GModel>1|1|1</GModel>
<GName>用醋或醋酸制作的黄瓜及小黄瓜</GName>
// <GNo>1</GNo>
<TradeCurr>CNY</TradeCurr>
<OriginCountry>CHN</OriginCountry>
// <DestinationCountry>CHN</DestinationCountry>
<DeclTotal>2706</DeclTotal>
<GQty>123</GQty>
<FirstQty>123</FirstQty>
<SecondQty></SecondQty>
<GUnit>035</GUnit>
<FirstUnit>035</FirstUnit>
<SecondUnit></SecondUnit>
/ <UseTo>01</UseTo>
<WorkUsd></WorkUsd>
// <ExgNo>111</ExgNo>
// <ExgVersion>1</ExgVersion>
// <CiqCode>100</CiqCode>
<DeclGoodsEname></DeclGoodsEname>
// <OrigPlaceCode>100</OrigPlaceCode>
/ <Purpose>12</Purpose>
<ProdValidDt></ProdValidDt>
<ProdQgp></ProdQgp>
<GoodsAttr></GoodsAttr>
<Stuff></Stuff>
<Uncode></Uncode>
<DangName></DangName>
<DangPackType></DangPackType>
<DangPackSpec></DangPackSpec>
<EngManEntCnm></EngManEntCnm>
<NoDangFlag></NoDangFlag>
<DestCode></DestCode>
<GoodsSpec></GoodsSpec>
<GoodsModel></GoodsModel>
<GoodsBrand></GoodsBrand>
<ProduceDate></ProduceDate>
<ProdBatchNo></ProdBatchNo>
// <DistrictCode>37065</DistrictCode>
<CiqName>鲁赛尔城堡干红葡萄酒</CiqName>
// <DecGoodsLimits>
<DecGoodsLimit>
<GoodsNo>1</GoodsNo>
<LicTypeCode>325</LicTypeCode>
<LicenceNo>112</LicenceNo>
<LicWrtofDetailNo>11</LicWrtofDetailNo>
<LicWrtofQty>11.00000</LicWrtofQty>
<DecGoodsLimitVin>
<LicenceNo>112</LicenceNo>
<LicTypeCode>325</LicTypeCode>
<VinNo>123</VinNo>
<BillLadDate>2018-06-16 00:00:00</BillLadDate>
<QualityQgp>20200616</QualityQgp>
<MotorNo>123</MotorNo>
<VinCode>123</VinCode>
<ChassisNo>123</ChassisNo>
<InvoiceNum>11.12345</InvoiceNum>
<ProdCnnm>ProdCnnm</ProdCnnm>
<ProdEnnm>ProdEnnm</ProdEnnm>
<ModelEn>ModelEn</ModelEn>
<PricePerUnit>12312</PricePerUnit>
</DecGoodsLimitVin>
</DecGoodsLimit>
// </DecGoodsLimits>
</DecList>
</DecLists>
<DecContainers>
<Container>
<ContainerId>CBHU3202732</ContainerId>
<ContainerMd>13</ContainerMd>
<GoodsNo>1</GoodsNo>
<LclFlag>0</LclFlag>
<GoodsContaWt>123.123</GoodsContaWt>
</Container>
</DecContainers>
<DecLicenseDocus>
<LicenseDocu>
<DocuCode>Y</DocuCode>
<CertCode>&lt;14&gt;I2017-0166475</CertCode>
</LicenseDocu>
</DecLicenseDocus>
// <DecRequestCerts>
<DecRequestCert>
<AppCertCode>14</AppCertCode>
<ApplOri>5</ApplOri>
<ApplCopyQuan>6</ApplCopyQuan>
</DecRequestCert>
// </DecRequestCerts>
// <DecCopLimits>
<DecCopLimit>
<EntQualifNo>5A</EntQualifNo>
<EntQualifTypeCode>300</EntQualifTypeCode>
</DecCopLimit>
// </DecCopLimits>
// <DecUsers>
<DecUser>
<UseOrgPersonCode>联系人张三</UseOrgPersonCode>
<UseOrgPersonTel>021-12300009</UseOrgPersonTel>
</DecUser>
// </DecUsers>
// <DecOtherPacks>
<DecOtherPack>
<PackQty>12.343</PackQty>
<PackType>23</PackType>
</DecOtherPack>
// </DecOtherPacks>
// <DecMarkLobs>
<DecMarkLob>
<AttachName>测试123.pdf</AttachName>
<AttachType>11</AttachType>
<Attachment>41394644363445313243</Attachment>
</DecMarkLob>
// </DecMarkLobs>
// <DecFreeTxt>
<RelId></RelId>
<RelManNo></RelManNo>
<BonNo>222</BonNo>
<VoyNo></VoyNo>
<DecBpNo>111</DecBpNo>
<CusFie></CusFie>
<DecNo>22100590</DecNo>
// </DecFreeTxt>
// <DecSign>
<OperType>G</OperType>
<ICCode>8950000038782</ICCode>
<CopCode></CopCode>
<OperName>张三</OperName>
<ClientSeqNo>decnew201807020010</ClientSeqNo>
<Sign></Sign>
<SignDate>2017112420303295</SignDate>
<Certificate>29b5</Certificate>
<HostId>SWS0000000001</HostId>
<BillSeqNo>decnew201807020010</BillSeqNo>
<DomainId>1</DomainId>
<Note>备注111</Note>
// </DecSign>
// <EdocRealation>
<EdocID>decnew201807020010.pdf</EdocID>
<EdocCode>00000001</EdocCode>
<EdocFomatType>US</EdocFomatType>
<OpNote>3.1随附单据上传TCS</OpNote>
<EdocCopId>003.pdf</EdocCopId>
<EdocOwnerCode>1105910159</EdocOwnerCode>
<SignUnit>1105910311</SignUnit>
<SignTime>20170809 01:01:01</SignTime>
<EdocOwnerName>战狼中队</EdocOwnerName>
<EdocSize>1356</EdocSize>
//</EdocRealation>
// <DecRisk>
<Risk>111</Risk>
<Sign></Sign>
<SignDate></SignDate>
<Note>risk note111</Note>
// </DecRisk>
</DecMessage>
... ...
<?xml version="1.0" encoding="UTF-8"?>
<DecMessage Version="4.4" xmlns="http://www.chinaport.gov.cn/dec">
<DecHead>
<SeqNo></SeqNo>
<IEFlag>${decHeadType.ieFlag!}</IEFlag>
<Type>${decHeadType.type!}</Type>
<AgentCode>${decHeadType.agentCode!}</AgentCode>
<AgentName>${decHeadType.agentName!}</AgentName>
<ApprNo>${decHeadType.apprNo!}</ApprNo>
<BillNo>${decHeadType.billNo!}</BillNo>
<ContrNo>${decHeadType.contrNo!}</ContrNo>
<CustomMaster>${decHeadType.copCode!}</CustomMaster>
<CutMode>${decHeadType.cutMode!}</CutMode>
<FeeMark>${decHeadType.feeMark!}</FeeMark>
<FeeRate>${decHeadType.feeRate!}</FeeRate>
<GrossWet>${decHeadType.grossWt!}</GrossWet>
<IEDate>${decHeadType.ieDate!}</IEDate>
<IEPort>${decHeadType.iePort!}</IEPort>
<FeeCurr>${decHeadType.feeCurr!}</FeeCurr>
<InsurCurr>${decHeadType.insurCurr!}</InsurCurr>
<OtherCurr>${decHeadType.otherCurr!}</OtherCurr>
<DistinatePort>${decHeadType.distinatePort!}</DistinatePort>
<TradeCountry>${decHeadType.tradeCountry!}</TradeCountry>
<TradeMode>${decHeadType.tradeMode!}</TradeMode>
<TrafMode>${decHeadType.trafMode!}</TrafMode>
<WrapType>${decHeadType.wrapType!}</WrapType>
<TradeAreaCode>${decHeadType.tradeAreaCode!}</TradeAreaCode>
<DespPortCode>${decHeadType.despPortCode!}</DespPortCode>
<InsurMark>${decHeadType.insurMark!}</InsurMark>
<InsurRate>${decHeadType.insurRate!}</InsurRate>
<LicenseNo>${decHeadType.licenseNo!}</LicenseNo>
<ManualNo>${decHeadType.manualNo!}</ManualNo>
<NetWt>${decHeadType.netWt!}</NetWt>
<NoteS>${decHeadType.noteS!}</NoteS>
<OtherMark>${decHeadType.otherMark!}</OtherMark>
<OtherRate>${decHeadType.otherRate!}</OtherRate>
<OwnerCode>${decHeadType.ownerCode!}</OwnerCode>
<OwnerName>${decHeadType.ownerName!}</OwnerName>
<PackNo>${decHeadType.packNo!}</PackNo>
<TradeMode>${decHeadType.tradeMode!}</TradeMode>
<TrafMode>${decHeadType.trafMode!}</TrafMode>
<TrafName>${decHeadType.trafName!}</TrafName>
<TransMode>${decHeadType.transMode!}</TransMode>
<EntryId>${decHeadType.entryId!}</EntryId>
<PreEntryId>${decHeadType.preEntryId!}</PreEntryId>
<EdiId>${decHeadType.ediId!}</EdiId>
<Risk>${decHeadType.risk!}</Risk>
<CopName>${decHeadType.copName!}</CopName>
<CopCode>${decHeadType.copCode!}</CopCode>
<EntryType>${decHeadType.entryType!}</EntryType>
<PDate>${decHeadType.pDate!}</PDate>
<TypistNo>${decHeadType.typistNo!}</TypistNo>
<InputerName>${decHeadType.inputerName!}</InputerName>
<PartenerID>${decHeadType.partenerID!}</PartenerID>
<TgdNo>${decHeadType.tgdNo!}</TgdNo>
<DataSource>${decHeadType.dataSource!}</DataSource>
<BillType>${decHeadType.billType!}</BillType>
<DeclTrnRel>${decHeadType.declTrnRel!}</DeclTrnRel>
<ChkSurety>${decHeadType.chkSurety!}</ChkSurety>
<CopCodeScc>${decHeadType.copCodeScc!}</CopCodeScc>
<PromiseItmes>${decHeadType.promiseItmes!}</PromiseItmes>
<CheckFlow>${decHeadType.checkFlow!}</CheckFlow>
<TaxAaminMark>${decHeadType.taxAaminMark!}</TaxAaminMark>
<MarkNo>${decHeadType.markNo!}</MarkNo>
<#--<DespPortCode>${decHeadType.despPortCode!}</DespPortCode>-->
<EntyPortCode>${decHeadType.entyPortCode!}</EntyPortCode>
<GoodsPlace>${decHeadType.goodsPlace!}</GoodsPlace>
<BLNo>${decHeadType.blNo!}</BLNo>
<InspOrgCode>${decHeadType.inspOrgCode!}</InspOrgCode>
<SpecDeclFlag>${decHeadType.specDeclFlag!}</SpecDeclFlag>
<PurpOrgCode>${decHeadType.purpOrgCode!}</PurpOrgCode>
<DespDate>${decHeadType.despDate!}</DespDate>
<CmplDschrgDt>${decHeadType.cmplDschrgDt!}</CmplDschrgDt>
<CorrelationReasonFlag>${decHeadType.correlationReasonFlag!}</CorrelationReasonFlag>
<VsaOrgCode>${decHeadType.vsaOrgCode!}</VsaOrgCode>
<OrigBoxFlag>${decHeadType.origBoxFlag!}</OrigBoxFlag>
<DeclareName>${decHeadType.declareName!}</DeclareName>
<NoOtherPack>${decHeadType.noOtherPack!}</NoOtherPack>
<OrgCode>${decHeadType.orgCode!}</OrgCode>
<OverseasConsignorCode>${decHeadType.overseasConsignorCode!}</OverseasConsignorCode>
<OverseasConsignorCname>${decHeadType.overseasConsignorCname!}</OverseasConsignorCname>
<OverseasConsignorEname>${decHeadType.overseasConsignorEname!}</OverseasConsignorEname>
<OverseasConsignorAddr>${decHeadType.overseasConsignorAddr!}</OverseasConsignorAddr>
<OverseasConsigneeCode>${decHeadType.overseasConsigneeCode!}</OverseasConsigneeCode>
<OverseasConsigneeEname>${decHeadType.overseasConsigneeEname!}</OverseasConsigneeEname>
<DomesticConsigneeEname>${decHeadType.domesticConsigneeEname!}</DomesticConsigneeEname>
<CorrelationNo>${decHeadType.correlationNo!}</CorrelationNo>
<EdiRemark2>${decHeadType.ediRemark2!}</EdiRemark2>
<EdiRemark>${decHeadType.ediRemark!}</EdiRemark>
</DecHead>
<#if decList??>
<DecLists>
<#list decList as dec>
<#if dec??>
<DecList>
<ClassMark>${dec.classMark!}</ClassMark>
<CodeTS>${dec.codeTS!}</CodeTS>
<ContrItem>${dec.contrItem!}</ContrItem>
<DeclPrice>${dec.declPrice!}</DeclPrice>
<DutyMode>${dec.dutyMode!}</DutyMode>
<Factor>${dec.factor!}</Factor>
<GModel>${dec.gModel!}</GModel>
<GName>${dec.gName!}</GName>
<GNo>${dec.gNo!}</GNo>
<TradeCurr>${dec.tradeCurr!}</TradeCurr>
<OriginCountry>${dec.originCountry!}</OriginCountry>
<DestinationCountry>${dec.destinationCountry!}</DestinationCountry>
<DeclTotal>${dec.declTotal!}</DeclTotal>
<GQty>${dec.gQty!}</GQty>
<FirstQty>${dec.firstQty!}</FirstQty>
<SecondQty>${dec.secondQty!}</SecondQty>
<GUnit>${dec.gUnit!}</GUnit>
<FirstUnit>${dec.firstUnit!}</FirstUnit>
<SecondUnit>${dec.secondUnit!}</SecondUnit>
<UseTo>${dec.useTo!}</UseTo>
<WorkUsd>${dec.workUsd!}</WorkUsd>
<ExgNo>${dec.exgNo!}</ExgNo>
<ExgVersion>${dec.exgVersion!}</ExgVersion>
<CiqCode>${dec.ciqCode!}</CiqCode>
<DeclGoodsEname>${dec.declGoodsEname!}</DeclGoodsEname>
<OrigPlaceCode>${dec.origPlaceCode!}</OrigPlaceCode>
<Purpose>${dec.purpose!}</Purpose>
<ProdValidDt>${dec.prodValidDt!}</ProdValidDt>
<ProdQgp>${dec.prodQgp!}</ProdQgp>
<GoodsAttr>${dec.goodsAttr!}</GoodsAttr>
<Stuff>${dec.stuff!}</Stuff>
<Uncode>${dec.uncode!}</Uncode>
<DangName>${dec.dangName!}</DangName>
<DangPackType>${dec.dangPackType!}</DangPackType>
<DangPackSpec>${dec.dangPackSpec!}</DangPackSpec>
<EngManEntCnm>${dec.engManEntCnm!}</EngManEntCnm>
<NoDangFlag>${dec.noDangFlag!}</NoDangFlag>
<DestCode>${dec.destCode!}</DestCode>
<GoodsSpec>${dec.goodsSpec!}</GoodsSpec>
<GoodsModel>${dec.goodsModel!}</GoodsModel>
<GoodsBrand>${dec.goodsBrand!}</GoodsBrand>
<ProduceDate>${dec.produceDate!}</ProduceDate>
<ProdBatchNo>${dec.prodBatchNo!}</ProdBatchNo>
<DistrictCode>${dec.districtCode!}</DistrictCode>
<CiqName>${dec.ciqName!}</CiqName>
<DecGoodsLimits>
<#list dec.decGoodsLimits.decGoodsLimit as decGoodsLimit>
<DecGoodsLimit>
<GoodsNo>${decGoodsLimit.goodsNo!}</GoodsNo>
<LicTypeCode>${decGoodsLimit.licTypeCode!}</LicTypeCode>
<LicenceNo>${decGoodsLimit.licenceNo!}</LicenceNo>
<LicWrtofDetailNo>${decGoodsLimit.licWrtofDetailNo!}</LicWrtofDetailNo>
<LicWrtofQty>${decGoodsLimit.licWrtofQty!}</LicWrtofQty>
<#if decGoodsLimit.decGoodsLimitVin ??>
<#list decGoodsLimit.decGoodsLimitVin as decGoodsLimitVin>
<DecGoodsLimitVin>
<LicenceNo>${decGoodsLimitVin.licenceNo!}</LicenceNo>
<LicTypeCode>${decGoodsLimitVin.licTypeCode!}</LicTypeCode>
<VinNo>${decGoodsLimitVin.vinNo!}</VinNo>
<BillLadDate>${decGoodsLimitVin.billLadDate!}</BillLadDate>
<QualityQgp>${decGoodsLimitVin.qualityQgp!}</QualityQgp>
<MotorNo>${decGoodsLimitVin.motorNo!}</MotorNo>
<VinCode>${decGoodsLimitVin.vinCode!}</VinCode>
<ChassisNo>${decGoodsLimitVin.chassisNo!}</ChassisNo>
<InvoiceNum>${decGoodsLimitVin.invoiceNum!}</InvoiceNum>
<ProdCnnm>${decGoodsLimitVin.prodCnnm!}</ProdCnnm>
<ProdEnnm>${decGoodsLimitVin.prodEnnm!}</ProdEnnm>
<ModelEn>${decGoodsLimitVin.modelEn!}</ModelEn>
<PricePerUnit>${decGoodsLimitVin.pricePerUnit!}</PricePerUnit>
</DecGoodsLimitVin>
</#list>
</#if>
</DecGoodsLimit>
</#list>
</DecGoodsLimits>
</DecList>
</#if>
</#list>
</DecLists>
</#if>
<#if decContainers??>
<DecContainers>
<#list decContainers as container>
<Container>
<ContainerId>${container.containerId!}</ContainerId>
<ContainerMd>${container.containerMd!}</ContainerMd>
<GoodsNo>${container.goodsNo!}</GoodsNo>
<LclFlag>${container.lclFlag!}</LclFlag>
<GoodsContaWt>${container.goodsContaWt!}</GoodsContaWt>
</Container>
</#list>
</DecContainers>
</#if>
<#if decLicenseDocus??>
<DecLicenseDocus>
<#list decLicenseDocus as licenseDocu>
<LicenseDocu>
<DocuCode>${licenseDocu.docuCode!}</DocuCode>
<CertCode>${licenseDocu.certCode!}</CertCode>
</LicenseDocu>
</#list>
</DecLicenseDocus>
</#if>
<#if decRequestCerts??>
<DecRequestCerts>
<#list decRequestCerts as decRequestCert >
<DecRequestCert>
<AppCertCode>${decRequestCert.appCertCode!}</AppCertCode>
<ApplOri>${decRequestCert.applOri!}</ApplOri>
<ApplCopyQuan>${decRequestCert.applCopyQuan!}</ApplCopyQuan>
</DecRequestCert>
</#list>
</DecRequestCerts>
</#if>
<#if decCopLimits??>
<DecCopLimits>
<#list decCopLimits as decCopLimit>
<DecCopLimit>
<EntQualifNo>${decCopLimit.entQualifNo!}</EntQualifNo>
<EntQualifTypeCode>${decCopLimit.entQualifTypeCode!}</EntQualifTypeCode>
</DecCopLimit>
</#list>
</DecCopLimits>
</#if>
<#if decUsers??>
<DecUsers>
<#list decUsers as decUser>
<DecUser>
<UseOrgPersonCode>${decUser.useOrgPersonCode!}</UseOrgPersonCode>
<UseOrgPersonTel>${decUser.useOrgPersonTel!}</UseOrgPersonTel>
</DecUser>
</#list>
</DecUsers>
</#if>
<#if decOtherPacks??>
<DecOtherPacks>
<#list decOtherPacks as decOtherPack>
<DecOtherPack>
<PackQty>${decOtherPack.packQty!}</PackQty>
<PackType>${decOtherPack.packType!}</PackType>
</DecOtherPack>
</#list>
</DecOtherPacks>
</#if>
<#if decMarkLobs??>
<DecMarkLobs>
<#list decMarkLobs as decMarkLob >
<DecMarkLob>
<AttachName>${decMarkLob.attachName!}</AttachName>
<AttachType>${decMarkLob.attachType!}</AttachType>
<Attachment>${decMarkLob.attachment!}</Attachment>
</DecMarkLob>
</#list>
</DecMarkLobs>
</#if>
<#if decFreeTxt?? >
<DecFreeTxt>
<RelId>${decFreeTxt.relId!}</RelId>
<RelManNo>${decFreeTxt.relManNo!}</RelManNo>
<BonNo>${decFreeTxt.bonNo!}</BonNo>
<VoyNo>${decFreeTxt.voyNo!}</VoyNo>
<DecBpNo>${decFreeTxt.decBpNo!}</DecBpNo>
<CusFie>${decFreeTxt.cusFie!}</CusFie>
<DecNo>${decFreeTxt.decNo!}</DecNo>
</DecFreeTxt>
</#if>
<#if decSign??>
<DecSign>
<OperType>${decSign.operType!}</OperType>
<ICCode>${decSign.icCode!}</ICCode>
<CopCode>${decSign.copCode!}</CopCode>
<OperName>${decSign.operName!}</OperName>
<ClientSeqNo>${decSign.vlientSeqNo!}</ClientSeqNo>
<Sign>${decSign.sign!}</Sign>
<SignDate>${decSign.signDate!}</SignDate>
<Certificate>${decSign.certificate!}</Certificate>
<HostId>${decSign.hostId!}</HostId>
<BillSeqNo>${decSign.billSeqNo!}</BillSeqNo>
<DomainId>${decSign.domainId!}</DomainId>
<Note>${decSign.note!}</Note>
</DecSign>
</#if>
<#if edocRealation??>
<EdocRealation>
<EdocID>${edocRealation.edocID!}</EdocID>
<EdocCode>${edocRealation.edocCode!}</EdocCode>
<EdocFomatType>${edocRealation.edocFomatType!}</EdocFomatType>
<OpNote>${edocRealation.opNote!}</OpNote>
<EdocCopId>${edocRealation.edocCopId!}</EdocCopId>
<EdocOwnerCode>${edocRealation.edocOwnerCode!}</EdocOwnerCode>
<SignUnit>${edocRealation.signUnit!}</SignUnit>
<SignTime>${edocRealation.signTime!}</SignTime>
<EdocOwnerName>${edocRealation.edocOwnerName!}</EdocOwnerName>
<EdocSize>${edocRealation.edocSize!}</EdocSize>
</EdocRealation>
</#if>
<#if decRisk??>
<DecRisk>
<Risk>${decRisk.risk!}</Risk>
<Sign>${decRisk.sign!}</Sign>
<SignDate>${decRisk.signDate!}</SignDate>
<Note>${decRisk.note!}</Note>
</DecRisk>
</#if>
</DecMessage>
... ...