[bug]黑名单过期时间计算错误

master
liuqingkun 3 years ago
parent 5a5043d9ac
commit 53d9516201
  1. 2
      src/main/java/org/springblade/modules/business/service/impl/ApmRecordServiceImpl.java

@ -123,7 +123,7 @@ public class ApmRecordServiceImpl extends BaseServiceImpl<ApmRecordMapper, ApmRe
// 判断用户是否正在被拉黑
Blacklist blacklist = blacklistService.getLatelyRecord(cupCardNo);
if (Func.isNotEmpty(blacklist) && CommonDateUtil.daysBetween(DateUtil.now(), blacklist.getCreateTime()) < DictBizCache.getDictValueWithOffset(BusinessConstant.DICT_KEY_BLACKLIST_OUTDATE)) {
if (Func.isNotEmpty(blacklist) && CommonDateUtil.daysBetween(blacklist.getCreateTime(), DateUtil.now()) < DictBizCache.getDictValueWithOffset(BusinessConstant.DICT_KEY_BLACKLIST_OUTDATE)) {
return ErrorMsgEnum.USER_IN_BLACKLIST.getValue();
}

Loading…
Cancel
Save