|
|
# 更新排队活动接口
|
|
|
|
|
|
> 接口名: `/DrawlineActivityRest/updateDrawlineActivity`
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
> POST JSONRAW
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|长度限制|
|
|
|
|--------|----|----|----|--------|--------|
|
|
|
|activityId|int||活动ID|是|11
|
|
|
|activityName|String||活动名称|是|255
|
|
|
|beginTime|int||活动开始时间|是|
|
|
|
|endTime|int||活动结束时间|是|
|
|
|
|activityDesc|int||活动描述|是|255
|
|
|
|prizeList|int||奖品列表|是|255
|
|
|
|numberLimit|int||排队人数上限|否|8
|
|
|
---------------------
|
|
|
|
|
|
``` json
|
|
|
|
|
|
```
|
|
|
|
|
|
### 响应码
|
|
|
|
|
|
-------------------------
|
|
|
|响应码code|消息|说明|
|
|
|
|--------|----|----|
|
|
|
|200| 活动修正成功.| |
|
|
|
|500| 活动id不能为0/活动名称不能为空/活动名称已经存在| |
|
|
|
|
|
|
```xml
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yohobuy.platform.dal.activity.model.DrawlineActivity">
|
|
|
update drawline_activity
|
|
|
<set>
|
|
|
<if test="activityName != null">
|
|
|
activity_name = #{activityName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="beginTime != null">
|
|
|
begin_time = #{beginTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="endTime != null">
|
|
|
end_time = #{endTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="topBanner != null">
|
|
|
top_banner = #{topBanner,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="backgroundStyle != null">
|
|
|
background_style = #{backgroundStyle,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="activityDesc != null">
|
|
|
activity_desc = #{activityDesc,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
status = #{status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
update_time=#{updateTime},
|
|
|
</if>
|
|
|
<if test="numberLimit != null">
|
|
|
number_limit=#{numberLimit},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
```
|
|
|
|
|
|
```xml
|
|
|
<update id="updateByPrimaryKeySelective"
|
|
|
parameterType="com.yohobuy.platform.dal.activity.model.DrawlinePrizeSetting">
|
|
|
update drawline_prize_setting
|
|
|
<set>
|
|
|
<if test="prize != null">
|
|
|
prize = #{prize,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="prizeType != null">
|
|
|
prize_type = #{prizeType,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="activityId != null">
|
|
|
activity_id = #{activityId,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="whiteList != null">
|
|
|
white_list = #{whiteList,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="realUserNum != null">
|
|
|
real_user_num = #{realUserNum,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="sockUserNum != null">
|
|
|
sock_user_num = #{sockUserNum,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
update_time = #{updateTime},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
```
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "活动修正成功."
|
|
|
}
|
|
|
|
|
|
# 更新排队活动接口
|
|
|
|
|
|
> 接口名: `/DrawlineActivityRest/updateDrawlineActivity`
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
> POST JSONRAW
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|长度限制|
|
|
|
|--------|----|----|----|--------|--------|
|
|
|
|activityId|int|33|活动ID|是|1~11
|
|
|
|activityName|String|damao-太斯特抽奖|活动名称|是|1~255
|
|
|
|beginTime|int|1456827717|活动开始时间|是|10
|
|
|
|endTime|int|1456837717|活动结束时间|是|10
|
|
|
|activityDesc|String|http://www.baidu.com|活动描述|是|1~255
|
|
|
|prizeList|int||奖品列表|是|255
|
|
|
|numberLimit|int|2|排队人数上限|否|8
|
|
|
---------------------
|
|
|
|
|
|
|
|
|
### 响应码
|
|
|
|
|
|
-------------------------
|
|
|
|响应码code|消息|说明|
|
|
|
|--------|----|----|
|
|
|
|200| 活动修正成功.| |
|
|
|
|500| 活动id不能为0/活动名称不能为空/活动名称已经存在| |
|
|
|
|
|
|
```xml
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yohobuy.platform.dal.activity.model.DrawlineActivity">
|
|
|
update drawline_activity
|
|
|
<set>
|
|
|
<if test="activityName != null">
|
|
|
activity_name = #{activityName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="beginTime != null">
|
|
|
begin_time = #{beginTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="endTime != null">
|
|
|
end_time = #{endTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="topBanner != null">
|
|
|
top_banner = #{topBanner,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="backgroundStyle != null">
|
|
|
background_style = #{backgroundStyle,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="activityDesc != null">
|
|
|
activity_desc = #{activityDesc,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
status = #{status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
update_time=#{updateTime},
|
|
|
</if>
|
|
|
<if test="numberLimit != null">
|
|
|
number_limit=#{numberLimit},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
```
|
|
|
|
|
|
```xml
|
|
|
<update id="updateByPrimaryKeySelective"
|
|
|
parameterType="com.yohobuy.platform.dal.activity.model.DrawlinePrizeSetting">
|
|
|
update drawline_prize_setting
|
|
|
<set>
|
|
|
<if test="prize != null">
|
|
|
prize = #{prize,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="prizeType != null">
|
|
|
prize_type = #{prizeType,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="activityId != null">
|
|
|
activity_id = #{activityId,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="whiteList != null">
|
|
|
white_list = #{whiteList,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="realUserNum != null">
|
|
|
real_user_num = #{realUserNum,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="sockUserNum != null">
|
|
|
sock_user_num = #{sockUserNum,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
update_time = #{updateTime},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
```
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "活动修正成功."
|
|
|
}
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|