|
@@ -186,8 +186,13 @@ public class UserGroupServiceImpl implements UserGroupService {
|
|
|
});
|
|
|
|
|
|
userGroupMapper.deleteUserRoles(userGroupDto);
|
|
|
- userGroupMapper.batchInsertRoles(userRoleEntities);
|
|
|
- groupUserMapper.batchInsert(groupUsers);
|
|
|
+ if(userGroupDto.getDeleteFlag()==1){
|
|
|
+ userGroupMapper.batchInsertRoles(userRoleEntities);
|
|
|
+ groupUserMapper.batchInsert(groupUsers);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
}
|