Showing
1 changed file
with
48 additions
and
50 deletions
@@ -20,57 +20,55 @@ | @@ -20,57 +20,55 @@ | ||
20 | 20 | ||
21 | ### 对应SQL的操作库表 | 21 | ### 对应SQL的操作库表 |
22 | 22 | ||
23 | -``` | ||
24 | <insert id="insertSelective" parameterType="com.yohobuy.platform.dal.guang.model.ArticleSort"> | 23 | <insert id="insertSelective" parameterType="com.yohobuy.platform.dal.guang.model.ArticleSort"> |
25 | - insert into article_sort | ||
26 | - <trim prefix="(" suffix=")" suffixOverrides=","> | ||
27 | - <if test="id != null"> | ||
28 | - id, | ||
29 | - </if> | ||
30 | - <if test="parentId != null"> | ||
31 | - parent_id, | ||
32 | - </if> | ||
33 | - <if test="name != null"> | ||
34 | - name, | ||
35 | - </if> | ||
36 | - <if test="status != null"> | ||
37 | - status, | ||
38 | - </if> | ||
39 | - <if test="orderBy != null"> | ||
40 | - order_by, | ||
41 | - </if> | ||
42 | - <if test="advertCode != null"> | ||
43 | - advert_code, | ||
44 | - </if> | ||
45 | - <if test="createTime != null"> | ||
46 | - create_time, | ||
47 | - </if> | ||
48 | - </trim> | ||
49 | - <trim prefix="values (" suffix=")" suffixOverrides=","> | ||
50 | - <if test="id != null"> | ||
51 | - #{id,jdbcType=INTEGER}, | ||
52 | - </if> | ||
53 | - <if test="parentId != null"> | ||
54 | - #{parentId,jdbcType=INTEGER}, | ||
55 | - </if> | ||
56 | - <if test="name != null"> | ||
57 | - #{name,jdbcType=VARCHAR}, | ||
58 | - </if> | ||
59 | - <if test="status != null"> | ||
60 | - #{status,jdbcType=TINYINT}, | ||
61 | - </if> | ||
62 | - <if test="orderBy != null"> | ||
63 | - #{orderBy,jdbcType=TINYINT}, | ||
64 | - </if> | ||
65 | - <if test="advertCode != null"> | ||
66 | - #{advertCode,jdbcType=VARCHAR}, | ||
67 | - </if> | ||
68 | - <if test="createTime != null"> | ||
69 | - #{createTime,jdbcType=INTEGER}, | ||
70 | - </if> | ||
71 | - </trim> | ||
72 | - </insert> | ||
73 | -``` | 24 | + insert into article_sort |
25 | + <trim prefix="(" suffix=")" suffixOverrides=","> | ||
26 | + <if test="id != null"> | ||
27 | + id, | ||
28 | + </if> | ||
29 | + <if test="parentId != null"> | ||
30 | + parent_id, | ||
31 | + </if> | ||
32 | + <if test="name != null"> | ||
33 | + name, | ||
34 | + </if> | ||
35 | + <if test="status != null"> | ||
36 | + status, | ||
37 | + </if> | ||
38 | + <if test="orderBy != null"> | ||
39 | + order_by, | ||
40 | + </if> | ||
41 | + <if test="advertCode != null"> | ||
42 | + advert_code, | ||
43 | + </if> | ||
44 | + <if test="createTime != null"> | ||
45 | + create_time, | ||
46 | + </if> | ||
47 | + </trim> | ||
48 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | ||
49 | + <if test="id != null"> | ||
50 | + #{id,jdbcType=INTEGER}, | ||
51 | + </if> | ||
52 | + <if test="parentId != null"> | ||
53 | + #{parentId,jdbcType=INTEGER}, | ||
54 | + </if> | ||
55 | + <if test="name != null"> | ||
56 | + #{name,jdbcType=VARCHAR}, | ||
57 | + </if> | ||
58 | + <if test="status != null"> | ||
59 | + #{status,jdbcType=TINYINT}, | ||
60 | + </if> | ||
61 | + <if test="orderBy != null"> | ||
62 | + #{orderBy,jdbcType=TINYINT}, | ||
63 | + </if> | ||
64 | + <if test="advertCode != null"> | ||
65 | + #{advertCode,jdbcType=VARCHAR}, | ||
66 | + </if> | ||
67 | + <if test="createTime != null"> | ||
68 | + #{createTime,jdbcType=INTEGER}, | ||
69 | + </if> | ||
70 | + </trim> | ||
71 | + </insert> | ||
74 | 72 | ||
75 | ### 错误编码 | 73 | ### 错误编码 |
76 | 74 |
-
Please register or login to post a comment