Commit e729555a authored by yanzg's avatar yanzg

升级新版本

parent 31a6ffe2
...@@ -46,7 +46,7 @@ public class YzgMqProcedure implements InitializingBean { ...@@ -46,7 +46,7 @@ public class YzgMqProcedure implements InitializingBean {
/** /**
* 6 小时 * 6 小时
*/ */
public static final TimeUnit YZG_MQ_SYSTEM_QUEUE_PLAN_MAX = new TimeUnit("Hour", 1000 * 60 * 15); public static final TimeUnit YZG_MQ_SYSTEM_QUEUE_PLAN_MAX = new TimeUnit("Hour", 1000 * 60 * 8);
public static final List<TimeUnit> YZG_MQ_SYSTEM_QUEUE_PLAN_TIME = new ArrayList<>(); public static final List<TimeUnit> YZG_MQ_SYSTEM_QUEUE_PLAN_TIME = new ArrayList<>();
/** /**
* 执行的消息队列 * 执行的消息队列
...@@ -126,8 +126,8 @@ public class YzgMqProcedure implements InitializingBean { ...@@ -126,8 +126,8 @@ public class YzgMqProcedure implements InitializingBean {
/** /**
* 获取等待时间单位 * 获取等待时间单位
* *
* @param waitTime * @param waitTime 等待时间
* @return * @return 单位
*/ */
private TimeUnit getTimeUnit(long waitTime) { private TimeUnit getTimeUnit(long waitTime) {
TimeUnit prevUnit = null; TimeUnit prevUnit = null;
...@@ -137,7 +137,7 @@ public class YzgMqProcedure implements InitializingBean { ...@@ -137,7 +137,7 @@ public class YzgMqProcedure implements InitializingBean {
continue; continue;
} }
// 在时间范围内,则返回大于等待时间的队列 // 在时间范围内,则返回大于等待时间的队列
if (timeUnit.unit > waitTime) { if (timeUnit.unit > waitTime / 2) {
break; break;
} }
// 上次单位 // 上次单位
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment