抢购配置读取从表

This commit is contained in:
2026-05-31 07:56:33 +08:00
parent 76297caa81
commit e3e47dab48
9 changed files with 102 additions and 10 deletions

View File

@@ -39,6 +39,8 @@ public interface ILbGoodsService extends IService<LbGoods> {
/**
* 按 {@code total_money} 从大到小选取金额小于39000的 {@code lb_goods},调用 hxrd {@code /api/order/buy} 抢购;
* 成功笔数达到 {@code maxBuyCount} 后停止,且循环抢购总次数不超过 {@code maxBuyCount} 的5倍。
*
* @param token 可选;非空时作为请求头 token否则使用 {@code lb_third_integration_config} 中的 goodsApiToken
*/
Map<String, Object> rushBuy(String token, Integer maxBuyCount);
Map<String, Object> rushBuy(String tenantId, String token, Integer maxBuyCount);
}