|
@@ -119,7 +119,8 @@ public class FlowDefineServiceImpl extends BaseServiceImpl<FlowDefineDao, FlowDe
|
|
|
String serialKey = String.format("flow:serial:%s", currentDate);
|
|
|
Long increment = redisService.incr(serialKey, 1L);
|
|
|
if (increment == 1L) {
|
|
|
- redisService.expire(serialKey, 60 * 60 * 24L);
|
|
|
+ long secondsInYear = 365L * 24 * 60 * 60;
|
|
|
+ redisService.expire(serialKey, secondsInYear);
|
|
|
}
|
|
|
String serial = String.format("%3s", increment).replace(" ", "0");
|
|
|
String instanceId = String.format("fw%s%s", currentDate, serial);
|