|
@@ -14,7 +14,7 @@
|
|
|
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate"/>
|
|
|
<result column="CREATE_USER" jdbcType="VARCHAR" property="createUser"/>
|
|
|
<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_name" jdbcType="VARCHAR" property="updateUserName"/>
|
|
|
<result column="status" jdbcType="VARCHAR" property="status"/>
|
|
@@ -36,7 +36,7 @@
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
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>
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="SysDepartment">
|
|
@@ -59,7 +59,7 @@
|
|
|
CREATE_DATE, CREATE_USER, create_user_name, update_date, update_user,
|
|
|
update_user_name, status,dept_type)
|
|
|
values (#{deptId}, #{deptName}, #{appId}, #{insCode}, #{depOriginId}, #{depParentId}, #{depParentName},
|
|
|
- #{createDate}, #{createUser}, #{createUserName}, #{updateDate}, #{updateUser}, #{updateUserName},
|
|
|
+ #{createDate}, #{createUser}, #{createUserName}, #{updateTime}, #{updateUser}, #{updateUserName},
|
|
|
#{status},#{deptType})
|
|
|
</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)
|
|
|
values
|
|
|
<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>
|
|
|
</insert>
|
|
|
|
|
@@ -94,8 +94,8 @@
|
|
|
<if test="depParentName != null depParentName!=''">
|
|
|
dept_parent_name = #{ depParentName },
|
|
|
</if>
|
|
|
- <if test="updateDate != null updateDate!=''">
|
|
|
- update_date = #{updateDate},
|
|
|
+ <if test="updateTime != null updateTime!=''">
|
|
|
+ update_date = #{updateTime},
|
|
|
</if>
|
|
|
<if test="updateUser != null updateUser!=''">
|
|
|
update_user = #{updateUser},
|