智慧保安后台管理-外网
Administrator
2022-05-06 3c1126fbff1aaed94a2e16c2ef98a03e36bf49f1
src/main/java/org/springblade/modules/FTP/DataHandler.java
@@ -32,8 +32,7 @@
   private RedisTemplate redisTemplate;
   /**
    /**
    * 初始化
    */
   @PostConstruct
@@ -44,6 +43,26 @@
   }
   /**
    * 获取保安员证编号位数
    * @param json
    * @param uuid
    * @return
    */
   public static Result handlerSecurityNumberBit(String json, String uuid) {
      Map map = JSON.parseObject(json, Map.class);
      //获取结果
      Object o = map.get(uuid);
      if (null== o || o.equals("")){
         return new Result(400,null,"uuid 不匹配",null);
      }else {
         //转换
         Result result = JSON.parseObject(o.toString(), Result.class);
         //返回
         return result;
      }
   }
   /**
    * 读取数据
    * @param json
    * @param uuid
@@ -51,16 +70,14 @@
    */
   public static Result handlerList(String json, String uuid) {
      Map map = JSON.parseObject(json, Map.class);
      System.out.println("map = " + map);
      //获取结果
      Object o = map.get(uuid);
      System.out.println("o = " + o);
      if (null== o || o.equals("")){
         return new Result(400,null,"uuid 不匹配",null);
      }else {
         //转换
         Result result = JSON.parseObject(o.toString(), Result.class);
         System.out.println("result = " + result);
         //返回
         return result;
      }
   }