AdaKing88
2023-08-23 ae35159387a55199e8ab150ebb97d89d68a235bd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package org.jeecg.modules.test.seata.product.service;
 
import java.math.BigDecimal;
 
/**
 * @Description: 产品接口
 * @author: zyf
 * @date: 2022/01/24
 * @version: V1.0
 */
public interface SeataProductService {
    /**
     * 扣减库存
     *
     * @param productId 商品 ID
     * @param count    扣减数量
     * @return 商品总价
     */
    BigDecimal reduceStock(Long productId, Integer count);
}