导出
This commit is contained in:
@@ -84,4 +84,6 @@ public interface OmsOrderMapper extends BaseMapper<OmsOrder> {
|
||||
List<OmsOrderLocation> getPickupPoint(String id);
|
||||
|
||||
List<OrderExcelVo> listExcel(@Param(Constants.WRAPPER) QueryWrapper<OmsOrder> qw);
|
||||
|
||||
List<OmsOrderItem> selectOmsOrderItem(String orderSn);
|
||||
}
|
||||
|
||||
@@ -308,34 +308,38 @@
|
||||
</select>
|
||||
|
||||
<select id="listExcel" resultType="com.zscat.mallplus.oms.vo.OrderExcelVo">
|
||||
select omo.order_sn orderSn,
|
||||
omo.create_time createTime,
|
||||
omo.receiver_phone receiverPhone,
|
||||
omo.member_username memberUsername,
|
||||
omo.goods_name goodsName,
|
||||
omo.total_amount totalAmount,
|
||||
omo.receiver_detail_address receiverDetailAddress,
|
||||
case omo.status
|
||||
when 1 then '支付成功,没有回调'
|
||||
when 2 then '待发货'
|
||||
when 3 then '待收货'
|
||||
when 4 then '待评价'
|
||||
when 5 then '已完成'
|
||||
when 6 then '维权中'
|
||||
when 7 then '维权已完成'
|
||||
when 8 then '待分享'
|
||||
when 13 then '申请退款'
|
||||
when 14 then '已退款'
|
||||
when 15 then '已关闭'
|
||||
when 16 then '无效订单'
|
||||
when 17 then '已删除'
|
||||
when 12 then '待付款'
|
||||
end as statusName,
|
||||
ooi.product_quantity productQuantity
|
||||
select distinct omo.order_sn orderSn,
|
||||
omo.create_time createTime,
|
||||
omo.receiver_phone receiverPhone,
|
||||
omo.member_username memberUsername,
|
||||
omo.goods_name goodsName,
|
||||
omo.total_amount totalAmount,
|
||||
omo.receiver_detail_address receiverDetailAddress,
|
||||
case omo.status
|
||||
when 1 then '支付成功,没有回调'
|
||||
when 2 then '待发货'
|
||||
when 3 then '待收货'
|
||||
when 4 then '待评价'
|
||||
when 5 then '已完成'
|
||||
when 6 then '维权中'
|
||||
when 7 then '维权已完成'
|
||||
when 8 then '待分享'
|
||||
when 13 then '申请退款'
|
||||
when 14 then '已退款'
|
||||
when 15 then '已关闭'
|
||||
when 16 then '无效订单'
|
||||
when 17 then '已删除'
|
||||
when 12 then '待付款'
|
||||
end as statusName
|
||||
from oms_order omo
|
||||
left join oms_order_item ooi on ooi.order_sn = omo.order_sn
|
||||
<where>
|
||||
${ew.sqlSegment}
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectOmsOrderItem" resultType="com.zscat.mallplus.oms.entity.OmsOrderItem">
|
||||
select *
|
||||
from oms_order_item
|
||||
where order_sn = #{orderSn}
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user