|
|
@@ -398,10 +398,12 @@ public class AssetService {
|
|
|
|
|
|
public void cancelPublic(Long id) {
|
|
|
Asset asset = assetRepo.findById(id).orElseThrow(new BusinessException("无记录"));
|
|
|
+ boolean consignment = asset.isConsignment();
|
|
|
if (!asset.getUserId().equals(SecurityUtils.getAuthenticatedUser().getId())) {
|
|
|
throw new BusinessException("此藏品不属于你");
|
|
|
}
|
|
|
cancelPublic(asset);
|
|
|
+ asset.setConsignment(consignment);
|
|
|
assetSuperimpositionService.adjustNum(asset, AssetOperationType.CLOSE, null);
|
|
|
}
|
|
|
|