dev-discount
袁野 4 years ago
parent c58f940015
commit 751649a511
  1. 6
      hai-service/src/main/java/com/hai/dao/HighOrderMapperExt.java
  2. 26
      hai-service/src/main/java/com/hai/model/HighOrderData.java

@ -44,10 +44,10 @@ public interface HighOrderMapperExt {
@Select({ @Select({
"<script>", "<script>",
"select", "select",
"coupon_code_id, child_order_id,order_no,mem_name,mem_phone,pay_model,a.pay_type as pay_type, coupon.merchant_id as merchant_id, store_id,pay_gold,pay_price,pay_real_price, ", "coupon_code_id, child_order_id, goods_name , giveaway_type , order_no,mem_name,mem_phone,pay_model,a.pay_type as pay_type, coupon.merchant_id as merchant_id, store_id,pay_gold,pay_price,pay_real_price, ",
"pay_serial_no,order_status,total_price,a.create_time as create_time ,order_id,company_id, goods_type ", "pay_serial_no,order_status,total_price,a.create_time as create_time ,order_id,company_id, goods_type ",
"from high_coupon coupon join ( select * from high_order od ", "from high_coupon coupon join ( select * from high_order od ",
"join (select cc.id as coupon_code_id, cc.child_order_id, merchant_id,coupon_id,order_id,store_id, goods_type ", "join (select cc.id as coupon_code_id, co.goods_name , co.giveaway_type , cc.child_order_id, merchant_id,coupon_id,order_id,store_id, goods_type ",
"from high_coupon_code cc join high_child_order co on cc.child_order_id = co.id) cocc on cocc.order_id = od.id ", "from high_coupon_code cc join high_child_order co on cc.child_order_id = co.id) cocc on cocc.order_id = od.id ",
") a on coupon.id = a.coupon_id ", ") a on coupon.id = a.coupon_id ",
"where ", "where ",
@ -73,6 +73,8 @@ public interface HighOrderMapperExt {
@Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER), @Result(column="pay_type", property="payType", jdbcType=JdbcType.INTEGER),
@Result(column="pay_gold", property="payGold", jdbcType=JdbcType.INTEGER), @Result(column="pay_gold", property="payGold", jdbcType=JdbcType.INTEGER),
@Result(column="pay_price", property="payPrice", jdbcType=JdbcType.DECIMAL), @Result(column="pay_price", property="payPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR),
@Result(column="giveaway_type", property="giveawayType", jdbcType=JdbcType.BIT),
@Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL), @Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_serial_no", property="paySerialNo", jdbcType=JdbcType.VARCHAR), @Result(column="pay_serial_no", property="paySerialNo", jdbcType=JdbcType.VARCHAR),
@Result(column="order_status", property="orderStatus", jdbcType=JdbcType.INTEGER), @Result(column="order_status", property="orderStatus", jdbcType=JdbcType.INTEGER),

@ -35,6 +35,16 @@ public class HighOrderData extends HighOrder {
*/ */
private Integer goodsType; private Integer goodsType;
/**
* 商品的名称
*/
private String goodsName;
/**
* 是否是赠品 0 1
*/
private Boolean giveawayType;
public Long getChildOrderId() { public Long getChildOrderId() {
return childOrderId; return childOrderId;
} }
@ -82,4 +92,20 @@ public class HighOrderData extends HighOrder {
public void setGoodsType(Integer goodsType) { public void setGoodsType(Integer goodsType) {
this.goodsType = goodsType; this.goodsType = goodsType;
} }
public String getGoodsName() {
return goodsName;
}
public void setGoodsName(String goodsName) {
this.goodsName = goodsName;
}
public Boolean getGiveawayType() {
return giveawayType;
}
public void setGiveawayType(Boolean giveawayType) {
this.giveawayType = giveawayType;
}
} }

Loading…
Cancel
Save