Authored by tanling

限购码管理接口 修正

... ... @@ -643,6 +643,7 @@
|属性名称|类型|例子|说明|是否必填|长度限制|
|--------|----|----|----|--------|--------|
|skn|String|50000204|指定商品SKN|是|14
|id|String|34|限购码Id|否|14
---------------------
### 对应SQL的操作库表
... ... @@ -680,11 +681,17 @@
```
```xml
<select id="selectSkuByProductId" resultType="java.lang.String" parameterType="java.lang.Integer" >
select
erp_sku_id
from storage
where product_id = #{productId,jdbcType=INTEGER}
<select id="getLimitCodeBySkn" resultMap="BaseResultMap" >
select
<include refid="Base_Column_List" />
from limit_code
where 1=1
<if test="skn != null and skn != ''" >
and limit_skn = #{skn,jdbcType=VARCHAR}
</if>
<if test="id != null and id != ''" >
and id != #{id,jdbcType=INTEGER}
</if>
</select>
```
... ...