Browse Source

拍摄点位数量

lyhzzz 2 years ago
parent
commit
e8ef8b2e9d
1 changed files with 13 additions and 13 deletions
  1. 13 13
      src/main/java/com/fdkankan/manage/httpClient/service/LaserService.java

+ 13 - 13
src/main/java/com/fdkankan/manage/httpClient/service/LaserService.java

@@ -123,19 +123,19 @@ public class LaserService {
 
 
     private void getLaserSceneGps(SceneVo vo) {
-        String redisKey = String.format(RedisKeyUtil.numGpsKey, vo.getNum());
-        String redisKey2 = String.format(RedisKeyUtil.numShootKey, vo.getNum());
-        if(redisUtil.hasKey(redisKey) && redisUtil.hasKey(redisKey2)){
-            String gps = redisUtil.get(redisKey);
-            String shootNum = redisUtil.get(redisKey2);
-            vo.setGps(gps);
-            vo.setShootCount(Integer.valueOf(shootNum));
-            return;
-        }
+//        String redisKey = String.format(RedisKeyUtil.numGpsKey, vo.getNum());
+//        String redisKey2 = String.format(RedisKeyUtil.numShootKey, vo.getNum());
+//        if(redisUtil.hasKey(redisKey) && redisUtil.hasKey(redisKey2)){
+//            String gps = redisUtil.get(redisKey);
+//            String shootNum = redisUtil.get(redisKey2);
+//            vo.setGps(gps);
+//            vo.setShootCount(Integer.valueOf(shootNum));
+//            return;
+//        }
         ScenePro pro = sceneProService.getByNum(vo.getNum());
         if(pro != null){
-            redisUtil.set(redisKey,pro.getGps()== null ?"":pro.getGps());
-            redisUtil.set(redisKey2,String.valueOf(pro.getShootCount()== null ? 0 :pro.getShootCount()));
+            //redisUtil.set(redisKey,pro.getGps()== null ?"":pro.getGps());
+            //redisUtil.set(redisKey2,String.valueOf(pro.getShootCount()== null ? 0 :pro.getShootCount()));
             vo.setGps(pro.getGps());
             vo.setShootCount(pro.getShootCount());
         }
@@ -143,8 +143,8 @@ public class LaserService {
         if(plus != null){
             ScenePlusExt ext = scenePlusExtService.getByPlusId(plus.getId());
             if(ext != null){
-                redisUtil.set(redisKey,ext.getGps()== null?"":ext.getGps());
-                redisUtil.set(redisKey2,String.valueOf(ext.getShootCount()== null ? 0 :ext.getShootCount()));
+                //redisUtil.set(redisKey,ext.getGps()== null?"":ext.getGps());
+               // redisUtil.set(redisKey2,String.valueOf(ext.getShootCount()== null ? 0 :ext.getShootCount()));
                 vo.setGps(ext.getGps());
                 vo.setShootCount(ext.getShootCount());
             }