|
|
@@ -81,9 +81,10 @@ public class PhotoAssetService {
|
|
|
PhotoAsset photoAsset = photoAssetRepo.findById(id).orElseThrow(new BusinessException("无记录"));
|
|
|
photoAsset.setStatus(CollectionStatus.FAIL);
|
|
|
|
|
|
- Asset asset = assetRepo.findById(photoAsset.getDestroyAssetId()).orElseThrow(new BusinessException("无藏品记录"));
|
|
|
- asset.setStatus(AssetStatus.NORMAL);
|
|
|
- assetRepo.saveAndFlush(asset);
|
|
|
+// Asset asset = assetRepo.findById(photoAsset.getDestroyAssetId()).orElseThrow(new BusinessException("无藏品记录"));
|
|
|
+// asset.setStatus(AssetStatus.NORMAL);
|
|
|
+// assetRepo.saveAndFlush(asset);
|
|
|
+ assetService.destroyWithoutTradecode(photoAsset.getDestroyAssetId(), photoAsset.getUserId());
|
|
|
photoAssetRepo.save(photoAsset);
|
|
|
}
|
|
|
|