:bug:修复代码问题

This commit is contained in:
hello-hao
2022-04-07 10:35:56 +08:00
parent 95889c42ef
commit 6083ae97a3
3 changed files with 4 additions and 4 deletions
@@ -441,7 +441,7 @@ public class AdminController {
Keys key = keysService.selectKeys(keyid);
if(!subject.hasRole("admin")){
if(image.getUserid()!=user.getId()){
if(!image.getUserid().equals(user.getId())){
break;
}
}
@@ -267,7 +267,7 @@ public class IndexController {
Subject subject = SecurityUtils.getSubject();
User user = (User) subject.getPrincipal();
if(null!=user){
if(user.getId()!=image.getUserid()){
if(!user.getId().equals(image.getUserid())){
msg.setInfo("删除失败,该图片不允许你执行操作");
msg.setCode("100403");
return msg;
@@ -88,8 +88,8 @@ public class GroupServiceImpl implements GroupService {
if(group.getUsertype()!=0){
Group groupFroUserType = groupMapper.getGroupFroUserType(group.getUsertype());
if(groupFroUserType!=null){
if(groupFroUserType.getUsertype()==group.getUsertype()){
if(groupFroUserType.getId()==group.getId()){
if(groupFroUserType.getUsertype().equals(group.getUsertype())){
if(groupFroUserType.getId().equals(group.getId())){
groupMapper.setgroup(group);
msg.setInfo("修改成功");
}else{