| | |
| | | List<ShopLogisticsInfo> shopLogisticsList = new ArrayList<ShopLogisticsInfo>(); |
| | | AjaxResult result = new AjaxResult(); |
| | | Map<String, String> logisticsInfo = new HashMap<String, String>(); |
| | | try { |
| | | |
| | | if (shopDeliveryInfo == null) { |
| | | return new AjaxResult(AjaxResult.STATUS_FAIL, "找不到发货信息"); |
| | | } |
| | |
| | | shopLogisticsInfoDao.batchInsert(shopLogisticsList); |
| | | } |
| | | } |
| | | } else { |
| | | throw new GlobleException(logisticsInfoVo.getReason()); |
| | | } |
| | | |
| | | } catch (Exception e) { |
| | | throw new GlobleException("物流信息查询失败"); |
| | | } |
| | | |
| | | List<ShopLogisticsInfo> shopLogisticsInfos = shopLogisticsInfoDao.selectByDelieryId(shopDeliveryInfo.getId()); |
| | | result.setStatus(AjaxResult.STATUS_SUCCESS); |
| | | result.setRows(shopLogisticsInfos); |
| | |
| | | * @param map |
| | | * @return |
| | | */ |
| | | private Map<String, String> getparams(Map<String, String> map) throws Exception { |
| | | private Map<String, String> getparams(Map<String, String> map) { |
| | | String params = JSON.toJSONString(map); |
| | | Map<String, String> paramsUrl = new HashMap<String, String>(); |
| | | try { |
| | | paramsUrl.put("RequestData", URLEncoder.encode(params, "UTF-8")); |
| | | paramsUrl.put("EBusinessID", eBusinessID); |
| | | paramsUrl.put("RequestType", requestType); |
| | | String dataSign = encrypt(params, appKey, "UTF-8"); |
| | | paramsUrl.put("DataSign", URLEncoder.encode(dataSign, "UTF-8")); |
| | | } catch (Exception e) { |
| | | throw new GlobleException(e.getMessage()); |
| | | } |
| | | paramsUrl.put("EBusinessID", eBusinessID); |
| | | paramsUrl.put("RequestType", requestType); |
| | | paramsUrl.put("DataType", AppConstance.DATATYPE); |
| | | return paramsUrl; |
| | | } |