|  | @@ -14,6 +14,7 @@
 | 
	
		
			
				|  |  |  		<result column="share_profit_amount_" property="shareProfitAmount" />
 | 
	
		
			
				|  |  |  		<result column="total_registration_student_num_" property="totalRegistrationStudentNum"/>
 | 
	
		
			
				|  |  |  		<result column="total_payment_amount_" property="totalPaymentAmount"/>
 | 
	
		
			
				|  |  | +		<result column="total_trans_amount_" property="totalTransAmount" />
 | 
	
		
			
				|  |  |  		<result column="url_" property="url" />
 | 
	
		
			
				|  |  |  		<result column="send_url_flag_" property="sendUrlFlag" typeHandler="com.keao.edu.common.dal.CustomEnumTypeHandler" />
 | 
	
		
			
				|  |  |  		<result column="is_allow_arrange_exam_" property="isAllowArrangeExam" typeHandler="com.keao.edu.common.dal.CustomEnumTypeHandler" />
 | 
	
	
		
			
				|  | @@ -38,15 +39,29 @@
 | 
	
		
			
				|  |  |  	
 | 
	
		
			
				|  |  |  	<!-- 向数据库增加一条记录 -->
 | 
	
		
			
				|  |  |  	<insert id="insert" parameterType="com.keao.edu.user.entity.ExamOrganizationRelation" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
 | 
	
		
			
				|  |  | -		INSERT INTO exam_organization_relation (examination_basic_id_,organ_id_,settlement_type_,share_profit_amount_,total_registration_student_num_,total_payment_amount_,url_,send_url_flag_,is_allow_arrange_exam_,create_time_,update_time_,tenant_id_)
 | 
	
		
			
				|  |  | -		VALUES(#{examinationBasicId},#{organId},#{settlementType,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},#{shareProfitAmount},#{totalRegistrationStudentNum},#{totalPaymentAmount},#{url},#{sendUrlFlag,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},#{isAllowArrangeExam,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},NOW(),NOW(),#{tenantId})
 | 
	
		
			
				|  |  | +		INSERT INTO exam_organization_relation (examination_basic_id_,organ_id_,settlement_type_,share_profit_amount_,total_registration_student_num_,
 | 
	
		
			
				|  |  | +		total_payment_amount_,url_,send_url_flag_,is_allow_arrange_exam_,total_trans_amount_,
 | 
	
		
			
				|  |  | +		create_time_,update_time_,tenant_id_)
 | 
	
		
			
				|  |  | +		VALUES(#{examinationBasicId},#{organId},#{settlementType,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},#{shareProfitAmount},
 | 
	
		
			
				|  |  | +		#{totalRegistrationStudentNum},#{totalPaymentAmount},#{url},#{sendUrlFlag,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  | +		#{isAllowArrangeExam,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},totalTransAmount,
 | 
	
		
			
				|  |  | +		NOW(),NOW(),#{tenantId})
 | 
	
		
			
				|  |  |  	</insert>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <insert id="batchInsert" parameterType="com.keao.edu.user.entity.ExamOrganizationRelation" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
 | 
	
		
			
				|  |  | -		INSERT INTO exam_organization_relation (examination_basic_id_,organ_id_,settlement_type_,share_profit_amount_,total_registration_student_num_,total_payment_amount_,url_,send_url_flag_,is_allow_arrange_exam_,create_time_,update_time_,tenant_id_)
 | 
	
		
			
				|  |  | +		INSERT INTO exam_organization_relation (examination_basic_id_,organ_id_,settlement_type_,share_profit_amount_,total_registration_student_num_,
 | 
	
		
			
				|  |  | +		total_payment_amount_,url_,send_url_flag_,is_allow_arrange_exam_,total_trans_amount_,
 | 
	
		
			
				|  |  | +		create_time_,update_time_,tenant_id_)
 | 
	
		
			
				|  |  |  		VALUES
 | 
	
		
			
				|  |  |  		<foreach collection="examOrganizationRelations" item="examOrganizationRelation" separator=",">
 | 
	
		
			
				|  |  | -			(#{examOrganizationRelation.examinationBasicId},#{examOrganizationRelation.organId},#{examOrganizationRelation.settlementType,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},#{examOrganizationRelation.shareProfitAmount},#{examOrganizationRelation.totalRegistrationStudentNum},#{examOrganizationRelation.totalPaymentAmount},#{examOrganizationRelation.url},#{examOrganizationRelation.sendUrlFlag,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},#{examOrganizationRelation.isAllowArrangeExam,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},NOW(),NOW(),#{examOrganizationRelation.tenantId})
 | 
	
		
			
				|  |  | +			(#{examOrganizationRelation.examinationBasicId},#{examOrganizationRelation.organId},
 | 
	
		
			
				|  |  | +			#{examOrganizationRelation.settlementType,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  | +			#{examOrganizationRelation.shareProfitAmount},#{examOrganizationRelation.totalRegistrationStudentNum},
 | 
	
		
			
				|  |  | +			#{examOrganizationRelation.totalPaymentAmount},#{examOrganizationRelation.url},
 | 
	
		
			
				|  |  | +			#{examOrganizationRelation.sendUrlFlag,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  | +			#{examOrganizationRelation.isAllowArrangeExam,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  | +			#{examOrganizationRelation.totalTransAmount},
 | 
	
		
			
				|  |  | +			NOW(),NOW(),#{examOrganizationRelation.tenantId})
 | 
	
		
			
				|  |  |  		</foreach>
 | 
	
		
			
				|  |  |  	</insert>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -57,9 +72,6 @@
 | 
	
		
			
				|  |  |  			<if test="examinationBasicId != null">
 | 
	
		
			
				|  |  |  				examination_basic_id_ = #{examinationBasicId},
 | 
	
		
			
				|  |  |  			</if>
 | 
	
		
			
				|  |  | -			<if test="id != null">
 | 
	
		
			
				|  |  | -				id_ = #{id},
 | 
	
		
			
				|  |  | -			</if>
 | 
	
		
			
				|  |  |  			<if test="sendUrlFlag != null">
 | 
	
		
			
				|  |  |  				send_url_flag_ = #{sendUrlFlag,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  |  			</if>
 | 
	
	
		
			
				|  | @@ -81,6 +93,9 @@
 | 
	
		
			
				|  |  |  			<if test="totalPaymentAmount != null">
 | 
	
		
			
				|  |  |  				total_payment_amount_ = #{totalPaymentAmount},
 | 
	
		
			
				|  |  |  			</if>
 | 
	
		
			
				|  |  | +			<if test="totalTransAmount != null">
 | 
	
		
			
				|  |  | +				total_trans_amount_ = #{totalTransAmount},
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  |  			<if test="organId != null">
 | 
	
		
			
				|  |  |  				organ_id_ = #{organId},
 | 
	
		
			
				|  |  |  			</if>
 | 
	
	
		
			
				|  | @@ -119,6 +134,9 @@
 | 
	
		
			
				|  |  |  				<if test="eo.totalPaymentAmount != null">
 | 
	
		
			
				|  |  |  					total_payment_amount_ = #{eo.totalPaymentAmount},
 | 
	
		
			
				|  |  |  				</if>
 | 
	
		
			
				|  |  | +				<if test="eo.totalTransAmount != null">
 | 
	
		
			
				|  |  | +					total_trans_amount_ = #{eo.totalTransAmount},
 | 
	
		
			
				|  |  | +				</if>
 | 
	
		
			
				|  |  |  				<if test="eo.organId != null">
 | 
	
		
			
				|  |  |  					organ_id_ = #{eo.organId},
 | 
	
		
			
				|  |  |  				</if>
 |