|
|
@@ -316,6 +316,7 @@ public class DomainOrderService {
|
|
|
.findFirstByNameAndStatus("RID元宇宙域名 " + domainOrder.getDomainName(), AssetStatus.NORMAL);
|
|
|
if (asset != null) {
|
|
|
if (asset.isConsignment()) {
|
|
|
+ sold.put("collectionId", asset.getPublicCollectionId());
|
|
|
sold.put("canAsk", false);
|
|
|
} else {
|
|
|
sold.put("canAsk", true);
|
|
|
@@ -632,8 +633,10 @@ public class DomainOrderService {
|
|
|
|
|
|
public void addHyperLink(Long collectionId, boolean openHyperLink, HyperLinkType hyperLinkType, String address) {
|
|
|
// Collection collection = collectionRepo.findById(collectionId).orElseThrow(new BusinessException("没找到记录"));
|
|
|
- Asset asset = assetRepo.findByIdAndStatus(collectionId, AssetStatus.NORMAL).orElseThrow(new BusinessException("没找到记录"));
|
|
|
- DomainOrder domainOrder = domainOrderRepo.findById(asset.getCollectionId()).orElseThrow(new BusinessException("没找到记录"));
|
|
|
+ Asset asset = assetRepo.findByIdAndStatus(collectionId, AssetStatus.NORMAL)
|
|
|
+ .orElseThrow(new BusinessException("没找到记录"));
|
|
|
+ DomainOrder domainOrder = domainOrderRepo.findById(asset.getCollectionId())
|
|
|
+ .orElseThrow(new BusinessException("没找到记录"));
|
|
|
domainOrder.setOpenHyperLink(openHyperLink);
|
|
|
domainOrder.setHyperLinkType(hyperLinkType);
|
|
|
domainOrder.setAddress(address);
|