|
@@ -119,6 +119,7 @@ public class CmsGroupServiceImpl extends ServiceImpl<GroupsMapper,GroupsTrips> i
|
|
|
}
|
|
}
|
|
|
Integer count = relationMapper.selectCount(Wrappers.lambdaQuery(GroupsRelation.class)
|
|
Integer count = relationMapper.selectCount(Wrappers.lambdaQuery(GroupsRelation.class)
|
|
|
.eq(GroupsRelation::getGroupsId, groupId)
|
|
.eq(GroupsRelation::getGroupsId, groupId)
|
|
|
|
|
+ .ne(GroupsRelation::getUserId, 0)
|
|
|
.ne(GroupsRelation::getStatus, GroupsRelation.Status.none));
|
|
.ne(GroupsRelation::getStatus, GroupsRelation.Status.none));
|
|
|
if (count > 0) {
|
|
if (count > 0) {
|
|
|
throw BusinessRuntimeException.getInstance("请移除该车队下的用户再进行删掉操作");
|
|
throw BusinessRuntimeException.getInstance("请移除该车队下的用户再进行删掉操作");
|