Showing
1 changed file
with
25 additions
and
25 deletions
@@ -19,32 +19,32 @@ | @@ -19,32 +19,32 @@ | ||
19 | 19 | ||
20 | ### 对应SQL的操作库表 | 20 | ### 对应SQL的操作库表 |
21 | 21 | ||
22 | -``` | 22 | + |
23 | <update id="updateByPrimaryKeySelective" parameterType="com.yohobuy.platform.dal.guang.model.ArticleSort"> | 23 | <update id="updateByPrimaryKeySelective" parameterType="com.yohobuy.platform.dal.guang.model.ArticleSort"> |
24 | - update article_sort | ||
25 | - <set> | ||
26 | - <if test="parentId > 0 or parentId = 0 "> | ||
27 | - parent_id = #{parentId,jdbcType=INTEGER}, | ||
28 | - </if> | ||
29 | - <if test="name != null"> | ||
30 | - name = #{name,jdbcType=VARCHAR}, | ||
31 | - </if> | ||
32 | - <if test="status != null"> | ||
33 | - status = #{status,jdbcType=TINYINT}, | ||
34 | - </if> | ||
35 | - <if test="orderBy != null"> | ||
36 | - order_by = #{orderBy,jdbcType=TINYINT}, | ||
37 | - </if> | ||
38 | - <if test="advertCode != null"> | ||
39 | - advert_code = #{advertCode,jdbcType=VARCHAR}, | ||
40 | - </if> | ||
41 | - <if test="createTime != null"> | ||
42 | - create_time = #{createTime,jdbcType=INTEGER}, | ||
43 | - </if> | ||
44 | - </set> | ||
45 | - where id = #{id,jdbcType=INTEGER} | ||
46 | - </update> | ||
47 | -``` | 24 | + update article_sort |
25 | + <set> | ||
26 | + <if test="parentId > 0 or parentId = 0 "> | ||
27 | + parent_id = #{parentId,jdbcType=INTEGER}, | ||
28 | + </if> | ||
29 | + <if test="name != null"> | ||
30 | + name = #{name,jdbcType=VARCHAR}, | ||
31 | + </if> | ||
32 | + <if test="status != null"> | ||
33 | + status = #{status,jdbcType=TINYINT}, | ||
34 | + </if> | ||
35 | + <if test="orderBy != null"> | ||
36 | + order_by = #{orderBy,jdbcType=TINYINT}, | ||
37 | + </if> | ||
38 | + <if test="advertCode != null"> | ||
39 | + advert_code = #{advertCode,jdbcType=VARCHAR}, | ||
40 | + </if> | ||
41 | + <if test="createTime != null"> | ||
42 | + create_time = #{createTime,jdbcType=INTEGER}, | ||
43 | + </if> | ||
44 | + </set> | ||
45 | + where id = #{id,jdbcType=INTEGER} | ||
46 | + </update> | ||
47 | + | ||
48 | 48 | ||
49 | ### 错误编码 | 49 | ### 错误编码 |
50 | 50 |
-
Please register or login to post a comment