diff --git a/hai-service/src/main/java/com/hai/dao/order/OrderMapperExt.java b/hai-service/src/main/java/com/hai/dao/order/OrderMapperExt.java index 22aaf27e..9f858455 100644 --- a/hai-service/src/main/java/com/hai/dao/order/OrderMapperExt.java +++ b/hai-service/src/main/java/com/hai/dao/order/OrderMapperExt.java @@ -61,9 +61,11 @@ public interface OrderMapperExt { " b.create_time createTime," + " b.pay_time payTime," + " b.finish_time finishTime," + - " case b.exception_status when 1 then '异常' when 0 then '正常' else '未知' end exceptionStatus" + + " case b.exception_status when 1 then '异常' when 0 then '正常' else '未知' end exceptionStatus," + + " c.cou_no couNo" + " from high_child_order a" + " LEFT JOIN high_order b on b.id = a.order_id" + + " LEFT JOIN (select child_order_id, cou_no from high_coupon_code_other where child_order_id is not null GROUP BY child_order_id) c on c.child_order_id = a.id" + " LEFT JOIN high_coupon d on d.id = a.goods_id" + " where a.goods_type = 1" + " and d.company_id = #{param.companyId} " + diff --git a/hai-service/src/main/java/com/hai/order/model/OrderCouponModel.java b/hai-service/src/main/java/com/hai/order/model/OrderCouponModel.java index 6d3b2f3f..75f21170 100644 --- a/hai-service/src/main/java/com/hai/order/model/OrderCouponModel.java +++ b/hai-service/src/main/java/com/hai/order/model/OrderCouponModel.java @@ -99,4 +99,8 @@ public class OrderCouponModel { @ColumnWidth(10) @ExcelProperty(value = "异常状态") private String exceptionStatus; + + @ColumnWidth(50) + @ExcelProperty(value = "券码") + private String couNo; }