volta 2 лет назад
Родитель
Сommit
f101bff925

+ 3 - 0
launch-admin/src/main/java/com/webflux/launchadmin/mysql/controller/planNew/PlanNewOutController.java

@@ -180,6 +180,7 @@ public class PlanNewOutController {
             });
             return RStatus.success(domainSelectResMono1);
         }else  if(2==typePlan){
+            Long start = System.currentTimeMillis();
             Object planCache = stringRedisTemplate.opsForHash().get(RedisKey.PLAN_LISTEN_INFO,code);
             if (planCache == null){
                 throw new BaseException("未获取到计划信息");
@@ -201,6 +202,8 @@ public class PlanNewOutController {
             domainSelectRes.setDomain(string+"."+domain);
             domainSelectRes.setPath("");
             domainSelectRes.setUnique(IdUtil.fastSimpleUUID());
+            Long end = System.currentTimeMillis();
+            log.info("volta-time:{}-{}-{}",start,end,start-end);
             return RStatus.success(Mono.just(domainSelectRes));
         }
         throw new BaseException("typePlan 类型错误");