@ -95,8 +95,9 @@ public interface HighOrderMapperExt {
@Select({"<script>"+
" SELECT"+
" (select mer.merchant_name from high_merchant mer where EXISTS (select 1 from high_coupon cou where cou.id = a.goods_id and mer.id = cou.merchant_id)) merchantName,"+
" case a.goods_type when 1 then '卡券' when 2 then '金币充值' end goodsType, "+
" case a.goods_type when 1 then '卡券' when 2 then '金币充值' when 2 then '团油充值' end goodsType, "+
" a.goods_name goodsName, "+
" a.goods_type goodsTypeId,"+
" case a.giveaway_type when 1 then '赠送' when 0 then '购买' end giveawayType,"+
" b.order_no orderNo,"+
" b.mem_name memName,"+
@ -110,10 +111,14 @@ public interface HighOrderMapperExt {
" case a.giveaway_type when 0 then case when b.pay_gold is null then 0 else pay_gold end when 1 then 0 end payGold,"+
" case a.giveaway_type when 0 then b.pay_price when 1 then 0 end payPrice,"+
" case a.giveaway_type when 0 then case when b.pay_gold is not null then convert(b.pay_gold / 100,decimal(10,2)) else b.pay_real_price end when 1 then 0 end payRealPrice,"+
" case b.order_status when 1 then '待支付' when 2 then '已支付' when 3 then '已完成' when 4 then '已退款' when 5 then '已取消' end orderStatus, "+
" case b.order_status when 1 then '待支付' when 2 then '已支付' when 3 then '已完成' when 4 then '已退款' when 5 then '已取消' when 5 then '退款中' when 5 then '退款失败' end orderStatus, "+