|
|
@@ -1340,6 +1340,9 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
.eq(UserPeriodStatus::getStatus, 1)
|
|
|
.eq(UserPeriodStatus::getPeriodStatus, 1));
|
|
|
}
|
|
|
+ if(Validator.isEmpty(copyUserPeriodStatus)){
|
|
|
+ throw new CustomException("同步学时数据错误");
|
|
|
+ }
|
|
|
LambdaQueryWrapper<UserStudyRecordPhoto> lqwPhoto = Wrappers.lambdaQuery();
|
|
|
lqwPhoto.eq(UserStudyRecordPhoto::getPeriodId, userPeriodStatus.getId());
|
|
|
lqwPhoto.eq(UserStudyRecordPhoto::getRecordId, vo.getRecordId());
|