| | |
| | | childInfo.setINum(orderDetl.getLength() + ""); |
| | | childInfo.setIinvexchrate(""); |
| | | childInfo.setBFree1(orderDetl.getDeadTime()); |
| | | childInfo.setIPOsID(orderDetl.getId() + ""); |
| | | childInfo.setIPOsID(orderDetl.getSku()); |
| | | childInfo.setCOrderCode(orderDetl.getOrderNo()); |
| | | childInfo.setIvouchrowno(orderDetl.getItemNum()); |
| | | childInfo.setCBatch(""); |
| | | childInfo.setDefine22(orderDetl.getThreeCode()); |
| | | |
| | | paramChild.add(childInfo); |
| | |
| | | .doPost(); |
| | | JSONObject jsonObject = JSON.parseObject(response); |
| | | |
| | | if(Cools.isEmpty(jsonObject.get("errCode"))){ |
| | | throw new CoolException(jsonObject.get("Message").toString()); |
| | | if(Cools.isEmpty(jsonObject.get("succeed"))){ |
| | | throw new CoolException(jsonObject.get("dsc").toString()); |
| | | } |
| | | |
| | | int code = (int) jsonObject.get("errCode"); |
| | | String succeed = jsonObject.get("succeed").toString(); |
| | | |
| | | int code = Cools.eq("0",succeed) ? 0 : 1; |
| | | if(code != 0){ |
| | | throw new CoolException(jsonObject.get("errMsg").toString()); |
| | | throw new CoolException(jsonObject.get("dsc").toString()); |
| | | } |
| | | success = true; |
| | | return code; |