Commit 505179b1 by guojuxing

资源组修改门店授权

parent 2894cf61
......@@ -3,6 +3,7 @@ package com.gic.auth.service.outer.impl;
import java.util.*;
import java.util.stream.Collectors;
import com.gic.store.service.StoreAuthorizationApiService;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.logging.log4j.LogManager;
......@@ -54,6 +55,9 @@ public class ResourceGroupApiServiceImpl implements ResourceGroupApiService{
@Autowired
private WmStoreApiService wmStoreApiService;
@Autowired
private StoreAuthorizationApiService storeAuthorizationApiService;
@Override
public ServiceResponse<Integer> saveResourceGroup(ResourceGroupDTO resourceGroup) {
validParam(resourceGroup);
......@@ -95,6 +99,15 @@ public class ResourceGroupApiServiceImpl implements ResourceGroupApiService{
unionEnterpriseAuthResNoticeDTO.setUnionEnterpriseId(unionEnterpriseId);
unionEnterpriseAuthResNoticeDTO.setResourceGroupChangeType(resourceGroupChangeType);
//门店通知
if (newResourceGroup.getStoreResource() != null) {
try {
storeAuthorizationApiService.authStore(newResourceGroup.getStoreResource().intValue(),unionEnterpriseId, ownEnterpriseId);
} catch (Exception e) {
logger.warn("资源组修改授权门店错误:{}", e.getMessage(), e);
}
}
CustomUserAreaDTO customUserAreaDTO = ResourceGroupUtils
.getResource(ResourceGroupUtils.CUSTOM_RESOURCE, EntityUtil.changeEntityNew(TabSysResourceGroup.class, newResourceGroup));
unionEnterpriseAuthResNoticeDTO.setCustomAreaDTO(EntityUtil.changeEntityNew(CustomAreaDTO.class, customUserAreaDTO));
......
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