|
|
@ -327,7 +327,9 @@ public class IssueProjectTagDictRedis { |
|
|
|
} |
|
|
|
if (status.equals(NumConstant.ONE_STR)){ |
|
|
|
//标签使用次数-1
|
|
|
|
if (null != redisUtils.getScore(key,formDTO) && redisUtils.getScore(key,formDTO)>NumConstant.ZERO){ |
|
|
|
Double score = redisUtils.getScore(key, formDTO); |
|
|
|
// 避免score为负数
|
|
|
|
if (null != score && score > NumConstant.ZERO){ |
|
|
|
redisUtils.zIncrementScore(key, formDTO,NumConstant.ONE_NEG); |
|
|
|
} |
|
|
|
} |
|
|
|