Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
travel-cloud
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
cloud
travel-cloud
Commits
ee430dc3
提交
ee430dc3
authored
5月 13, 2025
作者:
hzh
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
51旅游卫士部分功能实现
上级
2d505139
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
78 行增加
和
8 行删除
+78
-8
WeishiService.java
...java/org/dromara/common/weishi/service/WeishiService.java
+3
-2
WeishiController.java
.../dromara/mall/controller/weishi/app/WeishiController.java
+75
-6
没有找到文件。
ruoyi-common/ruoyi-common-51weishi/src/main/java/org/dromara/common/weishi/service/WeishiService.java
浏览文件 @
ee430dc3
...
...
@@ -73,9 +73,10 @@ public interface WeishiService {
/**
* 获取保险公司相关文档接口
*
* @param productId 产品id
* @param annexTp
* @return
* @param annexTp
annexTp
* @return
数据
*/
AnnexResponse
annex
(
Integer
productId
,
String
annexTp
);
}
ruoyi-modules/ruoyi-mall/src/main/java/org/dromara/mall/controller/weishi/app/WeishiController.java
浏览文件 @
ee430dc3
...
...
@@ -3,14 +3,12 @@ package org.dromara.mall.controller.weishi.app;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
org.dromara.common.core.domain.R
;
import
org.dromara.common.weishi.model.res.ProductResponse
;
import
org.dromara.common.weishi.model.res.ProductsResponse
;
import
org.dromara.common.weishi.model.req.ApplyRequest
;
import
org.dromara.common.weishi.model.req.ProposalRequest
;
import
org.dromara.common.weishi.model.res.*
;
import
org.dromara.common.weishi.service.WeishiService
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
...
...
@@ -40,6 +38,7 @@ public class WeishiController {
/**
* 产品详情
*
* @param productId 产品id
* @return 产品详情
*/
@GetMapping
(
"/productDetail"
)
...
...
@@ -47,5 +46,75 @@ public class WeishiController {
return
R
.
ok
(
weishiService
.
productDetail
(
productId
));
}
/**
* 获取保险公司相关文档接口
*
* @param productId 产品id
* @param annexTp annexTp
* @return 产品详情
*/
@GetMapping
(
"/annex"
)
public
R
<
AnnexResponse
>
annex
(
@RequestParam
(
value
=
"productId"
)
Integer
productId
,
@RequestParam
(
value
=
"annexTp"
)
String
annexTp
)
{
return
R
.
ok
(
weishiService
.
annex
(
productId
,
annexTp
));
}
/**
* 承保接口
*
* @param req 请求参数
* @return 数据
*/
@PostMapping
(
"/insureApply"
)
public
R
<
ApplyResponse
>
insureApply
(
@RequestBody
ApplyRequest
req
)
{
return
R
.
ok
(
weishiService
.
insureApply
(
req
));
}
/**
* 核保接口
*
* @param req 请求参数
* @return 数据
*/
@PostMapping
(
"/insureProposal"
)
public
R
<
ProposalResponse
>
insureProposal
(
@RequestBody
ProposalRequest
req
)
{
return
R
.
ok
(
weishiService
.
insureProposal
(
req
));
}
/**
* 保单详情
*
* @param orderNum 订单号
* @return 保单详情
*/
@GetMapping
(
"/insureDetail"
)
public
R
<
IssueResponse
>
insureDetail
(
@RequestParam
String
orderNum
)
{
return
R
.
ok
(
weishiService
.
insureDetail
(
orderNum
));
}
/**
* 订单撤单接口
*
* @param orderNum 订单号
*/
@PostMapping
(
"/insureCancel/{orderNum}"
)
public
R
<
Void
>
insureCancel
(
@PathVariable
String
orderNum
)
{
weishiService
.
insureCancel
(
orderNum
);
return
R
.
ok
();
}
/**
* 保单撤单接口
*
* @param policyNum 保单号
*/
@PostMapping
(
"/policyCancel/{policyNum}"
)
public
R
<
Void
>
policyCancel
(
@PathVariable
String
policyNum
)
{
weishiService
.
policyCancel
(
policyNum
);
return
R
.
ok
();
}
}
何志宏
@hezhihong
被提及 commit
84ecfe3a
·
5月 13, 2025
被提及 commit
84ecfe3a
被提及 commit 84ecfe3a62d7f8c0aadc3a0551ad6ef7ce7d0239
切换提交列表
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论