|
@@ -8,10 +8,13 @@
|
|
|
|
|
|
<resultMap type="com.keao.edu.user.entity.ExamAgencyRelation" id="ExamAgencyRelation">
|
|
<resultMap type="com.keao.edu.user.entity.ExamAgencyRelation" id="ExamAgencyRelation">
|
|
<result column="id_" property="id" />
|
|
<result column="id_" property="id" />
|
|
|
|
+
|
|
<result column="examination_basic_id_" property="examinationBasicId" />
|
|
<result column="examination_basic_id_" property="examinationBasicId" />
|
|
<result column="agency_id_" property="agencyId" />
|
|
<result column="agency_id_" property="agencyId" />
|
|
<result column="settlement_type_" property="settlementType" typeHandler="com.keao.edu.common.dal.CustomEnumTypeHandler" />
|
|
<result column="settlement_type_" property="settlementType" typeHandler="com.keao.edu.common.dal.CustomEnumTypeHandler" />
|
|
<result column="share_profit_amount_" property="shareProfitAmount" />
|
|
<result column="share_profit_amount_" property="shareProfitAmount" />
|
|
|
|
+ <result column="total_registration_student_num_" property="totalRegistrationStudentNum"/>
|
|
|
|
+ <result column="total_payment_amount_" property="totalPaymentAmount"/>
|
|
<result column="url_" property="url" />
|
|
<result column="url_" property="url" />
|
|
<result column="send_url_flag_" property="sendUrlFlag" typeHandler="com.keao.edu.common.dal.CustomEnumTypeHandler" />
|
|
<result column="send_url_flag_" property="sendUrlFlag" typeHandler="com.keao.edu.common.dal.CustomEnumTypeHandler" />
|
|
<result column="create_time_" property="createTime" />
|
|
<result column="create_time_" property="createTime" />
|
|
@@ -35,15 +38,15 @@
|
|
|
|
|
|
<!-- 向数据库增加一条记录 -->
|
|
<!-- 向数据库增加一条记录 -->
|
|
<insert id="insert" parameterType="com.keao.edu.user.entity.ExamAgencyRelation" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
<insert id="insert" parameterType="com.keao.edu.user.entity.ExamAgencyRelation" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
- INSERT INTO exam_agency_relation (examination_basic_id_,agency_id_,settlement_type_,share_profit_amount_,url_,send_url_flag_,create_time_,update_time_,tenant_id_)
|
|
|
|
- VALUES(#{examinationBasicId},#{agencyId},#{settlementType,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},#{shareProfitAmount},#{url},#{sendUrlFlag,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},NOW(),NOW(),#{tenantId})
|
|
|
|
|
|
+ INSERT INTO exam_agency_relation (examination_basic_id_,agency_id_,settlement_type_,share_profit_amount_,total_registration_student_num_,total_payment_amount_,url_,send_url_flag_,create_time_,update_time_,tenant_id_)
|
|
|
|
+ VALUES(#{examinationBasicId},#{agencyId},#{settlementType,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},#{shareProfitAmount},#{totalRegistrationStudentNum},#{totalPaymentAmount},#{url},#{sendUrlFlag,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},NOW(),NOW(),#{tenantId})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<insert id="batchInsert" parameterType="com.keao.edu.user.entity.ExamAgencyRelation" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
<insert id="batchInsert" parameterType="com.keao.edu.user.entity.ExamAgencyRelation" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
- INSERT INTO exam_agency_relation (examination_basic_id_,agency_id_,settlement_type_,share_profit_amount_,url_,send_url_flag_,create_time_,update_time_,tenant_id_)
|
|
|
|
|
|
+ INSERT INTO exam_agency_relation (examination_basic_id_,agency_id_,settlement_type_,share_profit_amount_,total_registration_student_num_,total_payment_amount_,url_,send_url_flag_,create_time_,update_time_,tenant_id_)
|
|
VALUES
|
|
VALUES
|
|
<foreach collection="examAgencyRelations" item="examAgencyRelation" separator=",">
|
|
<foreach collection="examAgencyRelations" item="examAgencyRelation" separator=",">
|
|
- (#{examAgencyRelation.examinationBasicId},#{examAgencyRelation.agencyId},#{examAgencyRelation.settlementType,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},#{examAgencyRelation.shareProfitAmount},#{examAgencyRelation.url},#{examAgencyRelation.sendUrlFlag,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},NOW(),NOW(),#{examAgencyRelation.tenantId})
|
|
|
|
|
|
+ (#{examAgencyRelation.examinationBasicId},#{examAgencyRelation.agencyId},#{examAgencyRelation.settlementType,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},#{examAgencyRelation.shareProfitAmount},#{examAgencyRelation.totalRegistrationStudentNum},#{examAgencyRelation.totalPaymentAmount},#{examAgencyRelation.url},#{examAgencyRelation.sendUrlFlag,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},NOW(),NOW(),#{examAgencyRelation.tenantId})
|
|
</foreach>
|
|
</foreach>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -72,6 +75,12 @@
|
|
<if test="shareProfitAmount != null">
|
|
<if test="shareProfitAmount != null">
|
|
share_profit_amount_ = #{shareProfitAmount},
|
|
share_profit_amount_ = #{shareProfitAmount},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="totalRegistrationStudentNum != null">
|
|
|
|
+ total_registration_student_num_ = #{totalRegistrationStudentNum},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="totalPaymentAmount != null">
|
|
|
|
+ total_payment_amount_ = #{totalPaymentAmount},
|
|
|
|
+ </if>
|
|
<if test="agencyId != null">
|
|
<if test="agencyId != null">
|
|
agency_id_ = #{agencyId},
|
|
agency_id_ = #{agencyId},
|
|
</if>
|
|
</if>
|