|
@@ -14,7 +14,7 @@
|
|
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate"/>
|
|
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate"/>
|
|
<result column="CREATE_USER" jdbcType="VARCHAR" property="createUser"/>
|
|
<result column="CREATE_USER" jdbcType="VARCHAR" property="createUser"/>
|
|
<result column="create_user_name" jdbcType="VARCHAR" property="createUserName"/>
|
|
<result column="create_user_name" jdbcType="VARCHAR" property="createUserName"/>
|
|
- <result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/>
|
|
|
|
|
|
+ <result column="update_date" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
<result column="update_user" jdbcType="VARCHAR" property="updateUser"/>
|
|
<result column="update_user" jdbcType="VARCHAR" property="updateUser"/>
|
|
<result column="update_user_name" jdbcType="VARCHAR" property="updateUserName"/>
|
|
<result column="update_user_name" jdbcType="VARCHAR" property="updateUserName"/>
|
|
<result column="status" jdbcType="VARCHAR" property="status"/>
|
|
<result column="status" jdbcType="VARCHAR" property="status"/>
|
|
@@ -36,7 +36,7 @@
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
dept_id
|
|
dept_id
|
|
- ,dept_name,APP_ID,INS_CODE,dept_origin_id,dept_parent_id,dept_parent_name,CREATE_DATE,CREATE_USER,create_user_name,updateDate,updateUser,updateUserName,status,dept_type
|
|
|
|
|
|
+ ,dept_name,APP_ID,INS_CODE,dept_origin_id,dept_parent_id,dept_parent_name,CREATE_DATE,CREATE_USER,create_user_name,updateTime,updateUser,updateUserName,status,dept_type
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="SysDepartment">
|
|
<delete id="deleteByPrimaryKey" parameterType="SysDepartment">
|
|
@@ -59,7 +59,7 @@
|
|
CREATE_DATE, CREATE_USER, create_user_name, update_date, update_user,
|
|
CREATE_DATE, CREATE_USER, create_user_name, update_date, update_user,
|
|
update_user_name, status,dept_type)
|
|
update_user_name, status,dept_type)
|
|
values (#{deptId}, #{deptName}, #{appId}, #{insCode}, #{depOriginId}, #{depParentId}, #{depParentName},
|
|
values (#{deptId}, #{deptName}, #{appId}, #{insCode}, #{depOriginId}, #{depParentId}, #{depParentName},
|
|
- #{createDate}, #{createUser}, #{createUserName}, #{updateDate}, #{updateUser}, #{updateUserName},
|
|
|
|
|
|
+ #{createDate}, #{createUser}, #{createUserName}, #{updateTime}, #{updateUser}, #{updateUserName},
|
|
#{status},#{deptType})
|
|
#{status},#{deptType})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -69,7 +69,7 @@
|
|
(dept_id,dept_name,APP_ID,INS_CODE,dept_origin_id,dept_parent_id,dept_parent_name,CREATE_DATE,CREATE_USER,create_user_name,update_date, update_user,update_user_name,status,dept_type)
|
|
(dept_id,dept_name,APP_ID,INS_CODE,dept_origin_id,dept_parent_id,dept_parent_name,CREATE_DATE,CREATE_USER,create_user_name,update_date, update_user,update_user_name,status,dept_type)
|
|
values
|
|
values
|
|
<foreach collection="list" item="item" index="index" separator=",">
|
|
<foreach collection="list" item="item" index="index" separator=",">
|
|
- (#{item.deptId},#{item.deptName},#{item.appId},#{item.insCode},#{item.depOriginId},#{item.depParentId},#{item.depParentName},#{item.createDate},#{item.createUser},#{item.createUserName},#{updateDate},#{updateUser},#{updateUserName},#{item.status},#{item.dept_type})
|
|
|
|
|
|
+ (#{item.deptId},#{item.deptName},#{item.appId},#{item.insCode},#{item.depOriginId},#{item.depParentId},#{item.depParentName},#{item.createDate},#{item.createUser},#{item.createUserName},#{updateTime},#{updateUser},#{updateUserName},#{item.status},#{item.dept_type})
|
|
</foreach>
|
|
</foreach>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -94,8 +94,8 @@
|
|
<if test="depParentName != null depParentName!=''">
|
|
<if test="depParentName != null depParentName!=''">
|
|
dept_parent_name = #{ depParentName },
|
|
dept_parent_name = #{ depParentName },
|
|
</if>
|
|
</if>
|
|
- <if test="updateDate != null updateDate!=''">
|
|
|
|
- update_date = #{updateDate},
|
|
|
|
|
|
+ <if test="updateTime != null updateTime!=''">
|
|
|
|
+ update_date = #{updateTime},
|
|
</if>
|
|
</if>
|
|
<if test="updateUser != null updateUser!=''">
|
|
<if test="updateUser != null updateUser!=''">
|
|
update_user = #{updateUser},
|
|
update_user = #{updateUser},
|