@ -64,43 +64,30 @@ public interface OutRechargeOrderMapperExt {
@Select({"<script>"+
"SELECT"+
" a.order_no orderNo,"+
" a.user_name userName,"+
" a.user_phone userPhone,"+
" case a.recharge_model when 1 then '电信话费' when 2 then '移动话费' when 3 then '联通话费' end rechargeModelName,"+
" case a.recharge_type when 1 then '快充' when 2 then '慢充' end rechargeTypeName,"+
" a.recharge_content rechargeContent,"+
" a.remarks remarks,"+
" a.id_card cardNo,"+
" a.recharge_name rechargeName,"+
" case a.pay_type when 1 then '微信' when 2 then '工会卡' when 3 then '积分' when 4 then '银联' end payTypeName,"+
" a.order_price orderPrice,"+
" a.pay_price payPrice,"+
" a.pay_real_price payRealPrice,"+
" case a.status when 1 then '待支付' when 2 then '已支付' when 3 then '已完成' when 4 then '已取消' when 5 then '已退款' when 6 then '退款中' end statusName,"+
" a.create_timed createTime,"+
" a.pay_time payTime,"+
" a.cancel_time cancelTime,"+
" a.finish_time finishTime,"+
" a.refund_time refundTime,"+
" a.refund_fee refundFee,"+
" a.out_refund_no outRefundNo,"+
" a.refund_id refundId"+
" order_no as orderNo,"+
" operator_name as operatorName,"+
" case recharge_type when 1 then '快充' when 2 then '慢充' end rechargeTypeName ,"+
" case pay_type when 2 then '微信支付' when 3 then '工会卡支付' when 4 then '银联支付' when null then '积分抵扣' end payTypeName,"+
" recharge_content as rechargeContent,recharge_price as rechargePrice,pay_price as payPrice,discount_deduction_price as discountDeductionPrice,integral_deduction_price as integralDeductionPrice,pay_real_price as payRealPrice,"+
" user_name as userName, user_phone as userPhone, create_timed as createTimed, pay_time as payTime,"+
" case pay_status when 100 then '已完成' when 101 then '待支付' when 102 then '已支付' when 104 then '已取消' when 105 then '已退款' end payStatusName,"+
" case recharge_status when 201 then '充值中' when 202 then '充值成功' when 203 then '充值失败' when 204 then '未充值' end rechargeStatusName"+
" FROM"+
" out_recharge_order a where 1 = 1 "+
"<if test='map.status != null'> and a.`status` = #{map.status} </if>",
"<if test='map.payType != null'> and a.`pay_type` = #{map.payType} </if>",
"<if test='map.code != null'> and a.`Identification_code` = #{map.code} </if>",
"<if test='map.orderNo != null'> and a.`order_no` = #{map.orderNo} </if>",
"<if test='map.rechargeType != null'> and a.`recharge_type` = #{map.rechargeType} </if>",
"<if test='map.rechargeModel != null'> and a.`recharge_model` = #{map.rechargeModel} </if>",
"<if test='map.rechargeContent != null'> and a.`recharge_content` LIKE '%${map.rechargeContent}%' </if>",
"<if test='map.idCard != null'> and a.`id_card` LIKE '%${map.idCard}%' </if>",
"<if test='map.userPhone != null'> and a.`user_phone` = #{map.userPhone} </if>",