zoujiajian преди 2 години
родител
ревизия
39bee0b90a
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      netflix-service/src/main/java/com/cyksj/service/mange/group/CmsGroupServiceImpl.java

+ 1 - 0
netflix-service/src/main/java/com/cyksj/service/mange/group/CmsGroupServiceImpl.java

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