Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf
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
xingmin
yd-csf
Commits
1f181df1
Commit
1f181df1
authored
Nov 20, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/test' into test
parents
005ceb1a
be35be29
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
6 deletions
+31
-6
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiAppointmentServiceImpl.java
+23
-0
yd-csf-service/src/main/java/com/yd/csf/service/dto/PolicyFollowAddRequest.java
+3
-3
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/PolicyFollowServiceImpl.java
+5
-3
No files found.
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiAppointmentServiceImpl.java
View file @
1f181df1
...
...
@@ -18,6 +18,7 @@ import com.yd.csf.feign.request.appointment.*;
import
com.yd.csf.feign.response.appointment.ApiAppointmentAddResponse
;
import
com.yd.csf.feign.response.appointment.ApiAppointmentDetailResponse
;
import
com.yd.csf.feign.response.appointment.ApiAppointmentPageResponse
;
import
com.yd.csf.service.dto.PolicySigner
;
import
com.yd.csf.service.enums.AppointmentStatusEnum
;
import
com.yd.csf.service.enums.PolicyFollowStatusEnum
;
import
com.yd.csf.service.enums.PolicyStatusEnum
;
...
...
@@ -518,6 +519,8 @@ public class ApiAppointmentServiceImpl implements ApiAppointmentService {
}
//产品名称
follow
.
setProductName
(
apiProductPlanMainInfoDto
.
getProductName
());
//签单员列表
setSignerList
(
follow
,
appointment
);
}
policyFollowService
.
saveOrUpdate
(
follow
);
...
...
@@ -540,6 +543,26 @@ public class ApiAppointmentServiceImpl implements ApiAppointmentService {
return
Result
.
success
();
}
private
void
setSignerList
(
PolicyFollow
follow
,
Appointment
appointment
)
{
List
<
PolicySigner
>
signerList
=
new
ArrayList
<>();
PolicySigner
signer
=
new
PolicySigner
();
if
(!
Objects
.
isNull
(
appointment
.
getBusinessNo
()))
{
signer
.
setRegistrationNumber
(
appointment
.
getBusinessNo
());
}
if
(!
Objects
.
isNull
(
appointment
.
getBusinessRepresentName1
()))
{
signer
.
setSigner
(
appointment
.
getBusinessRepresentName1
());
}
if
(!
Objects
.
isNull
(
appointment
.
getBusinessRepresentMobile1
()))
{
signer
.
setPhone
(
appointment
.
getBusinessRepresentMobile1
());
}
if
(!
Objects
.
isNull
(
appointment
.
getBusinessRepresentEmail1
()))
{
signer
.
setEmail
(
appointment
.
getBusinessRepresentEmail1
());
}
signerList
.
add
(
signer
);
follow
.
setSignerList
(
GSONUtil
.
toJson
(
signerList
));
}
private
void
savePolicyQuestionnaire
(
String
appointmentBizId
,
String
policyBizId
)
{
// 当前登录用户
AuthUserDto
currentLoginUser
=
SecurityUtil
.
getCurrentLoginUser
();
...
...
yd-csf-service/src/main/java/com/yd/csf/service/dto/PolicyFollowAddRequest.java
View file @
1f181df1
...
...
@@ -49,10 +49,10 @@ public class PolicyFollowAddRequest implements Serializable {
private
String
appointmentNo
;
/**
* 签单
人
* 签单
员列表
*/
@Schema
(
description
=
"签单
人
"
)
private
String
signer
;
@Schema
(
description
=
"签单
员列表
"
)
private
List
<
PolicySigner
>
signerList
;
/**
* 供款年期
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/PolicyFollowServiceImpl.java
View file @
1f181df1
...
...
@@ -151,9 +151,8 @@ public class PolicyFollowServiceImpl extends ServiceImpl<PolicyFollowMapper, Pol
PolicyFollowUpdateDto
policyFollowUpdateDto
=
policyFollowUpdateRequest
.
getPolicyFollowUpdateDto
();
if
(
policyFollowUpdateDto
!=
null
)
{
BeanUtils
.
copyProperties
(
policyFollowUpdateDto
,
policyFollow
,
"id"
,
"policyBizId"
);
if
(
CollectionUtils
.
isNotEmpty
(
policyFollowUpdateDto
.
getSignerList
()))
{
policyFollow
.
setSignerList
(
GSONUtil
.
toJson
(
policyFollowUpdateDto
.
getSignerList
()));
}
// 签单员列表 => 字符串
policyFollow
.
setSignerList
(
GSONUtil
.
toJson
(
policyFollowUpdateDto
.
getSignerList
()));
// 计算冷却期结束日期
if
(
policyFollowUpdateDto
.
getCoolingOffDays
()
!=
null
&&
policyFollowUpdateDto
.
getEffectiveDate
()
!=
null
)
{
policyFollow
.
setCoolingOffEndDate
(
DateUtil
.
offset
(
policyFollowUpdateDto
.
getEffectiveDate
(),
DateField
.
DAY_OF_MONTH
,
policyFollowUpdateDto
.
getCoolingOffDays
()));
...
...
@@ -243,6 +242,9 @@ public class PolicyFollowServiceImpl extends ServiceImpl<PolicyFollowMapper, Pol
// 生成新单编号
String
policyBizId
=
RandomStringGenerator
.
generateBizId16
(
CommonEnum
.
UID_TYPE_POLICY
.
getCode
());
policyFollow
.
setPolicyBizId
(
policyBizId
);
// 签单员列表 => 字符串
policyFollow
.
setSignerList
(
GSONUtil
.
toJson
(
policyFollowAddRequest
.
getSignerList
()));
// 计算冷却期结束日期
if
(
policyFollowAddRequest
.
getCoolingOffDays
()
!=
null
)
{
policyFollow
.
setCoolingOffEndDate
(
DateUtil
.
offset
(
policyFollowAddRequest
.
getEffectiveDate
(),
DateField
.
DAY_OF_MONTH
,
policyFollowAddRequest
.
getCoolingOffDays
()));
}
...
...
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