ソースを参照

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

release_toaliyun_real
Stormeye.Wu 7年前
コミット
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") @io.swagger.annotations.ApiModelProperty(value="渠道ID",name="channelId")
private Integer channelId; private Integer channelId;
/*渠道名**/
/**渠道名**/
@io.swagger.annotations.ApiModelProperty(value="渠道名",name="title") @io.swagger.annotations.ApiModelProperty(value="渠道名",name="title")
private String title; private String title;
/*图片url**/
/**图片url**/
@io.swagger.annotations.ApiModelProperty(value="图片url",name="img") @io.swagger.annotations.ApiModelProperty(value="图片url",name="img")
private String img; private String img;
/**是否支持批量投放**/
@io.swagger.annotations.ApiModelProperty(value="是否支持批量投放0:不支持,1:支持",name="batch")
private boolean batch;
public Integer getChannelId() { public Integer getChannelId() {
return channelId; return channelId;
} }
@@ -69,14 +72,21 @@ public class WxChannel implements Serializable {
img = _img; img = _img;
} }


public boolean isBatch() {
return batch;
}


public void setBatch(boolean batch) {
this.batch = batch;
}


public static enum Field public static enum Field
{ {
Id_ASC("`id` ASC"),Id_DESC("`id` DESC") 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; private String value;
Field(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="channel_id" jdbcType="INTEGER" property="channelId" />
<result column="title" jdbcType="VARCHAR" property="title" /> <result column="title" jdbcType="VARCHAR" property="title" />
<result column="img" jdbcType="VARCHAR" property="img" /> <result column="img" jdbcType="VARCHAR" property="img" />
<result column="batch" jdbcType="INTEGER" property="batch" />
</resultMap> </resultMap>
<sql id="allColumns"> <sql id="allColumns">
`id`,`channel_id`,`title`,`img`
`id`,`channel_id`,`title`,`img`,`batch`
</sql> </sql>


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


読み込み中…
キャンセル
保存