优化立案申请功能

This commit is contained in:
qitz
2023-10-17 15:30:21 +08:00
parent 8a9eb6198d
commit 6ace1d3102
8 changed files with 198 additions and 7 deletions
@@ -22,11 +22,17 @@
<result property="applicationOrganId" column="application_organ_id" />
<result property="applicationOrganName" column="application_organ_name" />
<result property="compLegalPerson" column="comp_legal_person" />
<result property="compLegalperPost" column="comp_legalper_post" />
<result property="responSex" column="respon_sex" />
<result property="responBirth" column="respon_birth" />
</resultMap>
<select id="selectCaseAffiliate" parameterType="CaseAffiliate" resultMap="CaseAffiliateResult">
select c.id ,c.case_appli_id ,c.identity_type ,c.name ,c.identity_num ,c.contact_telphone ,c.contact_address ,
c.work_address ,c.work_telphone ,c.name_agent, c.identity_num_agent ,c.contact_telphone_agent ,c.contact_address_agent,
c.comp_legal_person,c.comp_legalper_post,c.respon_sex,c.respon_birth,
c.track_num,c.application_organ_id,c.application_organ_name
from case_affiliate c
<where>
@@ -54,11 +60,13 @@
<insert id="batchCaseAffiliate">
insert into case_affiliate(case_appli_id, identity_type,application_organ_id,application_organ_name,name,identity_num,contact_telphone,
contact_address,work_address,work_telphone ,name_agent,identity_num_agent,contact_telphone_agent,
comp_legal_person,comp_legalper_post,respon_sex ,respon_birth,
contact_address_agent ) values
<foreach item="item" index="index" collection="list" separator=",">
(#{item.caseAppliId},#{item.identityType},#{item.applicationOrganId},#{item.applicationOrganName},#{item.name},#{item.identityNum},#{item.contactTelphone},
#{item.contactAddress},#{item.workAddress},#{item.workTelphone}, #{item.nameAgent},#{item.identityNumAgent},
#{item.contactTelphoneAgent},#{item.contactAddressAgent})
#{item.contactAddress},#{item.workAddress},#{item.workTelphone}, #{item.nameAgent},#{item.identityNumAgent},#{item.contactTelphoneAgent},
#{item.compLegalPerson},#{item.compLegalperPost},#{item.responSex}, #{item.responBirth},
#{item.contactAddressAgent})
</foreach>
</insert>
@@ -35,6 +35,10 @@
<result property="paymentStatus" column="payment_status" />
<result property="paymentStatusName" column="paymentStatusName" />
<result property="filearbitraUrl" column="filearbitra_url" />
<result property="requestRule" column="request_rule" />
<result property="properPreser" column="proper_preser" />
<result property="adjudicaCounter" column="adjudica_counter" />
</resultMap>
<select id="selectCaseApplicationList" parameterType="CaseApplication" resultMap="CaseApplicationResult">
@@ -163,6 +167,7 @@ select t1.* from(
<if test="caseStatus != null ">case_status,</if>
<if test="hearDate != null ">hear_date,</if>
<if test="arbitratClaims != null and arbitratClaims != ''">arbitrat_claims,</if>
<if test="requestRule != null and requestRule != ''">request_rule,</if>
<if test="loanStartDate != null ">loan_start_date,</if>
<if test="loanEndDate != null ">loan_end_date,</if>
<if test="claimPrinciOwed != null ">claim_princi_owed,</if>
@@ -174,6 +179,10 @@ select t1.* from(
<if test="onlineVideoPerson != null and onlineVideoPerson != ''">online_video_person,</if>
<if test="contractNumber != null and contractNumber != ''">contract_number,</if>
<if test="adjudicaCounter != null ">adjudica_counter,</if>
<if test="properPreser != null ">proper_preser,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
create_time
)values(
@@ -184,6 +193,7 @@ select t1.* from(
<if test="caseStatus != null ">#{caseStatus},</if>
<if test="hearDate != null ">#{hearDate},</if>
<if test="arbitratClaims != null and arbitratClaims != ''">#{arbitratClaims},</if>
<if test="requestRule != null and requestRule != ''">#{requestRule},</if>
<if test="loanStartDate != null ">#{loanStartDate},</if>
<if test="loanEndDate != null ">#{loanEndDate},</if>
<if test="claimPrinciOwed != null ">#{claimPrinciOwed},</if>
@@ -195,6 +205,10 @@ select t1.* from(
<if test="onlineVideoPerson != null and onlineVideoPerson != ''">#{onlineVideoPerson},</if>
<if test="contractNumber != null and contractNumber != ''">#{contractNumber},</if>
<if test="adjudicaCounter != null ">#{adjudicaCounter},</if>
<if test="properPreser != null ">#{properPreser},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
sysdate()
)
@@ -208,6 +222,7 @@ select t1.* from(
<if test="arbitratMethod != null and arbitratMethod != ''">arbitrat_method = #{arbitratMethod},</if>
<if test="hearDate != null ">hear_date = #{hearDate},</if>
<if test="arbitratClaims != null and arbitratClaims != ''">arbitrat_claims = #{arbitratClaims},</if>
<if test="requestRule != null and requestRule != ''">request_rule = #{requestRule},</if>
<if test="loanStartDate != null ">loan_start_date = #{loanStartDate},</if>
<if test="loanEndDate != null ">loan_end_date = #{loanEndDate},</if>
<if test="loanEndDate != null ">claim_princi_owed = #{claimPrinciOwed},</if>
@@ -243,6 +258,14 @@ select t1.* from(
<if test="caseDescribe != null and caseDescribe != ''">case_describe = #{caseDescribe},</if>
<if test="caseResult != null and caseResult != ''">case_result = #{caseResult},</if>
<if test="isAgreePendTral != null">is_agree_pend_tral = #{isAgreePendTral},</if>
<if test="adjudicaCounter != null">adjudica_counter = #{adjudicaCounter},</if>
<if test="objectiJuris != null">objecti_juris = #{objectiJuris},</if>
<if test="isAbsence != null">is_absence = #{isAbsence},</if>
<if test="appliIsAbsen != null">appli_is_absen = #{appliIsAbsen},</if>
<if test="responCrossOpin != null and responCrossOpin != ''">respon_cross_opin = #{responCrossOpin},</if>
<if test="applicaCrossOpin != null and applicaCrossOpin != ''">applica_cross_opin = #{applicaCrossOpin},</if>
<if test="responDefenOpini != null and responDefenOpini != ''">respon_defen_opini = #{responDefenOpini},</if>
<if test="objectionAddEviden != null">objection_add_eviden = #{objectionAddEviden},</if>
<if test="openCourtHear != null">open_court_hear = #{openCourtHear},</if>
<if test="hearDate != null">hear_date = #{hearDate},</if>
@@ -274,7 +297,7 @@ select t1.* from(
END caseStatusName,
c.hear_date ,c.arbitrat_claims ,
c.loan_start_date ,c.loan_end_date ,c.claim_princi_owed ,c.claim_interest_owed ,c.claim_liquid_damag ,c.fee_payable ,
c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,
c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,c.request_rule,c.adjudica_counter,c.proper_preser,
c.update_by ,c.update_time,c.arbitrator_id,c.arbitrator_name,ca.application_organ_id applicationOrganId ,ca.application_organ_name as applicantName
from case_application c
LEFT JOIN case_affiliate ca ON ca.case_appli_id = c.id and ca.identity_type=1