|
@@ -77,6 +77,15 @@ public class UserStudyRecordPhotoServiceImpl extends ServiceImpl<UserStudyRecord
|
|
|
|
|
|
@Override
|
|
|
public Boolean insertByAddBo(UserStudyRecordPhotoAddBo bo) {
|
|
|
+ UserStudyRecordPhoto add = BeanUtil.toBean(bo, UserStudyRecordPhoto.class);
|
|
|
+ validEntityBeforeSave(add);
|
|
|
+ add.setCreateTime(DateUtils.getNowTime());
|
|
|
+ add.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ return this.save(add);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Boolean insertExamByAddBo(UserStudyRecordPhotoAddBo bo) {
|
|
|
UserBankRecordVo userBankRecord = iUserBankRecordService.queryById(bo.getRecordId());
|
|
|
if(Validator.isEmpty(userBankRecord)){
|
|
|
throw new CustomException("记录ID数据错误");
|