|
@@ -317,7 +317,7 @@ public class RabbitMqListener {
|
|
|
// 获取缓存锁,防止重复消费
|
|
|
Long building = redisUtil.incr(key, 1);
|
|
|
buildLogService.save(buildLog);
|
|
|
- if (building > 1) {
|
|
|
+ if (building.compareTo(1L) > 0) {
|
|
|
log.error("服务:{},重复构建:{}", SysConstants.hostName, buildLog.getSceneNum());
|
|
|
throw new BuildException(ModelingBuildStatus.REPEAT);
|
|
|
} else {
|