Parcourir la source

fix 删除车队校验

zoujiajian il y a 2 ans
Parent
commit
39bee0b90a

+ 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("请移除该车队下的用户再进行删掉操作");