|
@@ -17,6 +17,7 @@
|
|
|
<result column="total_registration_student_num_" property="totalRegistrationStudentNum"/>
|
|
|
<result column="total_payment_amount_" property="totalPaymentAmount"/>
|
|
|
<result column="total_trans_amount_" property="totalTransAmount" />
|
|
|
+ <result column="subsidy_" property="subsidy" />
|
|
|
<result column="url_" property="url" />
|
|
|
<result column="send_url_flag_" property="sendUrlFlag" />
|
|
|
<result column="is_allow_arrange_exam_" property="isAllowArrangeExam" />
|
|
@@ -47,18 +48,18 @@
|
|
|
<!-- 向数据库增加一条记录 -->
|
|
|
<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_,
|
|
|
- self_registration_student_num_,self_payment_amount_,total_registration_student_num_,total_payment_amount_,
|
|
|
+ self_registration_student_num_,self_payment_amount_,total_registration_student_num_,total_payment_amount_,subsidy_,
|
|
|
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},
|
|
|
- #{selfRegistrationStudentNum},#{selfPaymentAmount},#{totalRegistrationStudentNum},#{totalPaymentAmount},
|
|
|
+ #{selfRegistrationStudentNum},#{selfPaymentAmount},#{totalRegistrationStudentNum},#{totalPaymentAmount},#{subsidy}
|
|
|
#{url},#{sendUrlFlag},#{isAllowArrangeExam},#{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_,
|
|
|
- self_registration_student_num_,self_payment_amount_,total_registration_student_num_,total_payment_amount_,
|
|
|
+ self_registration_student_num_,self_payment_amount_,total_registration_student_num_,total_payment_amount_,subsidy_,
|
|
|
url_,send_url_flag_,is_allow_arrange_exam_,total_trans_amount_,
|
|
|
create_time_,update_time_,tenant_id_)
|
|
|
VALUES
|
|
@@ -69,7 +70,9 @@
|
|
|
#{examOrganizationRelation.selfRegistrationStudentNum},
|
|
|
#{examOrganizationRelation.selfPaymentAmount},
|
|
|
#{examOrganizationRelation.totalRegistrationStudentNum},
|
|
|
- #{examOrganizationRelation.totalPaymentAmount},#{examOrganizationRelation.url},
|
|
|
+ #{examOrganizationRelation.totalPaymentAmount},
|
|
|
+ #{examOrganizationRelation.subsidy},
|
|
|
+ #{examOrganizationRelation.url},
|
|
|
#{examOrganizationRelation.sendUrlFlag},
|
|
|
#{examOrganizationRelation.isAllowArrangeExam},
|
|
|
#{examOrganizationRelation.totalTransAmount},
|
|
@@ -114,6 +117,9 @@
|
|
|
<if test="totalTransAmount != null">
|
|
|
total_trans_amount_ = #{totalTransAmount},
|
|
|
</if>
|
|
|
+ <if test="subsidy != null">
|
|
|
+ subsidy_ = #{subsidy}
|
|
|
+ </if>
|
|
|
<if test="organId != null">
|
|
|
organ_id_ = #{organId},
|
|
|
</if>
|
|
@@ -161,6 +167,9 @@
|
|
|
<if test="eo.totalTransAmount != null">
|
|
|
total_trans_amount_ = #{eo.totalTransAmount},
|
|
|
</if>
|
|
|
+ <if test="eo.subsidy != null">
|
|
|
+ subsidy_ = #{eo.subsidy},
|
|
|
+ </if>
|
|
|
<if test="eo.organId != null">
|
|
|
organ_id_ = #{eo.organId},
|
|
|
</if>
|