Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
bf4958c2
Commit
bf4958c2
authored
Oct 28, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户告知书10
parent
cd55ff84
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
10 deletions
+23
-10
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
+1
-0
yd-api/src/main/java/com/yd/dal/entity/customer/AgPoInformed.java
+10
-0
yd-api/src/main/resources/mapper/customer/AclPractitionerMapper.xml
+1
-1
yd-api/src/main/resources/mapper/customer/AgPoInformedMapper.xml
+9
-7
yd-api/src/main/resources/mapper/marketing/MktLeadsAssignedsMapper.xml
+2
-2
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
View file @
bf4958c2
...
...
@@ -3654,6 +3654,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
// 商机更新一条告知书待签署的记录
MktLeadsAssignedTrack
track
=
new
MktLeadsAssignedTrack
();
track
.
setPractitionerId
(
requestVO
.
getPractitionerId
());
track
.
setCustomerId
(
newerCustomer
.
getId
());
// 商机的id还是得用旧的customerId
track
.
setLeadsAssignedId
(
requestVO
.
getLeadsAssignedId
());
track
.
setTrackTime
(
curDate
);
...
...
yd-api/src/main/java/com/yd/dal/entity/customer/AgPoInformed.java
View file @
bf4958c2
...
...
@@ -47,6 +47,7 @@ public class AgPoInformed implements Serializable {
* practitioner_id
*/
private
Long
practitionerId
;
private
String
practitionerName
;
/**
* 保单号
...
...
@@ -326,4 +327,12 @@ public class AgPoInformed implements Serializable {
public
void
setSignOssPath
(
String
signOssPath
)
{
this
.
signOssPath
=
signOssPath
;
}
public
String
getPractitionerName
()
{
return
practitionerName
;
}
public
void
setPractitionerName
(
String
practitionerName
)
{
this
.
practitionerName
=
practitionerName
;
}
}
\ No newline at end of file
yd-api/src/main/resources/mapper/customer/AclPractitionerMapper.xml
View file @
bf4958c2
...
...
@@ -1404,7 +1404,7 @@
SELECT
a.customer_id opportunityId,
IFNULL(a.customer_name,c.NAME) name,
IFNULL(
a.customer_mobile,c.mobile_no
) mobileNo,
IFNULL(
c.mobile_no,a.customer_mobile
) mobileNo,
date_format(a.created_at, '%Y-%m-%d %H:%i:%s') opportunityDate,
if (p.source_from = 0 ,(SELECT cam.name from ag_md_mk_campaign cam where cam.id = p.mkt_campaign ),(SELECT md.drop_option_name from ag_md_drop_options md where p.source_from = md.id )) opportunityFrom,
a.id leadsAssignedId ,
...
...
yd-api/src/main/resources/mapper/customer/AgPoInformedMapper.xml
View file @
bf4958c2
...
...
@@ -10,6 +10,7 @@
<result
column=
"customer_name"
jdbcType=
"VARCHAR"
property=
"customerName"
/>
<result
column=
"customer_mobile"
jdbcType=
"VARCHAR"
property=
"customerMobile"
/>
<result
column=
"practitioner_id"
jdbcType=
"BIGINT"
property=
"practitionerId"
/>
<result
column=
"practitioner_name"
jdbcType=
"VARCHAR"
property=
"practitionerName"
/>
<result
column=
"policy_no"
jdbcType=
"VARCHAR"
property=
"policyNo"
/>
<result
column=
"sign_date"
jdbcType=
"VARCHAR"
property=
"signDate"
/>
<result
column=
"status"
jdbcType=
"VARCHAR"
property=
"status"
/>
...
...
@@ -231,23 +232,24 @@
</update>
<select
id=
"selectByRecord"
parameterType=
"com.yd.dal.entity.customer.AgPoInformed"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ag_po_informed
p.name practitioner_name,
t.*
from ag_po_informed t left join ag_acl_practitioner p on t.practitioner_id = p.id
where 1=1
<if
test=
"customerName != null"
>
and customer_name = #{customerName,jdbcType=VARCHAR}
and
t.
customer_name = #{customerName,jdbcType=VARCHAR}
</if>
<if
test=
"customerMobile != null"
>
and customer_mobile = #{customerMobile,jdbcType=VARCHAR}
and
t.
customer_mobile = #{customerMobile,jdbcType=VARCHAR}
</if>
<if
test=
"practitionerId != null"
>
and practitioner_id = #{practitionerId,jdbcType=BIGINT}
and
t.
practitioner_id = #{practitionerId,jdbcType=BIGINT}
</if>
<if
test=
"policyNo != null"
>
and policy_no = #{policyNo,jdbcType=VARCHAR}
and
t.
policy_no = #{policyNo,jdbcType=VARCHAR}
</if>
<if
test=
"signDate != null"
>
and sign_date = #{signDate,jdbcType=VARCHAR}
and
t.
sign_date = #{signDate,jdbcType=VARCHAR}
</if>
</select>
<select
id=
"getNextInformedNo"
resultType=
"java.lang.String"
statementType=
"CALLABLE"
>
...
...
yd-api/src/main/resources/mapper/marketing/MktLeadsAssignedsMapper.xml
View file @
bf4958c2
...
...
@@ -13,7 +13,7 @@
<result
column=
"pieces"
jdbcType=
"INTEGER"
property=
"pieces"
/>
<result
column=
"remark"
jdbcType=
"LONGVARCHAR"
property=
"remark"
/>
<result
column=
"customer_name"
jdbcType=
"VARCHAR"
property=
"customerName"
/>
<result
column=
"customer_mobile"
jdbcType=
"VARCHAR"
property=
"customerMobile"
/>
<result
column=
"customer_mobile"
jdbcType=
"VARCHAR"
property=
"customerMobile"
typeHandler=
"com.yd.util.deshandler.DESTypeHandler"
/>
<result
column=
"is_active"
jdbcType=
"INTEGER"
property=
"isActive"
/>
<result
column=
"created_at"
jdbcType=
"TIMESTAMP"
property=
"createdAt"
/>
<result
column=
"created_by"
jdbcType=
"BIGINT"
property=
"createdBy"
/>
...
...
@@ -174,7 +174,7 @@
customer_name = #{customerName,jdbcType=VARCHAR},
</if>
<if
test=
"customerMobile != null"
>
customer_mobile = #{customerMobile,jdbcType=VARCHAR},
customer_mobile = #{customerMobile,jdbcType=VARCHAR
,typeHandler=com.yd.util.deshandler.DESTypeHandler
},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment