package com.yeshi.fanli.dao.mybatis; import java.util.Date; import java.util.List; import org.apache.ibatis.annotations.Param; import com.yeshi.fanli.entity.taobao.PidOrder; public interface PidOrderMapper { int deleteByPrimaryKey(Long id); int insert(PidOrder record); int insertSelective(PidOrder record); PidOrder selectByPrimaryKey(Long id); List getPidOrderListByOrderId(String orderId); List selectByUid(Long uid); List selectByState(@Param("state") String state, @Param("count") int count); // 获取能够处理的订单列表 List getPidOrderListCanUpdate(int count); // 根据订单号获取能够处理的订单列表 List getPidOrderListCanUpdateByOrderId(String orderId); // 获取能够结算的列表 List getCanBalanceList(int count); // 能够结算的用户列表 List getUidCanBalanceList(); List getCanBalanceListByUid(Long uid); int updateByPrimaryKeySelective(PidOrder record); int updateByPrimaryKey(PidOrder record); long getPidOrderNormalCount(@Param("startTime") Date startTime, @Param("endTime") Date endTime); PidOrder getPidOrderByHongBaoId(Long hongBaoId); /** * 查找某个时间段以前的某个状态的订单列表 * * @param state * -状态 * @param maxTime * -时间最大值(毫秒) * @return */ List getPidOrderListbyStateAndMaxTime(@Param("state") String state, @Param("maxTime") long maxTime); }