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