|
|
@@ -275,6 +275,7 @@ public class AssetService {
|
|
|
|
|
|
public synchronized void consignment(Long id, BigDecimal price, String tradeCode) {
|
|
|
Asset asset = assetRepo.findById(id).orElseThrow(new BusinessException("无记录"));
|
|
|
+ boolean publicShow = asset.isPublicShow();
|
|
|
if (!asset.getUserId().equals(SecurityUtils.getAuthenticatedUser().getId())) {
|
|
|
throw new BusinessException("此藏品不属于你");
|
|
|
}
|
|
|
@@ -363,6 +364,7 @@ public class AssetService {
|
|
|
asset.setPublicCollectionId(collection.getId());
|
|
|
asset.setSellPrice(price);
|
|
|
assetRepo.save(asset);
|
|
|
+ asset.setPublicShow(publicShow);
|
|
|
assetSuperimpositionService.adjustNum(asset, AssetOperationType.CONSIGNMENT, null);
|
|
|
}
|
|
|
|