hxd 2 hónapja
szülő
commit
340ccd3a77

+ 6 - 2
portal-service-infrastructure/src/main/java/com/hfln/portal/infrastructure/gateway/impl/GroupGatewayImpl.java

@@ -10,6 +10,7 @@ import com.hfln.portal.common.request.group.*;
 import com.hfln.portal.domain.exception.ErrorEnum;
 import com.hfln.portal.domain.gateway.GroupGateway;
 import com.hfln.portal.infrastructure.mapper.GroupDevMapMapper;
+import com.hfln.portal.infrastructure.mapper.GroupShareMapper;
 import com.hfln.portal.infrastructure.po.DevGroup;
 import com.hfln.portal.infrastructure.po.DevInfo;
 import com.hfln.portal.infrastructure.po.GroupDevMap;
@@ -43,6 +44,9 @@ public class GroupGatewayImpl implements GroupGateway {
     @Autowired
     private GroupDevMapMapper groupDevMapMapper;
 
+    @Autowired
+    private GroupShareMapper groupShareMapper;
+
     /**
      * 添加群组
      *
@@ -117,8 +121,8 @@ public class GroupGatewayImpl implements GroupGateway {
                     .eq(GroupShare::getGroupUuid, devGroup.getGroupUuid())
                     .eq(GroupShare::getIsDeleted, 0)
                     .set(GroupShare::getIsDeleted, 1);
-            boolean shareUpdateResult = groupShareService.update(shareUpdateWrapper);
-            if (!shareUpdateResult) {
+            int shareUpdateCount = groupShareMapper.update(null, shareUpdateWrapper);
+            if (shareUpdateCount < 0) {
                 log.error("删除群组分享记录失败, groupUuid: {}", devGroup.getGroupUuid());
                 throw new BizException(ErrorEnum.ERROR_BIZ_FAIL.getErrorCode(), "删除群组分享记录失败");
             }