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
f5097a83
Commit
f5097a83
authored
Sep 30, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
2dbf637d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
2 deletions
+45
-2
yd-csf-api/src/main/java/com/yd/csf/api/controller/ApiProductPlanController.java
+10
-0
yd-csf-api/src/main/java/com/yd/csf/api/service/ApiProductPlanService.java
+2
-0
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiProductPlanServiceImpl.java
+20
-2
yd-csf-feign/src/main/java/com/yd/csf/feign/client/productplan/ApiProductPlanFeignClient.java
+8
-0
yd-csf-feign/src/main/java/com/yd/csf/feign/fallback/productplan/ApiProductPlanFeignFallbackFactory.java
+5
-0
No files found.
yd-csf-api/src/main/java/com/yd/csf/api/controller/ApiProductPlanController.java
View file @
f5097a83
...
...
@@ -35,6 +35,16 @@ public class ApiProductPlanController implements ApiProductPlanFeignClient {
}
/**
* 编辑产品计划信息
* @param apiProductPlanInfoDto
* @return
*/
@Override
public
Result
editPlan
(
ApiProductPlanInfoDto
apiProductPlanInfoDto
)
{
return
apiProductPlanService
.
editPlan
(
apiProductPlanInfoDto
);
}
/**
* 产品计划详情
* @param planBizId
* @return
...
...
yd-csf-api/src/main/java/com/yd/csf/api/service/ApiProductPlanService.java
View file @
f5097a83
...
...
@@ -13,6 +13,8 @@ public interface ApiProductPlanService {
Result
edit
(
ApiProductPlanMainInfoDto
apiProductPlanMainInfoDto
);
Result
editPlan
(
ApiProductPlanInfoDto
apiProductPlanInfoDto
);
Result
<
ProductPlan
>
addProductPlanData
(
ApiProductPlanInfoDto
dto
,
String
appointmentBizId
);
Result
<
ProductPlan
>
editProductPlanData
(
ApiProductPlanInfoDto
dto
,
String
appointmentBizId
);
...
...
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiProductPlanServiceImpl.java
View file @
f5097a83
...
...
@@ -78,14 +78,32 @@ public class ApiProductPlanServiceImpl implements ApiProductPlanService {
* @return
*/
@Override
public
Result
edit
(
ApiProductPlanMainInfoDto
apiProductPlanMainInfoDto
)
{
public
Result
<
String
>
edit
(
ApiProductPlanMainInfoDto
apiProductPlanMainInfoDto
)
{
//编辑预约入参字段校验 - 产品计划信息字段校验 - 产品计划主信息字段校验
apiAppointmentCheckService
.
checkEditApiProductPlanMainInfoDto
(
apiProductPlanMainInfoDto
);
ApiProductPlanInfoDto
productPlanInfoDto
=
new
ApiProductPlanInfoDto
();
productPlanInfoDto
.
setApiProductPlanMainInfoDto
(
apiProductPlanMainInfoDto
);
editProductPlanData
(
productPlanInfoDto
,
apiProductPlanMainInfoDto
.
getAppointmentBizId
());
Result
<
ProductPlan
>
result
=
editProductPlanData
(
productPlanInfoDto
,
apiProductPlanMainInfoDto
.
getAppointmentBizId
());
String
planBizId
=
""
;
if
(!
Objects
.
isNull
(
result
.
getData
()))
{
planBizId
=
result
.
getData
().
getPlanBizId
();
}
return
Result
.
success
(
planBizId
);
}
/**
* 编辑产品计划信息
* @param apiProductPlanInfoDto
* @return
*/
@Override
public
Result
editPlan
(
ApiProductPlanInfoDto
apiProductPlanInfoDto
)
{
//编辑产品计划主体信息
Result
<
String
>
result
=
edit
(
apiProductPlanInfoDto
.
getApiProductPlanMainInfoDto
());
//批量编辑产品计划-附加险信息表数据
apiAdditionalService
.
batchEditAdditionalData
(
apiProductPlanInfoDto
,
result
.
getData
());
return
Result
.
success
();
}
...
...
yd-csf-feign/src/main/java/com/yd/csf/feign/client/productplan/ApiProductPlanFeignClient.java
View file @
f5097a83
...
...
@@ -26,6 +26,14 @@ public interface ApiProductPlanFeignClient {
Result
edit
(
@Validated
@RequestBody
ApiProductPlanMainInfoDto
apiProductPlanMainInfoDto
);
/**
* 编辑产品计划信息
* @param apiProductPlanInfoDto
* @return
*/
@PutMapping
(
"/edit/plan"
)
Result
editPlan
(
@Validated
@RequestBody
ApiProductPlanInfoDto
apiProductPlanInfoDto
);
/**
* 产品计划详情-根据产品计划信息表唯一业务ID查询
* @param appointmentBizId 预约信息主表唯一业务ID
* @param planBizId 产品计划信息表唯一业务ID
...
...
yd-csf-feign/src/main/java/com/yd/csf/feign/fallback/productplan/ApiProductPlanFeignFallbackFactory.java
View file @
f5097a83
...
...
@@ -25,6 +25,11 @@ public class ApiProductPlanFeignFallbackFactory implements FallbackFactory<ApiPr
}
@Override
public
Result
editPlan
(
ApiProductPlanInfoDto
apiProductPlanInfoDto
)
{
return
null
;
}
@Override
public
Result
<
ApiProductPlanInfoDto
>
detail
(
String
appointmentBizId
,
String
planBizId
)
{
return
null
;
}
...
...
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