Authored by tanling

长度限制修正

# 审核限购码接口(通过,驳回,作废)接口
> 接口名: `/limitCode/auditLimitCode`
### 方法
> POST JSONRAW
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|长度限制|
|--------|----|----|----|--------|--------|
|id|Integer|67|限购码id|是|14
|status|Integer|1|优惠码状态,1:审核通过 2:驳回 4:作废|是|1
|reason|String||驳回理由|驳回的时候需要|255
---------------------
### 对应SQL的操作库表
```xml
<update id="auditLimitCode" parameterType="com.yohobuy.platform.dal.promotion.model.LimitCode">
update limit_code
<set>
<if test="status != null" >
status = #{status,jdbcType=INTEGER},
</if>
<if test="auditTime != null" >
audit_time = #{auditTime,jdbcType=VARCHAR},
</if>
<if test="reason != null" >
reason = #{reason,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
```
```xml
<insert id="addLimitCodeBatch" parameterType="java.util.List">
insert into limit_code_batchno (batchNo, code,sku, status)
values
<foreach collection="list" item="item" index="index" separator="," >
(#{item.batchNo},#{item.code},#{item.sku},#{item.status})
</foreach>
</insert>
```
### 响应码
-------------------------
|响应码code|消息|说明|
|--------|----|----|
|200| 审核成功./驳回成功./限购码作废成功.| |
|400|参数id不能为空./参数status不合法.| |
|500|审核失败.| |
### 返回
``` json
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "审核成功."
}
```
# 审核限购码接口(通过,驳回,作废)接口
> 接口名: `/limitCode/auditLimitCode`
### 方法
> POST JSONRAW
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|长度限制|
|--------|----|----|----|--------|--------|
|id|Integer|67|限购码id|是|1~14
|status|Integer|1|优惠码状态,1:审核通过 2:驳回 4:作废|是|1
|reason|String|不规范|驳回理由|驳回的时候需要|1~255
---------------------
### 对应SQL的操作库表
```xml
<update id="auditLimitCode" parameterType="com.yohobuy.platform.dal.promotion.model.LimitCode">
update limit_code
<set>
<if test="status != null" >
status = #{status,jdbcType=INTEGER},
</if>
<if test="auditTime != null" >
audit_time = #{auditTime,jdbcType=VARCHAR},
</if>
<if test="reason != null" >
reason = #{reason,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
```
```xml
<insert id="addLimitCodeBatch" parameterType="java.util.List">
insert into limit_code_batchno (batchNo, code,sku, status)
values
<foreach collection="list" item="item" index="index" separator="," >
(#{item.batchNo},#{item.code},#{item.sku},#{item.status})
</foreach>
</insert>
```
### 响应码
-------------------------
|响应码code|消息|说明|
|--------|----|----|
|200| 审核成功./驳回成功./限购码作废成功.| |
|400|参数id不能为空./参数status不合法.| |
|500|审核失败.| |
### 返回
``` json
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "审核成功."
}
```
... ...