修改新一代报文返回信息(这个好像是失败了,最终导致40万数据需要重新发送,惨兮兮~~~)
//查考宏网报文返回信息D:\workspeace\ESB\src\com\teamsun\shipping\esb\receive\ShipOrderReceive.java
修改位置:
D:\workspeace\ESB\src\com\teamsun\shippig\inf\jms\forecastclct\JsonManager.java
JsonManager.java
// 添加产品代码
String operationtype = orderVo.getOperationtype() + "";
if ("3".equals(operationtype)) { // e速宝
if (orderVo.getProducttype() == 3) {
OrderNormal.setProduct_type("5320401691");
} else if (orderVo.getProducttype() == 6) {
OrderNormal.setProduct_type("5320401991");
} else if (orderVo.getProducttype() == 4) {
OrderNormal.setProduct_type("5320402691");
} else if (orderVo.getProducttype() == 7) {
OrderNormal.setProduct_type("5320402991");
}
} else if ("1".equals(operationtype)) {// e包裹
OrderNormal.setProduct_type("5310212691");
} else if ("2".equals(operationtype)) { // e特快
OrderNormal.setProduct_type("5310211991");
} else if ("5".equals(operationtype)) {// e经济
OrderNormal.setProduct_type("5310101691");
} else if ("6".equals(operationtype)) {// 挂号小包
OrderNormal.setProduct_type("251600000");
} else if ("7".equals(operationtype)) {// 跟踪小包
OrderNormal.setProduct_type("251600100");
} else if ("8".equals(operationtype)) {// EMS轻小件
OrderNormal.setProduct_type("212105310700991");
} else if ("9".equals(operationtype)) {// 海运EMS
OrderNormal.setProduct_type("212105300000691");
} else { // e邮宝
int i = 0;// 用来标识产品代码
if (orderVo.getUsername().equals("ebay")) {
i = 1;// ebay特殊资费 5310203691
}
if (orderVo.getUsername().equals("alibaba")) {
i = 2;// alili特殊资费 5310216691
}
if (orderVo.getUsername().equals("wish")) {
i = 3;// wish特殊资费 5310215691
}
if (i == 0) {
OrderNormal.setProduct_type("5310201691");
} else if (i == 1) {
OrderNormal.setProduct_type("5310203691");
} else if (i == 2) {
OrderNormal.setProduct_type("5310216691");
} else if (i == 3) {
OrderNormal.setProduct_type("5310215691");
}
}
2018.08.20 设置新一代的返报文信息
最新推荐文章于 2024-06-04 17:07:11 发布