wei.zhou

提交代码

...@@ -13,7 +13,7 @@ public class ApiTest { ...@@ -13,7 +13,7 @@ public class ApiTest {
13 13
14 14
15 public static void main(String[] args) { 15 public static void main(String[] args) {
16 - //{"IEFlag":"E","type":"EX","agentCode":"1111980005","agentName":"联邦快递(中国)有限公司","billNo":"202105210784","contrNo":"NO.565733","customMaster":"0101","cutMode":"101","declTrnRel":"0","distinatePort":"ASM000","ediId":"001","entryId":"25512456","feeCurr":"USD","feeMark":"3","feeRate":100.58,"grossWet":500,"IEPort":"0101","inputerName":"","insurCurr":"MOP","insurMark":"3","insurRate":23.44,"manualNo":"备案号","netWt":80,"otherCurr":"001","otherRate":10,"otherMark":"","ownerCode":"Z321654987","ownerName":"上海保险","packNo":1,"preEntryId":"","tradeCountry":"USA","tradeMode":"0200","tradeCode":"Z321654987","trafMode":"1","tradeName":"上海铢怡国际货物运输代理有限公司","transMode":"3","wrapType":"22","tradeCodeScc":"A74125896321456987","ownerCodeScc":"A74125896321456987","tradeAreaCode":"USA","markNo":"N/M","entyPortCode":"310302","goodsPlace":"","declareName":"张安","overseasConsignorCode":"Z785421","overseasConsigneeCode":"Z785421","overseasConsigneeEname":"出口时必填收件人公司名(原)","mawbDetailList":[{"classMark":"","codeTS":"69125472","declPrice":111.123,"declTotal":788,"dutyMode":"1","exgNo":"","exgVersion":"","firstUnit":"","firstQty":11,"GUnit":"007","GModel":"商品规格、型号","GName":"餐桌","GNo":"1","GQty":1,"originCountry":"USA","secondUnit":"007","secondQty":2,"tradeCurr":"USA","useTo":"","ciqCode":"","destinationCountry":"CHN","declGoodsEname":"","destCode":"","districtCode":"4408W"},{"classMark":"","codeTS":"69125472","declPrice":45.72,"declTotal":33,"dutyMode":"1","exgNo":"","exgVersion":"","firstUnit":"","firstQty":11,"GUnit":"007","GModel":"商品规格、型号","GName":"餐桌","GNo":"2","GQty":22,"originCountry":"USA","secondUnit":"007","secondQty":3,"tradeCurr":"USA","useTo":"","ciqCode":"","destinationCountry":"CHN","declGoodsEname":"","destCode":"","districtCode":"4408W"}]} 16 + //{"IEFlag":"E","type":"EX","agentCode":"1111980005","agentName":"联邦快递(中国)有限公司","billNo":"202105210784","contrNo":"NO.565733","customMaster":"0101","cutMode":"101","declTrnRel":"0","distinatePort":"ASM000","ediId":"001","entryId":"25512456","feeCurr":"USD","feeMark":"3","feeRate":100.58,"grossWet":500,"IEPort":"0101","inputerName":"","insurCurr":"MOP","insurMark":"3","insurRate":23.44,"manualNo":"备案号","netWt":80,"otherCurr":"USD","otherRate":10,"otherMark":"","ownerCode":"Z321654987","ownerName":"上海保险","packNo":1,"preEntryId":"","tradeCountry":"US","tradeMode":"110","tradeCode":"Z321654987","trafMode":"1","tradeName":"上海铢怡国际货物运输代理有限公司","transMode":"3","wrapType":"22","tradeCodeScc":"A74125896321456987","ownerCodeScc":"A74125896321456987","tradeAreaCode":"US","markNo":"N/M","entyPortCode":"310302","goodsPlace":"","declareName":"张安","overseasConsignorCode":"Z785421","overseasConsigneeCode":"Z785421","overseasConsigneeEname":"出口时必填收件人公司名(原)","mawbDetailList":[{"classMark":"","codeTS":"69125472","declPrice":111.123,"declTotal":788,"dutyMode":"1","exgNo":"","exgVersion":"","firstUnit":"","firstQty":11,"GUnit":"007","GModel":"商品规格、型号","GName":"餐桌","GNo":"1","GQty":1,"originCountry":"USA","secondUnit":"007","secondQty":2,"tradeCurr":"USA","useTo":"","ciqCode":"","destinationCountry":"CHN","declGoodsEname":"","destCode":"","districtCode":"4408W"},{"classMark":"","codeTS":"69125472","declPrice":45.72,"declTotal":33,"dutyMode":"1","exgNo":"","exgVersion":"","firstUnit":"","firstQty":11,"GUnit":"007","GModel":"商品规格、型号","GName":"餐桌","GNo":"2","GQty":22,"originCountry":"USA","secondUnit":"007","secondQty":3,"tradeCurr":"USA","useTo":"","ciqCode":"","destinationCountry":"CHN","declGoodsEname":"","destCode":"","districtCode":"4408W"}]}
17 17
18 18
19 MawbDetail d1 = new MawbDetail(); 19 MawbDetail d1 = new MawbDetail();
...@@ -104,15 +104,15 @@ public class ApiTest { ...@@ -104,15 +104,15 @@ public class ApiTest {
104 mawb.setInsurRate(BigDecimal.valueOf(23.44)); 104 mawb.setInsurRate(BigDecimal.valueOf(23.44));
105 mawb.setManualNo("备案号"); 105 mawb.setManualNo("备案号");
106 mawb.setNetWt(BigDecimal.valueOf(80)); 106 mawb.setNetWt(BigDecimal.valueOf(80));
107 - mawb.setOtherCurr("001"); 107 + mawb.setOtherCurr("USD");
108 mawb.setOtherRate(BigDecimal.valueOf(10)); 108 mawb.setOtherRate(BigDecimal.valueOf(10));
109 mawb.setOtherMark(""); 109 mawb.setOtherMark("");
110 mawb.setOwnerCode("Z321654987"); 110 mawb.setOwnerCode("Z321654987");
111 mawb.setOwnerName("上海保险"); 111 mawb.setOwnerName("上海保险");
112 mawb.setPackNo(1); 112 mawb.setPackNo(1);
113 mawb.setPreEntryId(""); 113 mawb.setPreEntryId("");
114 - mawb.setTradeCountry("USA"); 114 + mawb.setTradeCountry("US");
115 - mawb.setTradeMode("0200"); 115 + mawb.setTradeMode("110");
116 mawb.setTradeCode("Z321654987"); 116 mawb.setTradeCode("Z321654987");
117 mawb.setTrafMode("1"); 117 mawb.setTrafMode("1");
118 mawb.setTradeName("上海铢怡国际货物运输代理有限公司"); 118 mawb.setTradeName("上海铢怡国际货物运输代理有限公司");
...@@ -120,7 +120,7 @@ public class ApiTest { ...@@ -120,7 +120,7 @@ public class ApiTest {
120 mawb.setWrapType("22"); 120 mawb.setWrapType("22");
121 mawb.setTradeCodeScc("A74125896321456987"); 121 mawb.setTradeCodeScc("A74125896321456987");
122 mawb.setOwnerCodeScc("A74125896321456987"); 122 mawb.setOwnerCodeScc("A74125896321456987");
123 - mawb.setTradeAreaCode("USA"); 123 + mawb.setTradeAreaCode("US");
124 mawb.setMarkNo("N/M"); 124 mawb.setMarkNo("N/M");
125 mawb.setEntyPortCode("310302"); 125 mawb.setEntyPortCode("310302");
126 mawb.setGoodsPlace(""); 126 mawb.setGoodsPlace("");
......