|
@@ -20,9 +20,8 @@
|
|
|
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
- app_id
|
|
|
- ,app_name,app_pwd,app_desc,create_date,create_user,create_user_name,
|
|
|
-update_date,update_user,update_user_name,status,platform_code
|
|
|
+ app_id,app_name,app_pwd,app_desc,create_date,create_user,create_user_name,
|
|
|
+ update_date,update_user,update_user_name,sort,status,platform_code
|
|
|
</sql>
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="SysApp">
|
|
@@ -42,18 +41,18 @@ update_date,update_user,update_user_name,status,platform_code
|
|
|
<!--单个插入-->
|
|
|
<insert id="insert" parameterType="SysApp">
|
|
|
insert into sys_app (app_id, app_name, app_pwd, app_desc, create_date, create_user, create_user_name, status,update_date,update_user,update_user_name,
|
|
|
- platform_code)
|
|
|
- values (#{appId}, #{appName}, #{appPwd}, #{appDesc}, #{createDate}, #{createUser}, #{createUsername},#{updateDate},#{updateUser},#{updateUserName}, #{status},
|
|
|
- #{platformCode})
|
|
|
+ sort, platform_code)
|
|
|
+ values (#{appId}, #{appName}, #{appPwd}, #{appDesc}, #{createDate}, #{createUser}, #{createUserName}, #{status},#{updateDate},#{updateUser},#{updateUserName},
|
|
|
+ #{sort}, #{platformCode})
|
|
|
</insert>
|
|
|
|
|
|
<!--批量插入-->
|
|
|
<insert id="insertList" parameterType="List">
|
|
|
insert into sys_app
|
|
|
- (app_id,app_name,app_pwd,app_desc,create_date,create_user,create_user_name,update_date,update_user,update_user_name,status,platform_code) values
|
|
|
+ (app_id,app_name,app_pwd,app_desc,create_date,create_user,create_user_name,update_date,update_user,update_user_name,status,sort,platform_code) values
|
|
|
<foreach collection="list" item="item" index="index" separator=",">
|
|
|
- (#{item.appId},#{item.appName},#{item.appPwd},#{item.appDesc},#{item.createDate},#{item.createUser},#{item.updateDate},#{item.updateUser},#{item.updateUserName},#{item.createUsername},
|
|
|
- #{item.status},#{item.platformCode})
|
|
|
+ (#{item.appId},#{item.appName},#{item.appPwd},#{item.appDesc},#{item.createDate},#{item.createUser},#{item.createUserName},#{item.updateDate},#{item.updateUser},#{item.updateUserName},
|
|
|
+ #{item.status},#{sort},#{item.platformCode})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
@@ -69,19 +68,21 @@ update_date,update_user,update_user_name,status,platform_code
|
|
|
<if test="appDesc != null">
|
|
|
app_desc = #{ appDesc },
|
|
|
</if>
|
|
|
- <if test="createDate != null">
|
|
|
- create_date = #{ createDate },
|
|
|
+ <if test="updateDate != null">
|
|
|
+ update_date = #{updateDate},
|
|
|
</if>
|
|
|
- <if test="createUser != null">
|
|
|
- create_user = #{ createUser },
|
|
|
+ <if test="updateUser != null">
|
|
|
+ update_user = #{updateUser},
|
|
|
</if>
|
|
|
- <if test="createUsername != null">
|
|
|
- create_user_name = #{ createUsername },
|
|
|
+ <if test="updateUserName != null">
|
|
|
+ update_user_name = #{updateUserName},
|
|
|
</if>
|
|
|
-
|
|
|
<if test="status != null">
|
|
|
status = #{status},
|
|
|
</if>
|
|
|
+ <if test="sort != null">
|
|
|
+ sort = #{sort},
|
|
|
+ </if>
|
|
|
|
|
|
<if test="platformCode != null">
|
|
|
platform_code = #{platformCode},
|