|
@@ -138,6 +138,9 @@ public class KxsCampServiceImpl extends ServiceImpl<KxsCampMapper, KxsCamp> impl
|
|
|
if (Objects.equals(kxsCamp.getStatus(), CampStatusEnum.STATUS_END.getType())) {
|
|
if (Objects.equals(kxsCamp.getStatus(), CampStatusEnum.STATUS_END.getType())) {
|
|
|
throw new GlobalCustomerException(excel.getCampId() + "训练营已结束,不允许导入!");
|
|
throw new GlobalCustomerException(excel.getCampId() + "训练营已结束,不允许导入!");
|
|
|
}
|
|
}
|
|
|
|
|
+ if (Objects.equals(kxsCamp.getStatus(), CampStatusEnum.STATUS_CLOSE.getType())) {
|
|
|
|
|
+ throw new GlobalCustomerException(excel.getCampId() + "请先开启训练营后再导入!");
|
|
|
|
|
+ }
|
|
|
//查询分组
|
|
//查询分组
|
|
|
KxsCampGroup kxsCampGroup = kxsCampGroupService.getOne(Wrappers.<KxsCampGroup>lambdaQuery()
|
|
KxsCampGroup kxsCampGroup = kxsCampGroupService.getOne(Wrappers.<KxsCampGroup>lambdaQuery()
|
|
|
.eq(KxsCampGroup::getCampId, excel.getCampId())
|
|
.eq(KxsCampGroup::getCampId, excel.getCampId())
|