|
|
@@ -31,14 +31,12 @@
|
|
31
|
31
|
<result property="appliAgentTitle" column="appli_agent_title" />
|
|
32
|
32
|
<result property="userId" column="user_id" />
|
|
33
|
33
|
<result property="email" column="email" />
|
|
|
34
|
+ <result property="sendEmail" column="send_email" />
|
|
|
35
|
+ <result property="applicantAgentUserId" column="applicant_agent_user_id" />
|
|
34
|
36
|
</resultMap>
|
|
35
|
37
|
|
|
36
|
38
|
<select id="selectCaseAffiliate" parameterType="CaseAffiliate" resultMap="CaseAffiliateResult">
|
|
37
|
|
- select c.id ,c.case_appli_id ,c.identity_type ,c.name ,c.identity_num ,c.contact_telphone ,c.contact_address ,
|
|
38
|
|
- c.work_address ,c.work_telphone ,c.name_agent, c.identity_num_agent ,c.contact_telphone_agent ,c.contact_address_agent,
|
|
39
|
|
- c.comp_legal_person,c.comp_legalper_post,c.respon_sex,c.respon_birth,
|
|
40
|
|
- c.residen_affili,c.appli_agent_title,c.email,
|
|
41
|
|
- c.track_num,c.application_organ_id,c.application_organ_name,s.user_id
|
|
|
39
|
+ select c.*,s.user_id
|
|
42
|
40
|
from case_affiliate c
|
|
43
|
41
|
left join sys_user s on c.identity_num=s.id_card
|
|
44
|
42
|
<where>
|
|
|
@@ -48,9 +46,7 @@
|
|
48
|
46
|
</where>
|
|
49
|
47
|
</select>
|
|
50
|
48
|
<select id="selectCaseAffiliateByIdentityType" resultMap="CaseAffiliateResult">
|
|
51
|
|
- select c.id ,c.case_appli_id ,c.identity_type ,c.name ,c.identity_num ,c.contact_telphone ,c.contact_address ,
|
|
52
|
|
- c.work_address ,c.work_telphone ,c.name_agent, c.identity_num_agent ,c.contact_telphone_agent ,c.contact_address_agent,
|
|
53
|
|
- c.track_num,c.application_organ_id,c.application_organ_name
|
|
|
49
|
+ select c.*
|
|
54
|
50
|
from case_affiliate c
|
|
55
|
51
|
<where>
|
|
56
|
52
|
<if test="caseAppliId != null ">
|
|
|
@@ -73,14 +69,18 @@
|
|
73
|
69
|
contact_address,work_address,work_telphone ,name_agent,identity_num_agent,contact_telphone_agent,
|
|
74
|
70
|
comp_legal_person,comp_legalper_post,respon_sex ,respon_birth,
|
|
75
|
71
|
residen_affili,appli_agent_title,
|
|
76
|
|
- contact_address_agent,email ) values
|
|
|
72
|
+ contact_address_agent,email, send_email,track_num,applicant_agent_user_id) values
|
|
77
|
73
|
<foreach item="item" index="index" collection="list" separator=",">
|
|
78
|
74
|
(#{item.caseAppliId},#{item.identityType},#{item.applicationOrganId},#{item.applicationOrganName},#{item.name},#{item.identityNum},#{item.contactTelphone},
|
|
79
|
75
|
#{item.contactAddress},#{item.workAddress},#{item.workTelphone}, #{item.nameAgent},#{item.identityNumAgent},#{item.contactTelphoneAgent},
|
|
80
|
76
|
#{item.compLegalPerson},#{item.compLegalperPost},#{item.responSex}, #{item.responBirth},
|
|
81
|
77
|
#{item.residenAffili},#{item.appliAgentTitle},
|
|
82
|
78
|
#{item.contactAddressAgent},
|
|
83
|
|
- #{item.email})
|
|
|
79
|
+ #{item.email},
|
|
|
80
|
+ #{item.sendEmail},
|
|
|
81
|
+ #{item.trackNum},
|
|
|
82
|
+ #{item.applicantAgentUserId}
|
|
|
83
|
+ )
|
|
84
|
84
|
</foreach>
|
|
85
|
85
|
</insert>
|
|
86
|
86
|
|
|
|
@@ -99,7 +99,6 @@
|
|
99
|
99
|
contact_address = #{contactAddress},
|
|
100
|
100
|
work_address = #{workAddress},
|
|
101
|
101
|
work_telphone = #{workTelphone},
|
|
102
|
|
-
|
|
103
|
102
|
name_agent = #{nameAgent},
|
|
104
|
103
|
identity_num_agent = #{identityNumAgent},
|
|
105
|
104
|
contact_telphone_agent = #{contactTelphoneAgent},
|
|
|
@@ -107,8 +106,14 @@
|
|
107
|
106
|
send_email = #{sendEmail},
|
|
108
|
107
|
residen_affili = #{residenAffili},
|
|
109
|
108
|
email= #{email},
|
|
110
|
|
- track_num = #{trackNum}
|
|
111
|
|
-
|
|
|
109
|
+ track_num = #{trackNum},
|
|
|
110
|
+ comp_legal_person=#{compLegalPerson},
|
|
|
111
|
+ comp_legalper_post=#{compLegalperPost},
|
|
|
112
|
+ applicant_agent_user_id=#{applicantAgentUserId},
|
|
|
113
|
+ respon_sex=#{responSex},
|
|
|
114
|
+ respon_birth=#{responBirth},
|
|
|
115
|
+ residen_affili=#{residenAffili},
|
|
|
116
|
+ appli_agent_title=#{appliAgentTitle}
|
|
112
|
117
|
where id = #{id}
|
|
113
|
118
|
|
|
114
|
119
|
</update>
|
|
|
@@ -134,7 +139,14 @@
|
|
134
|
139
|
send_email = #{item.sendEmail},
|
|
135
|
140
|
residen_affili = #{item.residenAffili},
|
|
136
|
141
|
email= #{item.email},
|
|
137
|
|
- track_num = #{item.trackNum}
|
|
|
142
|
+ track_num = #{item.trackNum},
|
|
|
143
|
+ comp_legal_person=#{item.compLegalPerson},
|
|
|
144
|
+ comp_legalper_post=#{item.compLegalperPost},
|
|
|
145
|
+ applicant_agent_user_id=#{item.applicantAgentUserId},
|
|
|
146
|
+ respon_sex=#{item.responSex},
|
|
|
147
|
+ respon_birth=#{item.responBirth},
|
|
|
148
|
+ residen_affili=#{item.residenAffili},
|
|
|
149
|
+ appli_agent_title=#{item.appliAgentTitle}
|
|
138
|
150
|
</set>
|
|
139
|
151
|
where case_appli_id = #{caseAppliId} and identity_type= #{item.identityType};
|
|
140
|
152
|
</foreach>
|