正在显示
5 个修改的文件
包含
13 行增加
和
13 行删除
| @@ -54,7 +54,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -54,7 +54,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 54 | <if test="client_id != null and client_id != ''">client_id,</if> | 54 | <if test="client_id != null and client_id != ''">client_id,</if> |
| 55 | <if test="completion_auth != null">completion_auth,</if> | 55 | <if test="completion_auth != null">completion_auth,</if> |
| 56 | <if test="create_by != null">create_by,</if> | 56 | <if test="create_by != null">create_by,</if> |
| 57 | - <if test="create_time != null">create_time,</if> | ||
| 58 | <if test="del_flag != null">del_flag,</if> | 57 | <if test="del_flag != null">del_flag,</if> |
| 59 | <if test="firmware_version != null">firmware_version,</if> | 58 | <if test="firmware_version != null">firmware_version,</if> |
| 60 | <if test="img_url != null">img_url,</if> | 59 | <if test="img_url != null">img_url,</if> |
| @@ -74,14 +73,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -74,14 +73,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 74 | <if test="update_time != null">update_time,</if> | 73 | <if test="update_time != null">update_time,</if> |
| 75 | <if test="user_id != null">user_id,</if> | 74 | <if test="user_id != null">user_id,</if> |
| 76 | <if test="payload_type != null">payload_type,</if> | 75 | <if test="payload_type != null">payload_type,</if> |
| 77 | - | 76 | + create_time, |
| 78 | </trim> | 77 | </trim> |
| 79 | <trim prefix="values (" suffix=")" suffixOverrides=","> | 78 | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| 80 | <if test="active_time != null">#{active_time},</if> | 79 | <if test="active_time != null">#{active_time},</if> |
| 81 | <if test="client_id != null and client_id != ''">#{client_id},</if> | 80 | <if test="client_id != null and client_id != ''">#{client_id},</if> |
| 82 | <if test="completion_auth != null">#{completion_auth},</if> | 81 | <if test="completion_auth != null">#{completion_auth},</if> |
| 83 | <if test="create_by != null">#{create_by},</if> | 82 | <if test="create_by != null">#{create_by},</if> |
| 84 | - <if test="create_time != null">#{create_time},</if> | ||
| 85 | <if test="del_flag != null">#{del_flag},</if> | 83 | <if test="del_flag != null">#{del_flag},</if> |
| 86 | <if test="firmware_version != null">#{firmware_version},</if> | 84 | <if test="firmware_version != null">#{firmware_version},</if> |
| 87 | <if test="img_url != null">#{img_url},</if> | 85 | <if test="img_url != null">#{img_url},</if> |
| @@ -101,6 +99,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -101,6 +99,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 101 | <if test="update_time != null">#{update_time},</if> | 99 | <if test="update_time != null">#{update_time},</if> |
| 102 | <if test="user_id != null">#{user_id},</if> | 100 | <if test="user_id != null">#{user_id},</if> |
| 103 | <if test="payload_type != null">#{payload_type},</if> | 101 | <if test="payload_type != null">#{payload_type},</if> |
| 102 | + UNIX_TIMESTAMP(NOW()), | ||
| 104 | </trim> | 103 | </trim> |
| 105 | </insert> | 104 | </insert> |
| 106 | 105 |
| @@ -36,7 +36,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -36,7 +36,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 36 | insert into iot_permission | 36 | insert into iot_permission |
| 37 | <trim prefix="(" suffix=")" suffixOverrides=","> | 37 | <trim prefix="(" suffix=")" suffixOverrides=","> |
| 38 | <if test="activity != null">activity,</if> | 38 | <if test="activity != null">activity,</if> |
| 39 | - <if test="create_time != null">create_time,</if> | ||
| 40 | <if test="describe != null">describe,</if> | 39 | <if test="describe != null">describe,</if> |
| 41 | <if test="qos != null">qos,</if> | 40 | <if test="qos != null">qos,</if> |
| 42 | <if test="retain != null">retain,</if> | 41 | <if test="retain != null">retain,</if> |
| @@ -44,10 +43,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -44,10 +43,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 44 | <if test="shared_group != null">shared_group,</if> | 43 | <if test="shared_group != null">shared_group,</if> |
| 45 | <if test="shared_subscription != null">shared_subscription,</if> | 44 | <if test="shared_subscription != null">shared_subscription,</if> |
| 46 | <if test="topic != null and topic != ''">topic,</if> | 45 | <if test="topic != null and topic != ''">topic,</if> |
| 47 | - </trim> | 46 | + create_time, |
| 47 | + </trim> | ||
| 48 | <trim prefix="values (" suffix=")" suffixOverrides=","> | 48 | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| 49 | <if test="activity != null">#{activity},</if> | 49 | <if test="activity != null">#{activity},</if> |
| 50 | - <if test="create_time != null">#{create_time},</if> | ||
| 51 | <if test="describe != null">#{describe},</if> | 50 | <if test="describe != null">#{describe},</if> |
| 52 | <if test="qos != null">#{qos},</if> | 51 | <if test="qos != null">#{qos},</if> |
| 53 | <if test="retain != null">#{retain},</if> | 52 | <if test="retain != null">#{retain},</if> |
| @@ -55,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -55,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 55 | <if test="shared_group != null">#{shared_group},</if> | 54 | <if test="shared_group != null">#{shared_group},</if> |
| 56 | <if test="shared_subscription != null">#{shared_subscription},</if> | 55 | <if test="shared_subscription != null">#{shared_subscription},</if> |
| 57 | <if test="topic != null and topic != ''">#{topic},</if> | 56 | <if test="topic != null and topic != ''">#{topic},</if> |
| 57 | + UNIX_TIMESTAMP(NOW()), | ||
| 58 | </trim> | 58 | </trim> |
| 59 | </insert> | 59 | </insert> |
| 60 | 60 |
| @@ -30,16 +30,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -30,16 +30,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 30 | <insert id="insertIotRole" parameterType="IotRole" useGeneratedKeys="true" keyProperty="id"> | 30 | <insert id="insertIotRole" parameterType="IotRole" useGeneratedKeys="true" keyProperty="id"> |
| 31 | insert into iot_role | 31 | insert into iot_role |
| 32 | <trim prefix="(" suffix=")" suffixOverrides=","> | 32 | <trim prefix="(" suffix=")" suffixOverrides=","> |
| 33 | - <if test="create_time != null">create_time,</if> | ||
| 34 | <if test="describe != null">`describe`,</if> | 33 | <if test="describe != null">`describe`,</if> |
| 35 | <if test="name != null">`name`,</if> | 34 | <if test="name != null">`name`,</if> |
| 36 | <if test="used != null">used,</if> | 35 | <if test="used != null">used,</if> |
| 36 | + create_time, | ||
| 37 | </trim> | 37 | </trim> |
| 38 | <trim prefix="values (" suffix=")" suffixOverrides=","> | 38 | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| 39 | - <if test="create_time != null">#{create_time},</if> | ||
| 40 | <if test="describe != null">#{describe},</if> | 39 | <if test="describe != null">#{describe},</if> |
| 41 | <if test="name != null">#{name},</if> | 40 | <if test="name != null">#{name},</if> |
| 42 | <if test="used != null">#{used},</if> | 41 | <if test="used != null">#{used},</if> |
| 42 | + UNIX_TIMESTAMP(NOW()), | ||
| 43 | </trim> | 43 | </trim> |
| 44 | </insert> | 44 | </insert> |
| 45 | 45 |
| @@ -42,7 +42,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -42,7 +42,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 42 | insert into iot_things_model | 42 | insert into iot_things_model |
| 43 | <trim prefix="(" suffix=")" suffixOverrides=","> | 43 | <trim prefix="(" suffix=")" suffixOverrides=","> |
| 44 | <if test="create_by != null">create_by,</if> | 44 | <if test="create_by != null">create_by,</if> |
| 45 | - <if test="create_time != null">create_time,</if> | ||
| 46 | <if test="data_type != null and data_type != ''">data_type,</if> | 45 | <if test="data_type != null and data_type != ''">data_type,</if> |
| 47 | <if test="del_flag != null">del_flag,</if> | 46 | <if test="del_flag != null">del_flag,</if> |
| 48 | <if test="identifier != null and identifier != ''">identifier,</if> | 47 | <if test="identifier != null and identifier != ''">identifier,</if> |
| @@ -56,10 +55,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -56,10 +55,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 56 | <if test="update_by != null">update_by,</if> | 55 | <if test="update_by != null">update_by,</if> |
| 57 | <if test="update_time != null">update_time,</if> | 56 | <if test="update_time != null">update_time,</if> |
| 58 | <if test="user_id != null">user_id,</if> | 57 | <if test="user_id != null">user_id,</if> |
| 58 | + create_time, | ||
| 59 | </trim> | 59 | </trim> |
| 60 | <trim prefix="values (" suffix=")" suffixOverrides=","> | 60 | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| 61 | <if test="create_by != null">#{create_by},</if> | 61 | <if test="create_by != null">#{create_by},</if> |
| 62 | - <if test="create_time != null">#{create_time},</if> | ||
| 63 | <if test="data_type != null and data_type != ''">#{data_type},</if> | 62 | <if test="data_type != null and data_type != ''">#{data_type},</if> |
| 64 | <if test="del_flag != null">#{del_flag},</if> | 63 | <if test="del_flag != null">#{del_flag},</if> |
| 65 | <if test="identifier != null and identifier != ''">#{identifier},</if> | 64 | <if test="identifier != null and identifier != ''">#{identifier},</if> |
| @@ -73,6 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -73,6 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 73 | <if test="update_by != null">#{update_by},</if> | 72 | <if test="update_by != null">#{update_by},</if> |
| 74 | <if test="update_time != null">#{update_time},</if> | 73 | <if test="update_time != null">#{update_time},</if> |
| 75 | <if test="user_id != null">#{user_id},</if> | 74 | <if test="user_id != null">#{user_id},</if> |
| 75 | + UNIX_TIMESTAMP(NOW()), | ||
| 76 | </trim> | 76 | </trim> |
| 77 | </insert> | 77 | </insert> |
| 78 | 78 |
| @@ -34,7 +34,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -34,7 +34,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 34 | <insert id="insertIotUser" parameterType="IotUser" useGeneratedKeys="true" keyProperty="id"> | 34 | <insert id="insertIotUser" parameterType="IotUser" useGeneratedKeys="true" keyProperty="id"> |
| 35 | insert into iot_user | 35 | insert into iot_user |
| 36 | <trim prefix="(" suffix=")" suffixOverrides=","> | 36 | <trim prefix="(" suffix=")" suffixOverrides=","> |
| 37 | - <if test="create_time != null">create_time,</if> | ||
| 38 | <if test="encryption_type != null">encryption_type,</if> | 37 | <if test="encryption_type != null">encryption_type,</if> |
| 39 | <if test="open_encryption != null">open_encryption,</if> | 38 | <if test="open_encryption != null">open_encryption,</if> |
| 40 | <if test="password != null and password != ''">password,</if> | 39 | <if test="password != null and password != ''">password,</if> |
| @@ -42,9 +41,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -42,9 +41,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 42 | <if test="salt != null">salt,</if> | 41 | <if test="salt != null">salt,</if> |
| 43 | <if test="used != null">used,</if> | 42 | <if test="used != null">used,</if> |
| 44 | <if test="username != null and username != ''">username,</if> | 43 | <if test="username != null and username != ''">username,</if> |
| 45 | - </trim> | 44 | + create_time, |
| 45 | + </trim> | ||
| 46 | <trim prefix="values (" suffix=")" suffixOverrides=","> | 46 | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| 47 | - <if test="create_time != null">#{create_time},</if> | 47 | + |
| 48 | <if test="encryption_type != null">#{encryption_type},</if> | 48 | <if test="encryption_type != null">#{encryption_type},</if> |
| 49 | <if test="open_encryption != null">#{open_encryption},</if> | 49 | <if test="open_encryption != null">#{open_encryption},</if> |
| 50 | <if test="password != null and password != ''">#{password},</if> | 50 | <if test="password != null and password != ''">#{password},</if> |
| @@ -52,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -52,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 52 | <if test="salt != null">#{salt},</if> | 52 | <if test="salt != null">#{salt},</if> |
| 53 | <if test="used != null">#{used},</if> | 53 | <if test="used != null">#{used},</if> |
| 54 | <if test="username != null and username != ''">#{username},</if> | 54 | <if test="username != null and username != ''">#{username},</if> |
| 55 | + UNIX_TIMESTAMP(NOW()), | ||
| 55 | </trim> | 56 | </trim> |
| 56 | </insert> | 57 | </insert> |
| 57 | 58 |
-
请 注册 或 登录 后发表评论