Commit 01a1e20c by guojuxing

应用策略编辑接口修改

parent fb6abff7
......@@ -245,6 +245,21 @@ public class UnionEnterpriseAuthApiServiceImpl implements UnionEnterpriseAuthApi
});
}
Integer unionEnterpriseAuthAppId = dto.getUnionEnterpriseAuthAppId();
//编辑的时候去除本条数据的应用ID,避免校验错误
if (unionEnterpriseAuthAppId != null) {
TabSysUnionEnterpriseAuthApp old = unionEnterpriseAuthAppService.getUnionEnterpriseAuthApp(unionEnterpriseAuthAppId);
if (old != null) {
String oldAppId = old.getAppId();
String[] oldAppIdArr = oldAppId.split(",");
for (String temp : oldAppIdArr) {
if (StringUtils.isNotBlank(temp)) {
appIdSet.remove(temp);
}
}
}
}
String appIdParam = dto.getAppId();
String[] appIdParamArr = appIdParam.split(",");
for (String temp : appIdParamArr) {
......@@ -256,8 +271,6 @@ public class UnionEnterpriseAuthApiServiceImpl implements UnionEnterpriseAuthApi
}
}
Integer unionEnterpriseAuthAppId = dto.getUnionEnterpriseAuthAppId();
if (unionEnterpriseAuthAppService.isRepeatStrategyName(unionEnterpriseAuthAppId, dto.getUnionEnterpriseAuthId(), dto.getStrategyName())) {
throw new CommonException(ErrorCode.PARAMETER_ERROR.getCode(), "策略名称重复");
}
......
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