update:
1. fix
This commit is contained in:
@@ -188,7 +188,7 @@ public class MerchantInventoryServiceImpl extends BaseServiceImpl<MerchantInvent
|
||||
throw new ServiceException("用户没有该操作权限");
|
||||
}
|
||||
|
||||
MerchantInventoryEntity inventory = getOne(Wrappers.lambdaQuery(MerchantInventoryEntity.class).eq(MerchantInventoryEntity::getProductId, productId).eq(MerchantInventoryEntity::getUserId, userId).eq(MerchantInventoryEntity::getStatus, MerchantProductStatus.ON_SHELF).eq(MerchantInventoryEntity::getIsDeleted, 0).orderByDesc(MerchantInventoryEntity::getId));
|
||||
MerchantInventoryEntity inventory = getOne(Wrappers.lambdaQuery(MerchantInventoryEntity.class).eq(MerchantInventoryEntity::getProductId, productId).eq(MerchantInventoryEntity::getUserId, userId).eq(MerchantInventoryEntity::getStatus, MerchantProductStatus.ON_SHELF.getCode()).eq(MerchantInventoryEntity::getIsDeleted, 0).orderByDesc(MerchantInventoryEntity::getId));
|
||||
if (Objects.isNull(inventory)) {
|
||||
throw new ServiceException("商品不存在");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user