|
|
@@ -3,6 +3,7 @@ package com.cyksj.service.exchange;
|
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
|
import com.cyksj.dto.Result;
|
|
|
import com.cyksj.model.entity.ExchangeCode;
|
|
|
+import com.cyksj.model.entity.GoodsDon;
|
|
|
import com.cyksj.model.entity.GoodsDonSku;
|
|
|
import com.cyksj.model.entity.GroupsRelation;
|
|
|
import com.cyksj.model.entity.OrderDon;
|
|
|
@@ -48,7 +49,7 @@ public interface ExchangeCodeService extends IService<ExchangeCode> {
|
|
|
* Attempts one ticket allocation without swallowing the failure. Multi-quantity
|
|
|
* fulfillment uses this entry so its per-slot transaction can roll back cleanly.
|
|
|
*/
|
|
|
- GroupsRelation getRelationNoOrderOnce(GoodsDonSku sku, Long userId, Long yhsId);
|
|
|
+ GroupsRelation getRelationNoOrderOnce(GoodsDon goods, GoodsDonSku sku, Long userId, Long yhsId);
|
|
|
|
|
|
/** Releases only the seat lock owned by the specified user. */
|
|
|
void releaseRelationLock(Long relationId, Long userId);
|