Commit 450f60f6 by 朱亚洁

feat:[1006102]上邮二维码配置权限

parent edc45256
......@@ -280,8 +280,17 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
}
//上邮临时处理方案
if (null != bySceneId && null != bySceneId.getBookId() && null != JedisClusterUtils.hget(nftReleaseLockKey, bySceneId.getBookId().toString())) {
NftBookState nftBookState = JedisClusterUtils.hgetJson2Class(nftReleaseLockKey, bySceneId.getBookId().toString(), NftBookState.class);
if (null != updateResourcePageVO.getBookGroupId()) {
if (null != nftBookState.getNftBookGroupId() && !nftBookState.getNftBookGroupId().equals(updateResourcePageVO.getBookGroupId())) {
throw new BizException(BizException.PARAM_IS_NULL.getCode(), "此二维码需统一配置资源, 请勿单独配置");
}
} else if (null != updateResourcePageVO.getSceneId()) {
if (null != nftBookState.getNftSceneId() && !nftBookState.getNftSceneId().equals(updateResourcePageVO.getSceneId())) {
throw new BizException(BizException.PARAM_IS_NULL.getCode(), "此二维码需统一配置资源, 请勿单独配置");
}
}
}
if (null != updateResourcePageVO.getBookGroupId()) {
return this.updatePageByBookGroupId(updateResourcePageVO);
} else if (null != updateResourcePageVO.getSceneId()) {
......
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