|
@@ -113,6 +113,9 @@ public class WmTaskContentServiceImpl extends ServiceImpl<WmTaskContentMapper, W
|
|
|
log.warn("获取不到积分包:{}", pkgId);
|
|
|
throw new RuntimeException("获取不到积分包");
|
|
|
}
|
|
|
+ if (LocalDate.now().isAfter(tWmScorePackage.getEndTime())) {
|
|
|
+ throw new BizException("当前积分包已过截止日期");
|
|
|
+ }
|
|
|
|
|
|
return tWmScorePackage;
|
|
|
}
|
|
@@ -927,6 +930,9 @@ public class WmTaskContentServiceImpl extends ServiceImpl<WmTaskContentMapper, W
|
|
|
log.error("当前企业不存在,ID为[{}]的积分包", pkgId);
|
|
|
throw new BizException("积分包不存在");
|
|
|
}
|
|
|
+ if (LocalDate.now().isAfter(tWmScorePackage.getEndTime())) {
|
|
|
+ throw new BizException("当前积分包已过截止日期");
|
|
|
+ }
|
|
|
|
|
|
Integer deptId = Integer.parseInt(tWmScorePackage.getDeptId());
|
|
|
log.info("获取企业ID: [{}]", deptId);
|