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
59632b68
Commit
59632b68
authored
Jan 23, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新单跟进v2
parent
37dd43b2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
4 deletions
+28
-4
yd-csf-api/src/main/java/com/yd/csf/api/controller/ApiPolicyFollowController.java
+7
-0
yd-csf-service/src/main/java/com/yd/csf/service/dto/ChangePolicyFollowStatusRequest.java
+13
-0
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/PolicyFollowServiceImpl.java
+8
-4
No files found.
yd-csf-api/src/main/java/com/yd/csf/api/controller/ApiPolicyFollowController.java
View file @
59632b68
...
@@ -534,6 +534,13 @@ public class ApiPolicyFollowController {
...
@@ -534,6 +534,13 @@ public class ApiPolicyFollowController {
if
(
changePolicyFollowStatusRequest
==
null
||
StringUtils
.
isBlank
(
changePolicyFollowStatusRequest
.
getPolicyBizId
()))
{
if
(
changePolicyFollowStatusRequest
==
null
||
StringUtils
.
isBlank
(
changePolicyFollowStatusRequest
.
getPolicyBizId
()))
{
return
Result
.
fail
(
ResultCode
.
PARAMS_ERROR
.
getCode
(),
"policyBizId不能为空"
);
return
Result
.
fail
(
ResultCode
.
PARAMS_ERROR
.
getCode
(),
"policyBizId不能为空"
);
}
}
if
(
ObjectUtils
.
isEmpty
(
changePolicyFollowStatusRequest
.
getEffectiveDate
()))
{
return
Result
.
fail
(
ResultCode
.
PARAMS_ERROR
.
getCode
(),
"生效日期不能为空"
);
}
if
(
ObjectUtils
.
isEmpty
(
changePolicyFollowStatusRequest
.
getUnderwritingDate
()))
{
return
Result
.
fail
(
ResultCode
.
PARAMS_ERROR
.
getCode
(),
"核保日期不能为空"
);
}
String
policyBizId
=
changePolicyFollowStatusRequest
.
getPolicyBizId
();
String
policyBizId
=
changePolicyFollowStatusRequest
.
getPolicyBizId
();
PolicyFollow
policyFollow
=
policyFollowService
.
getByPolicyBizId
(
policyBizId
);
PolicyFollow
policyFollow
=
policyFollowService
.
getByPolicyBizId
(
policyBizId
);
if
(
policyFollow
==
null
)
{
if
(
policyFollow
==
null
)
{
...
...
yd-csf-service/src/main/java/com/yd/csf/service/dto/ChangePolicyFollowStatusRequest.java
View file @
59632b68
...
@@ -3,6 +3,7 @@ package com.yd.csf.service.dto;
...
@@ -3,6 +3,7 @@ package com.yd.csf.service.dto;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
@Data
@Data
...
@@ -21,6 +22,18 @@ public class ChangePolicyFollowStatusRequest {
...
@@ -21,6 +22,18 @@ public class ChangePolicyFollowStatusRequest {
private
String
status
;
private
String
status
;
/**
/**
* 生效日期
*/
@Schema
(
description
=
"生效日期"
)
private
Date
effectiveDate
;
/**
* 核保日期
*/
@Schema
(
description
=
"核保日期"
)
private
Date
underwritingDate
;
/**
* 跟进信息
* 跟进信息
*/
*/
@Schema
(
description
=
"跟进信息"
)
@Schema
(
description
=
"跟进信息"
)
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/PolicyFollowServiceImpl.java
View file @
59632b68
...
@@ -470,10 +470,14 @@ public class PolicyFollowServiceImpl extends ServiceImpl<PolicyFollowMapper, Pol
...
@@ -470,10 +470,14 @@ public class PolicyFollowServiceImpl extends ServiceImpl<PolicyFollowMapper, Pol
AuthUserDto
currentLoginUser
=
SecurityUtil
.
getCurrentLoginUser
();
AuthUserDto
currentLoginUser
=
SecurityUtil
.
getCurrentLoginUser
();
String
loginUserId
=
currentLoginUser
.
getId
().
toString
();
String
loginUserId
=
currentLoginUser
.
getId
().
toString
();
policyFollow
.
setStatus
(
changePolicyFollowStatusRequest
.
getStatus
());
policyFollowService
.
lambdaUpdate
()
policyFollow
.
setNextStatusList
(
getNextStatus
(
policyFollowStatusEnum
));
.
set
(
PolicyFollow:
:
getEffectiveDate
,
changePolicyFollowStatusRequest
.
getEffectiveDate
())
policyFollow
.
setUpdaterId
(
loginUserId
);
.
set
(
PolicyFollow:
:
getUnderwritingDate
,
changePolicyFollowStatusRequest
.
getUnderwritingDate
())
policyFollowService
.
updateById
(
policyFollow
);
.
set
(
PolicyFollow:
:
getStatus
,
changePolicyFollowStatusRequest
.
getStatus
())
.
set
(
PolicyFollow:
:
getNextStatusList
,
getNextStatus
(
policyFollowStatusEnum
))
.
set
(
PolicyFollow:
:
getUpdaterId
,
loginUserId
)
.
eq
(
PolicyFollow:
:
getId
,
policyFollow
.
getId
())
.
update
();
// 如果是生效状态,同步保单、预计发佣、预计来佣
// 如果是生效状态,同步保单、预计发佣、预计来佣
if
(
PolicyFollowStatusEnum
.
EFFECTIVE
.
equals
(
policyFollowStatusEnum
))
{
if
(
PolicyFollowStatusEnum
.
EFFECTIVE
.
equals
(
policyFollowStatusEnum
))
{
...
...
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