|
@@ -127,14 +127,20 @@ public class UserSchoolInfoServiceImpl extends ServiceImpl<UserSchoolInfoMapper,
|
|
|
return this.save(add);
|
|
return this.save(add);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public Boolean updateByEditBo(UserSchoolInfoEditBo bo) throws IllegalAccessException {
|
|
|
|
|
|
|
+ public Boolean updateByEditBo(UserSchoolInfoEditBo bo,Boolean isAdmin) throws IllegalAccessException {
|
|
|
UserSchoolInfo update = BeanUtil.toBean(bo, UserSchoolInfo.class);
|
|
UserSchoolInfo update = BeanUtil.toBean(bo, UserSchoolInfo.class);
|
|
|
validEntityBeforeSave(update);
|
|
validEntityBeforeSave(update);
|
|
|
|
|
|
|
|
- //增加学习的积分
|
|
|
|
|
- information(bo);
|
|
|
|
|
|
|
+ if(!isAdmin){
|
|
|
|
|
+ //后台操作不增加积分
|
|
|
|
|
+ //增加学习的积分
|
|
|
|
|
+ information(bo);
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
update.setUpdateTime(DateUtils.getNowTime());
|
|
update.setUpdateTime(DateUtils.getNowTime());
|
|
|
return this.updateById(update);
|
|
return this.updateById(update);
|