Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-cloud-account
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.account
pica-cloud-account
提交
fa5832eb
提交
fa5832eb
编写于
5月 14, 2020
作者:
Peijun.zhao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix family return
上级
c874d358
流水线
#25375
已失败 于阶段
in 0 second
变更
3
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
24 行增加
和
3 行删除
+24
-3
PatHealthPackClient.java
...ica/cloud/account/account/client/PatHealthPackClient.java
+2
-1
PatFamilyResp.java
...pica/cloud/account/account/common/resp/PatFamilyResp.java
+10
-0
PatHealthPackController.java
...nt/account/server/controller/PatHealthPackController.java
+12
-2
未找到文件。
client/src/main/java/com/pica/cloud/account/account/client/PatHealthPackClient.java
浏览文件 @
fa5832eb
...
@@ -3,6 +3,7 @@ package com.pica.cloud.account.account.client;
...
@@ -3,6 +3,7 @@ package com.pica.cloud.account.account.client;
import
com.pica.cloud.account.account.common.req.AcctPatFamilyReq
;
import
com.pica.cloud.account.account.common.req.AcctPatFamilyReq
;
import
com.pica.cloud.account.account.common.req.AcctPatInfoReq
;
import
com.pica.cloud.account.account.common.req.AcctPatInfoReq
;
import
com.pica.cloud.account.account.common.resp.PatBindResp
;
import
com.pica.cloud.account.account.common.resp.PatBindResp
;
import
com.pica.cloud.account.account.common.resp.PatFamilyResp
;
import
com.pica.cloud.foundation.entity.PicaResponse
;
import
com.pica.cloud.foundation.entity.PicaResponse
;
import
org.springframework.cloud.netflix.feign.FeignClient
;
import
org.springframework.cloud.netflix.feign.FeignClient
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
@@ -26,7 +27,7 @@ public interface PatHealthPackClient {
...
@@ -26,7 +27,7 @@ public interface PatHealthPackClient {
PicaResponse
<
List
<
Integer
>>
getDirectPatIdsByPatId
(
@PathVariable
(
"patientId"
)
Integer
patientId
);
PicaResponse
<
List
<
Integer
>>
getDirectPatIdsByPatId
(
@PathVariable
(
"patientId"
)
Integer
patientId
);
@GetMapping
(
value
=
"/account/pat-health/familyPats/{acctId}"
)
@GetMapping
(
value
=
"/account/pat-health/familyPats/{acctId}"
)
PicaResponse
<
List
<
Integer
>
>
getFamilyPatsByAcctId
(
@PathVariable
(
"acctId"
)
Integer
acctId
);
PicaResponse
<
PatFamilyResp
>
getFamilyPatsByAcctId
(
@PathVariable
(
"acctId"
)
Integer
acctId
);
@PostMapping
(
value
=
"/account/pat-health/acct"
)
@PostMapping
(
value
=
"/account/pat-health/acct"
)
PicaResponse
saveAcct
(
@RequestBody
AcctPatInfoReq
patInfoReq
);
PicaResponse
saveAcct
(
@RequestBody
AcctPatInfoReq
patInfoReq
);
...
...
common/src/main/java/com/pica/cloud/account/account/common/resp/PatFamilyResp.java
浏览文件 @
fa5832eb
...
@@ -14,6 +14,8 @@ public class PatFamilyResp {
...
@@ -14,6 +14,8 @@ public class PatFamilyResp {
private
List
<
AcctPatFamilyDto
>
failMemberList
;
private
List
<
AcctPatFamilyDto
>
failMemberList
;
private
List
<
Integer
>
memberPatIds
;
public
boolean
isSuccessFlag
()
{
public
boolean
isSuccessFlag
()
{
return
successFlag
;
return
successFlag
;
}
}
...
@@ -29,4 +31,12 @@ public class PatFamilyResp {
...
@@ -29,4 +31,12 @@ public class PatFamilyResp {
public
void
setFailMemberList
(
List
<
AcctPatFamilyDto
>
failMemberList
)
{
public
void
setFailMemberList
(
List
<
AcctPatFamilyDto
>
failMemberList
)
{
this
.
failMemberList
=
failMemberList
;
this
.
failMemberList
=
failMemberList
;
}
}
public
List
<
Integer
>
getMemberPatIds
()
{
return
memberPatIds
;
}
public
void
setMemberPatIds
(
List
<
Integer
>
memberPatIds
)
{
this
.
memberPatIds
=
memberPatIds
;
}
}
}
server/src/main/java/com/pica/cloud/account/account/server/controller/PatHealthPackController.java
浏览文件 @
fa5832eb
...
@@ -102,9 +102,19 @@ public class PatHealthPackController {
...
@@ -102,9 +102,19 @@ public class PatHealthPackController {
@ApiOperation
(
"根据accid获取家庭关系idList"
)
@ApiOperation
(
"根据accid获取家庭关系idList"
)
@GetMapping
(
value
=
"/familyPats/{acctId}"
)
@GetMapping
(
value
=
"/familyPats/{acctId}"
)
public
PicaResponse
<
List
<
Integer
>>
getFamilyPatsByAcctId
(
@PathVariable
(
"acctId"
)
Integer
acctId
)
throws
Exception
{
public
PicaResponse
<
PatFamilyResp
>
getFamilyPatsByAcctId
(
@PathVariable
(
"acctId"
)
Integer
acctId
)
throws
Exception
{
PatFamilyResp
resp
=
new
PatFamilyResp
();
List
<
AcctPatFamily
>
patFamilyList
=
patFamilyMapper
.
getListByAcctId
(
acctId
);
List
<
AcctPatFamily
>
patFamilyList
=
patFamilyMapper
.
getListByAcctId
(
acctId
);
return
PicaResponse
.
toResponse
(
patFamilyList
);
resp
.
setMemberPatIds
(
patFamilyList
.
stream
().
map
(
obj
->
obj
.
getPatientId
()).
collect
(
toList
()));
List
<
AcctPatFamilyDto
>
dtos
=
new
ArrayList
<>();
for
(
AcctPatFamily
family
:
patFamilyList
){
AcctPatFamilyDto
dto
=
new
AcctPatFamilyDto
();
dto
.
setPatientId
(
family
.
getPatientId
());
dto
.
setRelation
(
family
.
getRelation
());
dtos
.
add
(
dto
);
}
resp
.
setFailMemberList
(
dtos
);
return
PicaResponse
.
toResponse
(
resp
);
}
}
@ApiOperation
(
"保存主账户"
)
@ApiOperation
(
"保存主账户"
)
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录