Commit 540ab2ec by guojuxing

资源组变更通知调整

parent 77964d3b
......@@ -121,8 +121,11 @@ public class UnionEnterpriseAuthApiServiceImpl implements UnionEnterpriseAuthApi
Integer resourceGroupId = dto.getResourceGroupId();
ResourceGroupDTO resourceGroupDTO = getResourceGroup(resourceGroupId);
ResourceGroupDTO oldResourceGroupDTO = null;
//1 : 初始化 2:资源组变更
Integer resourceGroupChangeType = 1;
if (isEdit) {
oldResourceGroupDTO = getResourceGroup(old.getResourceGroupId());
resourceGroupChangeType = 2;
}
//
......@@ -133,7 +136,7 @@ public class UnionEnterpriseAuthApiServiceImpl implements UnionEnterpriseAuthApi
unionEnterpriseAuthResDetailService.initUnionEnterpriseAuthResDetail(old.getUnionEnterpriseAuthId());
//授权通知(用户域)
resourceGroupApiService.syncResourceAuthChangeMQ(dto.getOwnEnterpriseId(), dto.getUnionEnterpriseId(), resourceGroupDTO, oldResourceGroupDTO);
resourceGroupApiService.syncResourceAuthChangeMQ(dto.getOwnEnterpriseId(), dto.getUnionEnterpriseId(), resourceGroupDTO, oldResourceGroupDTO, resourceGroupChangeType);
//门店通知
if (resourceGroupDTO.getStoreResource() != null) {
storeAuthorizationApiService.authStore(resourceGroupDTO.getStoreResource().intValue(), dto.getUnionEnterpriseId(), dto.getOwnEnterpriseId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment