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