|
|
@@ -75,7 +75,7 @@ public class PhotoAssetService {
|
|
|
PhotoAsset photoAsset = photoAssetRepo.findById(id).orElseThrow(new BusinessException("无记录"));
|
|
|
photoAsset.setStatus(CollectionStatus.FAIL);
|
|
|
|
|
|
- Asset asset = assetRepo.findById(photoAsset.getId()).orElseThrow(new BusinessException("无藏品记录"));
|
|
|
+ Asset asset = assetRepo.findById(photoAsset.getDestroyAssetId()).orElseThrow(new BusinessException("无藏品记录"));
|
|
|
asset.setStatus(AssetStatus.NORMAL);
|
|
|
assetRepo.saveAndFlush(asset);
|
|
|
photoAssetRepo.save(photoAsset);
|