|
|
@@ -149,6 +149,9 @@ public class AssetService {
|
|
|
|
|
|
public void consignment(Long id, BigDecimal price) {
|
|
|
Asset asset = assetRepo.findById(id).orElseThrow(new BusinessException("无记录"));
|
|
|
+ if (asset.getName().contains("鬼卒-")) {
|
|
|
+ throw new BusinessException("此藏品当前无法上架");
|
|
|
+ }
|
|
|
if (!asset.getUserId().equals(SecurityUtils.getAuthenticatedUser().getId())) {
|
|
|
throw new BusinessException("此藏品不属于你");
|
|
|
}
|