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
56dd7b41
Commit
56dd7b41
authored
Oct 11, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
cf551581
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
66 additions
and
0 deletions
+66
-0
yd-csf-api/src/main/java/com/yd/csf/api/controller/ApiAppointmentController.java
+12
-0
yd-csf-api/src/main/java/com/yd/csf/api/service/ApiAppointmentService.java
+2
-0
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiAppointmentServiceImpl.java
+14
-0
yd-csf-feign/src/main/java/com/yd/csf/feign/client/appointment/ApiAppointmentFeignClient.java
+8
-0
yd-csf-feign/src/main/java/com/yd/csf/feign/fallback/appointment/ApiAppointmentFeignFallbackFactory.java
+5
-0
yd-csf-service/src/main/java/com/yd/csf/service/dao/AppointmentMapper.java
+2
-0
yd-csf-service/src/main/java/com/yd/csf/service/service/IAppointmentService.java
+2
-0
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/AppointmentServiceImpl.java
+9
-0
yd-csf-service/src/main/resources/mappers/AppointmentMapper.xml
+12
-0
No files found.
yd-csf-api/src/main/java/com/yd/csf/api/controller/ApiAppointmentController.java
View file @
56dd7b41
...
@@ -14,6 +14,8 @@ import org.springframework.validation.annotation.Validated;
...
@@ -14,6 +14,8 @@ import org.springframework.validation.annotation.Validated;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.validation.constraints.NotBlank
;
/**
/**
* 预约信息
* 预约信息
*
*
...
@@ -158,5 +160,15 @@ public class ApiAppointmentController implements ApiAppointmentFeignClient {
...
@@ -158,5 +160,15 @@ public class ApiAppointmentController implements ApiAppointmentFeignClient {
return
apiAppointmentService
.
editPolicyTransfer
(
request
);
return
apiAppointmentService
.
editPolicyTransfer
(
request
);
}
}
/**
* 删除预约信息
* @param appointmentBizId
* @return
*/
@Override
public
Result
del
(
String
appointmentBizId
)
{
return
apiAppointmentService
.
del
(
appointmentBizId
);
}
}
}
yd-csf-api/src/main/java/com/yd/csf/api/service/ApiAppointmentService.java
View file @
56dd7b41
...
@@ -36,5 +36,7 @@ public interface ApiAppointmentService {
...
@@ -36,5 +36,7 @@ public interface ApiAppointmentService {
Result
editPolicyTransfer
(
ApiPolicyTransferRequest
request
);
Result
editPolicyTransfer
(
ApiPolicyTransferRequest
request
);
Result
del
(
String
appointmentBizId
);
Result
<
Appointment
>
checkAppointmentIsExist
(
String
appointmentBizId
);
Result
<
Appointment
>
checkAppointmentIsExist
(
String
appointmentBizId
);
}
}
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiAppointmentServiceImpl.java
View file @
56dd7b41
...
@@ -499,6 +499,20 @@ public class ApiAppointmentServiceImpl implements ApiAppointmentService {
...
@@ -499,6 +499,20 @@ public class ApiAppointmentServiceImpl implements ApiAppointmentService {
}
}
/**
/**
* 删除预约信息
* @param appointmentBizId
* @return
*/
@Override
public
Result
del
(
String
appointmentBizId
)
{
//校验预约信息是否存在
Result
<
Appointment
>
result
=
checkAppointmentIsExist
(
appointmentBizId
);
Appointment
appointment
=
result
.
getData
();
iAppointmentService
.
del
(
appointmentBizId
);
return
Result
.
success
();
}
/**
* 新增健康问卷和预约对象关系绑定
* 新增健康问卷和预约对象关系绑定
* @return
* @return
*/
*/
...
...
yd-csf-feign/src/main/java/com/yd/csf/feign/client/appointment/ApiAppointmentFeignClient.java
View file @
56dd7b41
...
@@ -122,4 +122,12 @@ public interface ApiAppointmentFeignClient {
...
@@ -122,4 +122,12 @@ public interface ApiAppointmentFeignClient {
*/
*/
@PutMapping
(
"/edit/policy/transfer"
)
@PutMapping
(
"/edit/policy/transfer"
)
Result
editPolicyTransfer
(
@Validated
@RequestBody
ApiPolicyTransferRequest
request
);
Result
editPolicyTransfer
(
@Validated
@RequestBody
ApiPolicyTransferRequest
request
);
/**
* 删除预约信息
* @param appointmentBizId
* @return
*/
@DeleteMapping
(
"/del"
)
Result
del
(
@NotBlank
(
message
=
"预约信息主表唯一业务ID不能为空"
)
@RequestParam
(
value
=
"appointmentBizId"
)
String
appointmentBizId
);
}
}
yd-csf-feign/src/main/java/com/yd/csf/feign/fallback/appointment/ApiAppointmentFeignFallbackFactory.java
View file @
56dd7b41
...
@@ -85,6 +85,11 @@ public class ApiAppointmentFeignFallbackFactory implements FallbackFactory<ApiAp
...
@@ -85,6 +85,11 @@ public class ApiAppointmentFeignFallbackFactory implements FallbackFactory<ApiAp
public
Result
editPolicyTransfer
(
ApiPolicyTransferRequest
request
)
{
public
Result
editPolicyTransfer
(
ApiPolicyTransferRequest
request
)
{
return
null
;
return
null
;
}
}
@Override
public
Result
del
(
String
appointmentBizId
)
{
return
null
;
}
};
};
}
}
}
}
yd-csf-service/src/main/java/com/yd/csf/service/dao/AppointmentMapper.java
View file @
56dd7b41
...
@@ -24,4 +24,6 @@ public interface AppointmentMapper extends BaseMapper<Appointment> {
...
@@ -24,4 +24,6 @@ public interface AppointmentMapper extends BaseMapper<Appointment> {
//获取行程单的数据
//获取行程单的数据
ItineraryDto
getItineraryDto
(
@Param
(
"appointmentBizId"
)
String
appointmentBizId
);
ItineraryDto
getItineraryDto
(
@Param
(
"appointmentBizId"
)
String
appointmentBizId
);
Integer
updateDelStatus
(
@Param
(
"appointmentBizId"
)
String
appointmentBizId
);
}
}
yd-csf-service/src/main/java/com/yd/csf/service/service/IAppointmentService.java
View file @
56dd7b41
...
@@ -24,4 +24,6 @@ public interface IAppointmentService extends IService<Appointment> {
...
@@ -24,4 +24,6 @@ public interface IAppointmentService extends IService<Appointment> {
Appointment
queryOne
(
String
appointmentBizId
);
Appointment
queryOne
(
String
appointmentBizId
);
ItineraryDto
getItineraryDto
(
String
appointmentBizId
);
ItineraryDto
getItineraryDto
(
String
appointmentBizId
);
void
del
(
String
appointmentBizId
);
}
}
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/AppointmentServiceImpl.java
View file @
56dd7b41
...
@@ -54,4 +54,13 @@ public class AppointmentServiceImpl extends ServiceImpl<AppointmentMapper, Appoi
...
@@ -54,4 +54,13 @@ public class AppointmentServiceImpl extends ServiceImpl<AppointmentMapper, Appoi
return
baseMapper
.
getItineraryDto
(
appointmentBizId
);
return
baseMapper
.
getItineraryDto
(
appointmentBizId
);
}
}
/**
* 删除预约信息
* @param appointmentBizId
*/
@Override
public
void
del
(
String
appointmentBizId
)
{
baseMapper
.
updateDelStatus
(
appointmentBizId
);
}
}
}
yd-csf-service/src/main/resources/mappers/AppointmentMapper.xml
View file @
56dd7b41
...
@@ -79,4 +79,16 @@
...
@@ -79,4 +79,16 @@
limit 1
limit 1
</select>
</select>
<!-- 更新预约状态 -->
<update
id=
"updateDelStatus"
>
update appointment set is_deleted = 1 where appointment_biz_id = #{appointmentBizId};
update appointment_file set is_deleted = 1 where appointment_biz_id = #{appointmentBizId};
update beneficiary set is_deleted = 1 where appointment_biz_id = #{appointmentBizId};
update insurant set is_deleted = 1 where appointment_biz_id = #{appointmentBizId};
update policyholder set is_deleted = 1 where appointment_biz_id = #{appointmentBizId};
update product_plan set is_deleted = 1 where appointment_biz_id = #{appointmentBizId};
update second_holder set is_deleted = 1 where appointment_biz_id = #{appointmentBizId};
update fna set appointment_no = '',appointment_biz_id = '' where appointment_biz_id = #{appointmentBizId};
</update>
</mapper>
</mapper>
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