南昌市物联网技防平台-后台
Administrator
2021-03-12 a6f343cc01f1d435e793bbbed140ad5bfc51a9f7
blade-service/blade-jfpts/src/main/java/org/springblade/jfpt/parcel/service/impl/ParcelServiceImpl.java
@@ -199,19 +199,19 @@
      //获取包裹数据
      List<Object> parcelData = getParcelData(conditionVo, PARCEL_URL, PARCEL_KEY, PARCEL_SECRET);
      //查询当天的包裹总数
      Integer checkCount = null;
      Integer dangerCount = null;
      Integer contrabandCount = null;
      if (status == 0) {
         for (Object object : parcelData) {
            //取出list里面的值转为map
            Map<String, Object> objectMap = (Map<String, Object>) object;
            checkCount = Integer.parseInt(objectMap.get("checkCount").toString()); //安检包裹数量
            dangerCount = Integer.parseInt(objectMap.get("dangerCount").toString()); //违禁包裹数量
            contrabandCount = Integer.parseInt(objectMap.get("contrabandCount").toString()); //违禁物品数量
         }
      }
      //封装数据
      list.add(checkCount);
      list.add(dangerCount);
      list.add(contrabandCount);
      //返回数据
      return list;
   }