|
@@ -12,6 +12,8 @@
|
|
|
<result column="organ_id_" property="organId" />
|
|
|
<result column="settlement_type_" property="settlementType" typeHandler="com.keao.edu.common.dal.CustomEnumTypeHandler" />
|
|
|
<result column="share_profit_amount_" property="shareProfitAmount" />
|
|
|
+ <result column="self_registration_student_num_" property="selfRegistrationStudentNum" />
|
|
|
+ <result column="self_payment_amount_" property="selfPaymentAmount" />
|
|
|
<result column="total_registration_student_num_" property="totalRegistrationStudentNum"/>
|
|
|
<result column="total_payment_amount_" property="totalPaymentAmount"/>
|
|
|
<result column="total_trans_amount_" property="totalTransAmount" />
|
|
@@ -39,24 +41,30 @@
|
|
|
|
|
|
<!-- 向数据库增加一条记录 -->
|
|
|
<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_,total_trans_amount_,
|
|
|
+ INSERT INTO exam_organization_relation (examination_basic_id_,organ_id_,settlement_type_,share_profit_amount_,
|
|
|
+ self_registration_student_num_,self_payment_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},
|
|
|
+ #{selfRegistrationStudentNum},#{selfPaymentAmount},#{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_,total_trans_amount_,
|
|
|
+ INSERT INTO exam_organization_relation (examination_basic_id_,organ_id_,settlement_type_,share_profit_amount_,
|
|
|
+ self_registration_student_num_,self_payment_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.shareProfitAmount},
|
|
|
+ #{examOrganizationRelation.selfRegistrationStudentNum},
|
|
|
+ #{examOrganizationRelation.selfPaymentAmount},
|
|
|
+ #{examOrganizationRelation.totalRegistrationStudentNum},
|
|
|
#{examOrganizationRelation.totalPaymentAmount},#{examOrganizationRelation.url},
|
|
|
#{examOrganizationRelation.sendUrlFlag,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},
|
|
|
#{examOrganizationRelation.isAllowArrangeExam,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},
|
|
@@ -87,6 +95,12 @@
|
|
|
<if test="shareProfitAmount != null">
|
|
|
share_profit_amount_ = #{shareProfitAmount},
|
|
|
</if>
|
|
|
+ <if test="selfRegistrationStudentNum != null">
|
|
|
+ self_registration_student_num_ = #{selfRegistrationStudentNum},
|
|
|
+ </if>
|
|
|
+ <if test="selfPaymentAmount != null">
|
|
|
+ self_payment_amount_ = #{selfPaymentAmount},
|
|
|
+ </if>
|
|
|
<if test="totalRegistrationStudentNum != null">
|
|
|
total_registration_student_num_ = #{totalRegistrationStudentNum},
|
|
|
</if>
|
|
@@ -128,6 +142,12 @@
|
|
|
<if test="eo.shareProfitAmount != null">
|
|
|
share_profit_amount_ = #{eo.shareProfitAmount},
|
|
|
</if>
|
|
|
+ <if test="eo.selfRegistrationStudentNum != null">
|
|
|
+ self_registration_student_num_ = #{eo.selfRegistrationStudentNum},
|
|
|
+ </if>
|
|
|
+ <if test="eo.selfPaymentAmount != null">
|
|
|
+ self_payment_amount_ = #{eo.selfPaymentAmount},
|
|
|
+ </if>
|
|
|
<if test="eo.totalRegistrationStudentNum != null">
|
|
|
total_registration_student_num_ = #{eo.totalRegistrationStudentNum},
|
|
|
</if>
|