From 21196e9aceae1800655cca0120fe0b6fb5539f2f Mon Sep 17 00:00:00 2001 From: "Stormeye.Wu" Date: Sat, 8 Sep 2018 14:32:56 +0800 Subject: [PATCH] =?UTF-8?q?[=E9=A2=91=E9=81=93=E5=A2=9E=E5=8A=A0=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E6=89=B9=E9=87=8F][=E6=96=B0=E5=A2=9E]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/simple/domain/po/WxChannel.java | 22 ++++++++++++++----- .../main/resources/mapper/WxChannelMapper.xml | 8 +++++-- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/mallinkService/src/main/java/com/simple/domain/po/WxChannel.java b/mallinkService/src/main/java/com/simple/domain/po/WxChannel.java index 5a20ac9da..85f3c6eb0 100644 --- a/mallinkService/src/main/java/com/simple/domain/po/WxChannel.java +++ b/mallinkService/src/main/java/com/simple/domain/po/WxChannel.java @@ -41,15 +41,18 @@ public class WxChannel implements Serializable { - /*渠道ID**/ + /**渠道ID**/ @io.swagger.annotations.ApiModelProperty(value="渠道ID",name="channelId") private Integer channelId; - /*渠道名**/ + /**渠道名**/ @io.swagger.annotations.ApiModelProperty(value="渠道名",name="title") private String title; - /*图片url**/ + /**图片url**/ @io.swagger.annotations.ApiModelProperty(value="图片url",name="img") private String img; + /**是否支持批量投放**/ + @io.swagger.annotations.ApiModelProperty(value="是否支持批量投放0:不支持,1:支持",name="batch") + private boolean batch; public Integer getChannelId() { return channelId; } @@ -69,14 +72,21 @@ public class WxChannel implements Serializable { img = _img; } + public boolean isBatch() { + return batch; + } + public void setBatch(boolean batch) { + this.batch = batch; + } public static enum Field { Id_ASC("`id` ASC"),Id_DESC("`id` DESC") - ,ChannelId_ASC("`channel_id` ASC"),ChannelId_DESC("`channel_id` DESC") - ,Title_ASC("`title` ASC"),Title_DESC("`title` DESC") - ,Img_ASC("`img` ASC"),Img_DESC("`img` DESC") + ,ChannelId_ASC("`channel_id` ASC"),ChannelId_DESC("`channel_id` DESC") + ,Title_ASC("`title` ASC"),Title_DESC("`title` DESC") + ,Img_ASC("`img` ASC"),Img_DESC("`img` DESC") + ,Batch_ASC("`batch` ASC"),atch_DESC("`batch` DESC") ; private String value; Field(String value){ diff --git a/mallinkService/src/main/resources/mapper/WxChannelMapper.xml b/mallinkService/src/main/resources/mapper/WxChannelMapper.xml index 28bf27c11..d5badeed7 100644 --- a/mallinkService/src/main/resources/mapper/WxChannelMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxChannelMapper.xml @@ -6,10 +6,11 @@ + - `id`,`channel_id`,`title`,`img` + `id`,`channel_id`,`title`,`img`,`batch` @@ -29,7 +30,10 @@ and `img` like concat('%', #{img},'%') - + + + and `batch` = #{batch} + and id in