xin
2025-09-23 8f36621b7c879732fbe9d191171b7747b0cf0207
1
2
3
4
5
6
7
8
9
10
11
package com.oying.modules.pc.product.service;
 
import com.oying.modules.pc.product.domain.Product;
 
public interface ProductInventoryService {
    Product getProductById(Long id);
    Product setStockQuantity(Long product, Integer quantity, Long version);
    Product increaseStock(Long product, Integer amount);
    Product decreaseStock(Long product, Integer amount);
    boolean isStockSufficient(Long productId, Integer requiredAmount);
}