: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
@@ -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{