南昌市物联网技防平台-后台
Administrator
2021-03-22 e5563d727384f85dfff16d4b305a710f4e28e271
blade-service/blade-jfpts/src/main/java/org/springblade/jfpt/parcel/service/impl/ParcelServiceImpl.java
@@ -34,6 +34,9 @@
   @Value("${PARCEL_PICTURE_URL}")
   private String PARCEL_PICTURE_URL;
   @Value("${PARCEL_DETAIL_RUL}")
   private String PARCEL_DETAIL_RUL;
   /**
@@ -160,7 +163,7 @@
    */
   private List<Object> getParcelData(ConditionVo conditionVo, String url, String key, String secret) {
      //1.创建map对象,用于存储请求接口的秘钥
      Map<String, String> map = new HashMap<>();
      Map<String, Object> map = new HashMap<>();
      String startDate = null;
      String endDate = null;
      //2.2查询本天的数据
@@ -297,4 +300,33 @@
      map.put("imgBase64",s);
      return map;
   }
   /**
    * 获取包裹明细分页数据,远程调用api获取数据
    * @param conditionVo  请求参数对象
    * @return
    */
   @Override
   public Object getParcelDetailPage(ConditionVo conditionVo) {
      HashMap<String, Object> map = new HashMap<>();
      if (null!=conditionVo.getStartTime()){
         map.put("startTime", conditionVo.getStartTime());
      }
      if (null!=conditionVo.getEndTime()){
         map.put("endTime", conditionVo.getEndTime());
      }
      if (null!=conditionVo.getDecisioDiagramResult()){
         map.put("decisioDiagramResult", conditionVo.getDecisioDiagramResult());
      }
      if (null!=conditionVo.getCurrentPage()){
         map.put("currentPage", conditionVo.getCurrentPage());
      }
      if (null!=conditionVo.getPageSize()){
         map.put("pageSize", conditionVo.getPageSize());
      }
      String params = HttpClientUtils.httpPost(PARCEL_DETAIL_RUL, PARCEL_KEY, PARCEL_SECRET, map);
      Map<String, Object> data = (Map<String, Object>) JSONObject.parse(params);
      //4.远程调用数据
      return JSONObject.parse(data.get("result").toString());
   }
}