|
|
@@ -81,11 +81,8 @@ public class KxsCampReportServiceImpl extends ServiceImpl<KxsCampReportMapper, K
|
|
|
throw new GlobalCustomerException("该报备已审核");
|
|
|
}
|
|
|
campReport.setCreateBy(param.getCreateBy());
|
|
|
- //审核拒绝
|
|
|
- if(param.getStatus() == -1) {
|
|
|
- campReport.setStatus(param.getStatus());
|
|
|
- campReport.setRemark(param.getRemark());
|
|
|
- }
|
|
|
+ campReport.setStatus(param.getStatus());
|
|
|
+ campReport.setRemark(param.getRemark());
|
|
|
KxsCamp kxsCamp = kxsCampMapper.selectById(campReport.getCampId());
|
|
|
Optional.ofNullable(kxsCamp).orElseThrow(() -> new GlobalCustomerException("训练营不存在"));
|
|
|
//审核通过
|
|
|
@@ -94,7 +91,6 @@ public class KxsCampReportServiceImpl extends ServiceImpl<KxsCampReportMapper, K
|
|
|
|
|
|
throw new GlobalCustomerException("该报备已失效");
|
|
|
}
|
|
|
- campReport.setStatus(param.getStatus());
|
|
|
|
|
|
KxsCampUser kxsCampUser = kxsCampUserMapper.selectOne(Wrappers.<KxsCampUser>lambdaQuery()
|
|
|
.eq(KxsCampUser::getCampId, kxsCamp.getId())
|