|
@@ -296,7 +296,7 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
|
|
|
LoginUser loginUser = SecurityUtils.getLoginUser();
|
|
LoginUser loginUser = SecurityUtils.getLoginUser();
|
|
|
//查询此人学时审核是否有权限
|
|
//查询此人学时审核是否有权限
|
|
|
if (!loginUser.getUser().isAdmin()) {
|
|
if (!loginUser.getUser().isAdmin()) {
|
|
|
- if (baseMapper.selectCountConfirmPeriod(loginUser.getUser().getUserId(), bo.getId()) < 1) {
|
|
|
|
|
|
|
+ if (baseMapper.selectCountConfirmPeriod(loginUser.getUser().getUserId(), bo.getGoodsId()) < 1) {
|
|
|
throw new CustomException("您没有确认审核权限");
|
|
throw new CustomException("您没有确认审核权限");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -354,10 +354,9 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
|
|
|
throw new CustomException("非审核中状态无法打回操作");
|
|
throw new CustomException("非审核中状态无法打回操作");
|
|
|
}
|
|
}
|
|
|
LoginUser loginUser = SecurityUtils.getLoginUser();
|
|
LoginUser loginUser = SecurityUtils.getLoginUser();
|
|
|
- Long upId = bo.getIds().get(0);
|
|
|
|
|
//查询此人学时审核是否有权限
|
|
//查询此人学时审核是否有权限
|
|
|
if (!loginUser.getUser().isAdmin()) {
|
|
if (!loginUser.getUser().isAdmin()) {
|
|
|
- if (baseMapper.selectCountConfirmPeriod(loginUser.getUser().getUserId(), upId) < 1) {
|
|
|
|
|
|
|
+ if (baseMapper.selectCountConfirmPeriod(loginUser.getUser().getUserId(), bo.getGoodsId()) < 1) {
|
|
|
throw new CustomException("您没有确认审核权限");
|
|
throw new CustomException("您没有确认审核权限");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|