package com.yanshu.dao;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.mockito.internal.stubbing.defaultanswers.ReturnsSmartNulls;
@Mapper
public interface OrdersDao2 {
/**
* 完结特征
*
* @param map
* @return
*/
//
@Select(value = { "\tselect \n" + "\tseller_id,\n" + "\tthedate,\n"
//
+ "\t convert(decimal(18,4),succ_trade_amt) AS '已收货金额' ,\n" + "\t succ_trade_num AS '交易成功笔数' ,\n"
//
+ "\t succ_auction_num AS '已收货商品数' ,\n" + "\t\tsucc_refund_trade_amt AS '退款成功金额' ,\n"
//
+ "\t 1-(case when (alipay_order_num+succ_refund_order_num)=0 then 0 else convert(decimal(18,4),convert(decimal(18,4), succ_refund_order_num/convert(decimal(18,4),(alipay_order_num+succ_refund_order_num)))) end) '七天完结率' from ysf_ShopTrade "
//
+ "where seller_id=#{sellerid} and thedate between #{begintime} and #{endtime}" })
@SelectProvider(type=ordersmapper.class,method="findFeature")
List