35 lines
654 B
Java
35 lines
654 B
Java
|
package edu.whut.infrastructure.dao;
|
||
|
import edu.whut.infrastructure.dao.po.GroupBuyOrder;
|
||
|
import org.apache.ibatis.annotations.Mapper;
|
||
|
|
||
|
/**
|
||
|
* 用户拼单
|
||
|
*/
|
||
|
@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);
|
||
|
|
||
|
}
|