增加抢购货品接口

This commit is contained in:
2026-05-28 19:16:08 +08:00
parent 412aa1f8d8
commit 608e5a7adc
5 changed files with 43 additions and 69 deletions

View File

@@ -3,7 +3,6 @@ package com.rj.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rj.entity.LbGoods;
import java.util.List;
import java.util.Map;
public interface ILbGoodsService extends IService<LbGoods> {
@@ -35,7 +34,7 @@ public interface ILbGoodsService extends IService<LbGoods> {
Map<String, Object> syncFromHxrGoods(String tenantId);
/**
* 按 id 列表查询 {@code lb_goods}使用 token 调用 hxrd {@code /api/order/buy} 抢购。
* 按 {@code total_money} 从大到小选取 {@code lb_goods},调用 hxrd {@code /api/order/buy} 抢购。
*/
Map<String, Object> rushBuy(String token, Integer maxBuyCount, List<Long> idList);
Map<String, Object> rushBuy(String token, Integer maxBuyCount);
}