Commit 3f6461bc by guojuxing

导购、资源组引用维护调整

parent aa07fdd3
......@@ -153,7 +153,9 @@ public class UnionEnterpriseAuthApiServiceImpl implements UnionEnterpriseAuthApi
//
checkResourceDealing((old.getUnionEnterpriseAuthId()));
saveRefer(old.getUnionEnterpriseAuthId(), resourceGroupId);
TabEnterprise tabEnterprise = enterpriseService.getEnterpriseById(dto.getUnionEnterpriseId());
saveRefer(old.getUnionEnterpriseAuthId(), tabEnterprise.getEnterpriseName(), resourceGroupId);
unionEnterpriseAuthService.update(data);
//初始化未授权资源数据
......@@ -592,10 +594,10 @@ public class UnionEnterpriseAuthApiServiceImpl implements UnionEnterpriseAuthApi
return (int) ((endDateTime - startDateTime) / (1000 * 3600 * 24));
}
private void saveRefer(Integer businessId, Integer resourceGroupId) {
private void saveRefer(Integer businessId, String businessName, Integer resourceGroupId) {
PopupDTO popupDTO = new PopupDTO();
popupDTO.setBusinessId(String.valueOf(businessId));
popupDTO.setBusinessName("联合商户");
popupDTO.setBusinessName(businessName);
popupDTO.setBusinessType(REFER_UNION_ENTERPRISE);
popupDTO.setRelationBusinessIdList(new RelationBusinessInfoDTO(REFER_RESOURCE, String.valueOf(resourceGroupId)));
......
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