package com.yeshi.fanli.dao.mybatis.order.dividents;
|
|
import java.util.Date;
|
import java.util.List;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import com.yeshi.fanli.dao.BaseMapper;
|
import com.yeshi.fanli.entity.order.dividents.TeamDividentsSourceOrderUserMap;
|
|
public interface TeamDividentsSourceOrderUserMapMapper extends BaseMapper<TeamDividentsSourceOrderUserMap> {
|
|
TeamDividentsSourceOrderUserMap selectByPrimaryKeyForUpdate(Long id);
|
|
/**
|
* 查询列表
|
*
|
* @param sourceOrderId
|
* @param sourceUid
|
* @param targetUid
|
* @param preSendTime
|
* @param stateList
|
* @param typeList
|
* @param start
|
* @param count
|
* @return
|
*/
|
List<TeamDividentsSourceOrderUserMap> list(@Param("sourceOrderId") Long sourceOrderId,
|
@Param("sourceUid") Long sourceUid, @Param("targetUid") Long targetUid,
|
@Param("preSendTime") Date preSendTime, @Param("stateList") List<Integer> stateList,
|
@Param("typeList") List<Integer> typeList, @Param("start") long start, @Param("count") int count);
|
|
/**
|
* 查询数量
|
*
|
* @param sourceOrderId
|
* @param sourceUid
|
* @param targetUid
|
* @param preSendTime
|
* @param stateList
|
* @param typeList
|
* @return
|
*/
|
long count(@Param("sourceOrderId") Long sourceOrderId, @Param("sourceUid") Long sourceUid,
|
@Param("targetUid") Long targetUid, @Param("preSendTime") Date preSendTime,
|
@Param("stateList") List<Integer> stateList, @Param("typeList") List<Integer> typeList);
|
|
/**
|
* 查询可结算的列表
|
* @param preSendTime
|
* @param start
|
* @param count
|
* @return
|
*/
|
List<Long> listCanSendSourceUidByPreSendTime(@Param("preSendTime") Date preSendTime, @Param("start") long start,
|
@Param("count") int count);
|
|
/**
|
* 查询可结算的数量
|
* @param preSendTime
|
* @param start
|
* @param count
|
* @return
|
*/
|
long countCanSendSourceUidByPreSendTime(@Param("preSendTime") Date preSendTime);
|
|
/**
|
* 源用户相关订单失效
|
* @Title: invalidOrderBySourceUid
|
* @Description:
|
* @param sourceUid
|
* @param beiZhu
|
* @param stateList
|
* @return
|
* int 返回类型
|
* @throws
|
*/
|
int invalidOrderBySourceUid(@Param("sourceUid") Long sourceUid, @Param("beiZhu") String beiZhu,
|
@Param("stateList") List<Integer> stateList);
|
|
}
|