|  | @@ -19,6 +19,7 @@
 | 
											
												
													
														|  |  		<result column="create_time_" property="createTime" />
 |  |  		<result column="create_time_" property="createTime" />
 | 
											
												
													
														|  |  		<result column="update_time_" property="updateTime" />
 |  |  		<result column="update_time_" property="updateTime" />
 | 
											
												
													
														|  |  		<result column="tenant_id_" property="tenantId" />
 |  |  		<result column="tenant_id_" property="tenantId" />
 | 
											
												
													
														|  | 
 |  | +		<result column="organ_id_" property="organId" />
 | 
											
												
													
														|  |  		<association property="sysUser" resultMap="com.keao.edu.user.dao.SysUserDao.SysUser"/>
 |  |  		<association property="sysUser" resultMap="com.keao.edu.user.dao.SysUserDao.SysUser"/>
 | 
											
												
													
														|  |  	</resultMap>
 |  |  	</resultMap>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -53,6 +54,9 @@
 | 
											
												
													
														|  |  			<if test="tenantId != null">
 |  |  			<if test="tenantId != null">
 | 
											
												
													
														|  |  				tenant_id_ = #{tenantId},
 |  |  				tenant_id_ = #{tenantId},
 | 
											
												
													
														|  |  			</if>
 |  |  			</if>
 | 
											
												
													
														|  | 
 |  | +			<if test="organId != null">
 | 
											
												
													
														|  | 
 |  | +				organ_id_ = #{organId},
 | 
											
												
													
														|  | 
 |  | +			</if>
 | 
											
												
													
														|  |  			<if test="totalInvigilationNum != null">
 |  |  			<if test="totalInvigilationNum != null">
 | 
											
												
													
														|  |  				total_invigilation_num_ = #{totalInvigilationNum},
 |  |  				total_invigilation_num_ = #{totalInvigilationNum},
 | 
											
												
													
														|  |  			</if>
 |  |  			</if>
 | 
											
										
											
												
													
														|  | @@ -75,8 +79,8 @@
 | 
											
												
													
														|  |  	
 |  |  	
 | 
											
												
													
														|  |  	<!-- 向数据库增加一条记录 -->
 |  |  	<!-- 向数据库增加一条记录 -->
 | 
											
												
													
														|  |  	<insert id="insert" parameterType="com.keao.edu.user.entity.Teacher" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
 |  |  	<insert id="insert" parameterType="com.keao.edu.user.entity.Teacher" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
 | 
											
												
													
														|  | -		INSERT INTO teacher (user_id_,title_,subject_id_list_,salary_settlement_type_,salary_,create_time_,update_time_,tenant_id_)
 |  | 
 | 
											
												
													
														|  | -		VALUES(#{userId},#{title},#{subjectIdList},#{salarySettlementType,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},#{salary},NOW(),NOW(),#{tenantId})
 |  | 
 | 
											
												
													
														|  | 
 |  | +		INSERT INTO teacher (user_id_,title_,subject_id_list_,salary_settlement_type_,salary_,create_time_,update_time_,tenant_id_,organ_id_)
 | 
											
												
													
														|  | 
 |  | +		VALUES(#{userId},#{title},#{subjectIdList},#{salarySettlementType,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},#{salary},NOW(),NOW(),#{tenantId},#{organId})
 | 
											
												
													
														|  |  	</insert>
 |  |  	</insert>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  	<update id="delete">
 |  |  	<update id="delete">
 |