mirror of
https://github.com/Hello-hao/Tbed.git
synced 2024-04-21 12:32:10 +00:00
2021-03-15更新
This commit is contained in:
@@ -72,19 +72,19 @@ public class GroupController {
|
||||
@RequestMapping(value = "/addisgroup")
|
||||
@ResponseBody
|
||||
public Integer addisgroup(Group group) {
|
||||
boolean b =false;
|
||||
if(group.getKeyid()==5){
|
||||
b =true;
|
||||
}else{
|
||||
Keys key = keysService.selectKeys(group.getKeyid());
|
||||
b = StringUtils.doNull(group.getKeyid(),key);
|
||||
}
|
||||
//boolean b =false;
|
||||
//if(group.getKeyid()==5){
|
||||
// b =true;
|
||||
//}else{
|
||||
//Keys key = keysService.selectKeys(group.getKeyid());
|
||||
//b = StringUtils.doNull(group.getKeyid(),key);
|
||||
//}
|
||||
Integer ret = 0;
|
||||
if(b){
|
||||
//if(b){
|
||||
ret = groupService.addgroup(group);
|
||||
}else{
|
||||
ret = -1;
|
||||
}
|
||||
//}else{
|
||||
// ret = -1;
|
||||
//}
|
||||
return ret;
|
||||
}
|
||||
@RequestMapping(value = "/delegroup")
|
||||
|
||||
Reference in New Issue
Block a user