|
@@ -498,8 +498,8 @@ public class AssetService {
|
|
|
if (!asset.getUserId().equals(SecurityUtils.getAuthenticatedUser().getId())) {
|
|
if (!asset.getUserId().equals(SecurityUtils.getAuthenticatedUser().getId())) {
|
|
|
throw new BusinessException("此藏品不属于你");
|
|
throw new BusinessException("此藏品不属于你");
|
|
|
}
|
|
}
|
|
|
- if (!asset.getStatus().equals(AssetStatus.NORMAL)) {
|
|
|
|
|
- throw new BusinessException("销毁藏品状态错误!");
|
|
|
|
|
|
|
+ if (asset.getStatus() != AssetStatus.NORMAL) {
|
|
|
|
|
+ throw new BusinessException("当前状态不可寄售");
|
|
|
}
|
|
}
|
|
|
if (asset.getPublicCollectionId() != null) {
|
|
if (asset.getPublicCollectionId() != null) {
|
|
|
List<Order> orders = orderRepo.findByCollectionId(asset.getPublicCollectionId());
|
|
List<Order> orders = orderRepo.findByCollectionId(asset.getPublicCollectionId());
|