Просмотр исходного кода

[频道增加是否批量][新增]

release_toaliyun_real
Stormeye.Wu 7 лет назад
Родитель
Сommit
21196e9ace
2 измененных файлов: 22 добавлений и 8 удалений
  1. +16
    -6
      mallinkService/src/main/java/com/simple/domain/po/WxChannel.java
  2. +6
    -2
      mallinkService/src/main/resources/mapper/WxChannelMapper.xml

+ 16
- 6
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){


+ 6
- 2
mallinkService/src/main/resources/mapper/WxChannelMapper.xml Просмотреть файл

@@ -6,10 +6,11 @@
<result column="channel_id" jdbcType="INTEGER" property="channelId" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="img" jdbcType="VARCHAR" property="img" />
<result column="batch" jdbcType="INTEGER" property="batch" />
</resultMap>
<sql id="allColumns">
`id`,`channel_id`,`title`,`img`
`id`,`channel_id`,`title`,`img`,`batch`
</sql>

<sql id="dynamicWhereConditions">
@@ -29,7 +30,10 @@
<if test=" null != img ">
and `img` like concat('%', #{img},'%')
</if>
</if>
<if test=" null != batch ">
and `batch` = #{batch}
</if>
<if test=" null != ids ">
and id in
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">


Загрузка…
Отмена
Сохранить