From e1199e4ce28352ea6204351ef8d51e659bc9bf97 Mon Sep 17 00:00:00 2001 From: Stormeye Wu Date: Fri, 14 Dec 2018 19:27:34 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=82=A8=E5=80=BC=E5=8D=A1][=E6=96=B0?= =?UTF-8?q?=E5=A2=9E]:=E6=B7=BB=E5=8A=A0=E5=88=B8=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=BD=AC=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/iformall/domain/po/WxCoupon.java | 13 +++++++++++++ .../src/main/resources/mapper/WxCouponMapper.xml | 8 +++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/mallinkService/src/main/java/com/iformall/domain/po/WxCoupon.java b/mallinkService/src/main/java/com/iformall/domain/po/WxCoupon.java index a7decb01f..468ca5ed6 100644 --- a/mallinkService/src/main/java/com/iformall/domain/po/WxCoupon.java +++ b/mallinkService/src/main/java/com/iformall/domain/po/WxCoupon.java @@ -135,6 +135,9 @@ public class WxCoupon implements Serializable { /*业态**/ @io.swagger.annotations.ApiModelProperty(value="业态",name="business") private Integer business; + /*是否支持转送(0:不支持,1支持)**/ + @io.swagger.annotations.ApiModelProperty(value="是否支持转送(0:不支持,1支持)",name="supportTransfer") + private Integer supportTransfer; public String getTenantId() { return tenantId; } @@ -273,6 +276,15 @@ public class WxCoupon implements Serializable { public void setBusiness(Integer _business) { business = _business; } + + public Integer getSupportTransfer() { + return supportTransfer; + } + + public void setSupportTransfer(Integer supportTransfer) { + this.supportTransfer = supportTransfer; + } + public String getSalePriceStr() { if(salePrice!=null) { salePriceStr = new BigDecimal(salePrice).divide(new BigDecimal(100)).toString(); @@ -367,6 +379,7 @@ public class WxCoupon implements Serializable { ,CreateDate_ASC("`create_date` ASC"),CreateDate_DESC("`create_date` DESC") ,UpdateDate_ASC("`update_date` ASC"),UpdateDate_DESC("`update_date` DESC") ,Business_ASC("`business` ASC"),Business_DESC("`business` DESC") + ,SupportTransfer_ASC("`support_transfer` ASC"),SupportTransfer_DESC("`support_transfer` DESC") ; private String value; Field(String value){ diff --git a/mallinkService/src/main/resources/mapper/WxCouponMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponMapper.xml index 4c8254b7f..9ea0e5bd3 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponMapper.xml @@ -26,10 +26,11 @@ + - `id`,`tenant_id`,`type`,`cover_img`,`title`,`sub_title`,`sale_price`,`use_price`,`use_limit_quantity`,`send_type`,`valid_type`,`valid_start_date`,`valid_end_date`,`valid_days`,`detail`,`price`,`unit`,`remain_inventory`,`inventory`,`remark`,`status`,`create_date`,`update_date`,`business` + `id`,`tenant_id`,`type`,`cover_img`,`title`,`sub_title`,`sale_price`,`use_price`,`use_limit_quantity`,`send_type`,`valid_type`,`valid_start_date`,`valid_end_date`,`valid_days`,`detail`,`price`,`unit`,`remain_inventory`,`inventory`,`remark`,`status`,`create_date`,`update_date`,`business`,`support_transfer` @@ -131,6 +132,10 @@ and `business` = #{business} + + and `support_transfer` = #{supportTransfer} + + and id in @@ -172,6 +177,7 @@ +