2025-06-30 15:16:46 +08:00
|
|
|
package edu.whut.infrastructure.dao;
|
|
|
|
import edu.whut.infrastructure.dao.po.GroupBuyOrder;
|
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
2025-07-09 21:33:12 +08:00
|
|
|
import org.apache.ibatis.annotations.Param;
|
2025-06-30 15:16:46 +08:00
|
|
|
|
2025-07-07 16:52:27 +08:00
|
|
|
import java.util.List;
|
|
|
|
import java.util.Set;
|
|
|
|
|
2025-06-30 15:16:46 +08:00
|
|
|
/**
|
|
|
|
* 用户拼单
|
|
|
|
*/
|
|
|
|
@Mapper
|
|
|
|
public interface IGroupBuyOrderDao {
|
|
|
|
|
|
|
|
void insert(GroupBuyOrder groupBuyOrder);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 更新锁单数量
|
|
|
|
* @param teamId
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
int updateAddLockCount(String teamId);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 减少锁单数量
|
|
|
|
* @param teamId
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
int updateSubtractionLockCount(String teamId);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 查询拼团人数是否已满
|
|
|
|
* @param teamId
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
GroupBuyOrder queryGroupBuyProgress(String teamId);
|
|
|
|
|
2025-07-02 19:49:10 +08:00
|
|
|
GroupBuyOrder queryGroupBuyTeamByTeamId(String teamId);
|
|
|
|
|
|
|
|
int updateAddCompleteCount(String teamId);
|
|
|
|
|
|
|
|
int updateOrderStatus2COMPLETE(String teamId);
|
|
|
|
|
2025-07-09 21:33:12 +08:00
|
|
|
List<GroupBuyOrder> queryGroupBuyProgressByTeamIds(@Param("teamIds") Set<String> teamIds);
|
2025-07-07 16:52:27 +08:00
|
|
|
|
2025-07-09 21:33:12 +08:00
|
|
|
Integer queryAllTeamCount(@Param("teamIds") Set<String> teamIds);
|
2025-07-07 16:52:27 +08:00
|
|
|
|
2025-07-09 21:33:12 +08:00
|
|
|
Integer queryAllTeamCompleteCount(@Param("teamIds") Set<String> teamIds);
|
2025-07-07 16:52:27 +08:00
|
|
|
|
2025-07-09 21:33:12 +08:00
|
|
|
Integer queryAllUserCount(@Param("teamIds") Set<String> teamIds);
|
2025-07-07 16:52:27 +08:00
|
|
|
|
|
|
|
List<String> queryActiveTeamIdsByActivityId(Long activityId);
|
|
|
|
|
2025-07-21 11:24:41 +08:00
|
|
|
Integer queryInUserCount(@Param("teamIds") Set<String> teamIdSet);
|
2025-07-25 14:20:22 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 未支付退单
|
|
|
|
*/
|
|
|
|
int unpaid2Refund(GroupBuyOrder groupBuyOrderReq);
|
2025-06-30 15:16:46 +08:00
|
|
|
}
|