|
@@ -225,7 +225,11 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public boolean editPeriodAll(UserPeriodEditBo bo) {
|
|
|
LoginUser loginUser = SecurityUtils.getLoginUser();
|
|
|
+ if(Validator.isEmpty(bo.getIds())||bo.getIds().size()<1){
|
|
|
+ throw new CustomException("您没有勾选数据");
|
|
|
+ }
|
|
|
Long firstId = bo.getIds().get(0);
|
|
|
+
|
|
|
//查询此人学时审核是否有权限
|
|
|
if(!loginUser.getUser().isAdmin()){
|
|
|
if (baseMapper.selectCountPeriod(loginUser.getUser().getUserId(),firstId) < 1){
|