package com.yeshi.fanli.dao.mybatis.taobao;
|
|
import java.util.List;
|
import java.util.Map;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import com.yeshi.fanli.entity.taobao.TaoBaoOrder;
|
|
public interface TaoBaoOrderMapper {
|
|
int deleteByPrimaryKey(Long id);
|
|
int insert(TaoBaoOrder record);
|
|
int insertSelective(TaoBaoOrder record);
|
|
TaoBaoOrder selectByPrimaryKey(Long id);
|
|
// 通过订单号获取订单列表
|
List<TaoBaoOrder> selectTaoBaoOrderByOrderId(String orderId);
|
|
// 通过交易ID获取订单
|
TaoBaoOrder selectTaoBaoOrderByTradeId(String tradeId);
|
|
List<TaoBaoOrder> listByTradeId(String tradeId);
|
|
int updateByPrimaryKeySelective(TaoBaoOrder record);
|
|
int updateByPrimaryKey(TaoBaoOrder record);
|
|
// 根据订单号删除数据
|
int deleteByOrderId(String orderId);
|
|
/**
|
* 统计--订单类型区分
|
*
|
* @return
|
*/
|
Map<String, Object> countByOdrerType();
|
|
/**
|
* 统计今日订单
|
*
|
* @return
|
*/
|
int countToday();
|
|
/**
|
* 统计昨日订单
|
*
|
* @return
|
*/
|
int countYesterday();
|
|
/**
|
* 统计当日预估收益
|
*
|
* @param date
|
* 2018-09-01
|
* @return
|
*/
|
double countEstimate(@Param("date") String date);
|
|
List<TaoBaoOrder> getStateByOrderIdAndPayment(@Param("orderId") String orderId, @Param("payment") String payment);
|
|
TaoBaoOrder selectLatestByAuctionId(long auctionId);
|
|
/**
|
* 统计所有订单
|
*
|
* @param channel
|
* @return
|
*/
|
List<Map<String, Object>> countOrderNumber(@Param("dateType") Integer dateType, @Param("year") String year,
|
@Param("startTime") String startTime, @Param("endTime") String endTime);
|
|
/**
|
* 获取长期未更新的订单
|
*
|
* @param start
|
* @param count
|
* @return
|
*/
|
List<TaoBaoOrder> listLongTimeNoUpdateOrders(@Param("start") long start, @Param("count") int count);
|
|
/**
|
* 获取所有订单列表
|
*
|
* @param orderNo
|
* @param start
|
* @param count
|
* @return
|
*/
|
List<TaoBaoOrder> listAllOrder(@Param("orderNo") String orderNo, @Param("start") long start,
|
@Param("count") int count);
|
|
/**
|
* 所有订单数量
|
*
|
* @param orderNo
|
* @return
|
*/
|
long countAllOrder(@Param("orderNo") String orderNo);
|
}
|