yujian
2019-11-05 09c716a16d02ddb06df2bc2af5e588128bc7fdb4
fanli/src/main/java/com/yeshi/fanli/aspect/RequestSerializableServiceAspect.java
@@ -77,14 +77,12 @@
                        result = jedis.setnx(cacheKey, "1");
                        if (result <= 0) {
                           try {
                              System.out.println("__________已有线程在执行");
                              Thread.sleep(50);
                           } catch (InterruptedException e) {
                              e.printStackTrace();
                           }
                           if (System.currentTimeMillis() - startTime > 1000 * 60L) {
                              Constant.waitingThreadSet.remove(Thread.currentThread().getId());
                              System.out.println("__________删除线程");
                              return null;
                           }
                        } else {
@@ -95,7 +93,6 @@
                     if (result > 0) {
                        try {
                           System.out.println("__________放行执行");
                           return joinPoint.proceed();
                        } catch (Throwable e) {
                           e.printStackTrace();
@@ -123,9 +120,6 @@
      } catch (SecurityException e) {
         e.printStackTrace();
      }
      return joinPoint.proceed();
   }
}