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
提交
6a8872d9
提交
6a8872d9
编写于
11月 18, 2022
作者:
wangxinxu
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/release' into release
上级
d1da8bf7
28868f9d
流水线
#51416
已取消 于阶段
变更
9
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
50 行增加
和
4 行删除
+50
-4
pom.xml
client/pom.xml
+2
-2
PatientInfoClient.java
.../pica/cloud/account/account/client/PatientInfoClient.java
+14
-0
pom.xml
common/pom.xml
+1
-1
pom.xml
server/pom.xml
+1
-1
PatientInfoController.java
...ount/account/server/controller/PatientInfoController.java
+6
-0
AcctPatUnionMapper.java
...oud/account/account/server/mapper/AcctPatUnionMapper.java
+2
-0
PatientInfoService.java
...ud/account/account/server/service/PatientInfoService.java
+2
-0
PatientInfoServerImpl.java
...nt/account/server/service/impl/PatientInfoServerImpl.java
+10
-0
AcctPatUnionMapper.xml
server/src/main/resources/mybatis/AcctPatUnionMapper.xml
+12
-0
未找到文件。
client/pom.xml
浏览文件 @
6a8872d9
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<groupId>
com.pica.cloud.account
</groupId>
<groupId>
com.pica.cloud.account
</groupId>
<artifactId>
pica-cloud-account-client
</artifactId>
<artifactId>
pica-cloud-account-client
</artifactId>
<version>
1.1.
4
-SNAPSHOT
</version>
<version>
1.1.
5
-SNAPSHOT
</version>
<name>
pica-cloud-account-client
</name>
<name>
pica-cloud-account-client
</name>
<packaging>
jar
</packaging>
<packaging>
jar
</packaging>
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<dependency>
<dependency>
<groupId>
com.pica.cloud.account
</groupId>
<groupId>
com.pica.cloud.account
</groupId>
<artifactId>
pica-cloud-account-common
</artifactId>
<artifactId>
pica-cloud-account-common
</artifactId>
<version>
1.1.
4
-SNAPSHOT
</version>
<version>
1.1.
5
-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<groupId>
org.springframework.cloud
</groupId>
...
...
client/src/main/java/com/pica/cloud/account/account/client/PatientInfoClient.java
0 → 100644
浏览文件 @
6a8872d9
package
com
.
pica
.
cloud
.
account
.
account
.
client
;
import
com.pica.cloud.foundation.entity.PicaResponse
;
import
org.springframework.cloud.netflix.feign.FeignClient
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
@FeignClient
(
name
=
"13201-pica-cloud-account"
)
public
interface
PatientInfoClient
{
@GetMapping
(
value
=
"/account/patient/unionId/{patientId}"
)
PicaResponse
<
String
>
getUnionIdByPatientId
(
@PathVariable
(
"patientId"
)
Integer
patientId
);
}
common/pom.xml
浏览文件 @
6a8872d9
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<groupId>
com.pica.cloud.account
</groupId>
<groupId>
com.pica.cloud.account
</groupId>
<artifactId>
pica-cloud-account-common
</artifactId>
<artifactId>
pica-cloud-account-common
</artifactId>
<version>
1.1.
4
-SNAPSHOT
</version>
<version>
1.1.
5
-SNAPSHOT
</version>
<name>
pica-cloud-account-common
</name>
<name>
pica-cloud-account-common
</name>
<packaging>
jar
</packaging>
<packaging>
jar
</packaging>
...
...
server/pom.xml
浏览文件 @
6a8872d9
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
<dependency>
<dependency>
<groupId>
com.pica.cloud.account
</groupId>
<groupId>
com.pica.cloud.account
</groupId>
<artifactId>
pica-cloud-account-common
</artifactId>
<artifactId>
pica-cloud-account-common
</artifactId>
<version>
1.1.
4
-SNAPSHOT
</version>
<version>
1.1.
5
-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
...
...
server/src/main/java/com/pica/cloud/account/account/server/controller/PatientInfoController.java
浏览文件 @
6a8872d9
...
@@ -74,4 +74,10 @@ public class PatientInfoController extends AccountBaseController {
...
@@ -74,4 +74,10 @@ public class PatientInfoController extends AccountBaseController {
}
}
return
PicaResponse
.
toResponse
();
return
PicaResponse
.
toResponse
();
}
}
@ApiOperation
(
"客服系统添加居民信息"
)
@GetMapping
(
value
=
"/unionId/{patientId}"
,
produces
=
"application/json;charset=utf-8"
)
public
PicaResponse
<
String
>
getUnionIdByPatientId
(
@PathVariable
(
"patientId"
)
Integer
patientId
)
{
return
PicaResponse
.
toResponse
(
patientInfoService
.
getUnionIdByPatientId
(
patientId
));
}
}
}
server/src/main/java/com/pica/cloud/account/account/server/mapper/AcctPatUnionMapper.java
浏览文件 @
6a8872d9
...
@@ -22,4 +22,6 @@ public interface AcctPatUnionMapper {
...
@@ -22,4 +22,6 @@ public interface AcctPatUnionMapper {
AcctPatUnion
selectByAcctId
(
Integer
acctId
);
AcctPatUnion
selectByAcctId
(
Integer
acctId
);
int
initBatch
(
List
<
AcctPatUnion
>
list
);
int
initBatch
(
List
<
AcctPatUnion
>
list
);
String
selectUnionIdByPatientId
(
Integer
patientId
);
}
}
\ No newline at end of file
server/src/main/java/com/pica/cloud/account/account/server/service/PatientInfoService.java
浏览文件 @
6a8872d9
...
@@ -36,4 +36,6 @@ public interface PatientInfoService {
...
@@ -36,4 +36,6 @@ public interface PatientInfoService {
* @param entity 居民信息
* @param entity 居民信息
*/
*/
void
addPatientInfo
(
AccountPatientInfoEntity
entity
,
Integer
userId
);
void
addPatientInfo
(
AccountPatientInfoEntity
entity
,
Integer
userId
);
String
getUnionIdByPatientId
(
Integer
patientId
);
}
}
server/src/main/java/com/pica/cloud/account/account/server/service/impl/PatientInfoServerImpl.java
浏览文件 @
6a8872d9
...
@@ -6,7 +6,9 @@ import com.pica.cloud.account.account.server.entity.LogUserInfoEntity;
...
@@ -6,7 +6,9 @@ import com.pica.cloud.account.account.server.entity.LogUserInfoEntity;
import
com.pica.cloud.account.account.server.enums.AccountTypeEnum
;
import
com.pica.cloud.account.account.server.enums.AccountTypeEnum
;
import
com.pica.cloud.account.account.server.log.AccountLogUtils
;
import
com.pica.cloud.account.account.server.log.AccountLogUtils
;
import
com.pica.cloud.account.account.server.mapper.AccountInfoDetailMapper
;
import
com.pica.cloud.account.account.server.mapper.AccountInfoDetailMapper
;
import
com.pica.cloud.account.account.server.mapper.AccountPatFamilyRecordMapper
;
import
com.pica.cloud.account.account.server.mapper.AccountPatientInfoMapper
;
import
com.pica.cloud.account.account.server.mapper.AccountPatientInfoMapper
;
import
com.pica.cloud.account.account.server.mapper.AcctPatUnionMapper
;
import
com.pica.cloud.account.account.server.service.PatientInfoService
;
import
com.pica.cloud.account.account.server.service.PatientInfoService
;
import
com.pica.cloud.account.account.server.util.AESUtil
;
import
com.pica.cloud.account.account.server.util.AESUtil
;
import
org.apache.commons.beanutils.BeanUtils
;
import
org.apache.commons.beanutils.BeanUtils
;
...
@@ -29,6 +31,9 @@ public class PatientInfoServerImpl implements PatientInfoService {
...
@@ -29,6 +31,9 @@ public class PatientInfoServerImpl implements PatientInfoService {
@Autowired
@Autowired
private
AccountInfoDetailMapper
accountInfoDetailMapper
;
private
AccountInfoDetailMapper
accountInfoDetailMapper
;
@Autowired
private
AcctPatUnionMapper
acctPatUnionMapper
;
@Override
@Override
public
void
updateUserInfo
(
AccountPatientInfoEntity
accountPatientInfoEntity
)
{
public
void
updateUserInfo
(
AccountPatientInfoEntity
accountPatientInfoEntity
)
{
accountPatientInfoEntity
.
setModifyTime
(
new
Date
());
accountPatientInfoEntity
.
setModifyTime
(
new
Date
());
...
@@ -85,4 +90,9 @@ public class PatientInfoServerImpl implements PatientInfoService {
...
@@ -85,4 +90,9 @@ public class PatientInfoServerImpl implements PatientInfoService {
entity
.
setModifyTime
(
currentTime
);
entity
.
setModifyTime
(
currentTime
);
accountPatientInfoMapper
.
insertSelective
(
entity
);
accountPatientInfoMapper
.
insertSelective
(
entity
);
}
}
@Override
public
String
getUnionIdByPatientId
(
Integer
patientId
)
{
return
acctPatUnionMapper
.
selectUnionIdByPatientId
(
patientId
);
}
}
}
server/src/main/resources/mybatis/AcctPatUnionMapper.xml
浏览文件 @
6a8872d9
...
@@ -172,4 +172,16 @@
...
@@ -172,4 +172,16 @@
</foreach>
</foreach>
</insert>
</insert>
<select
id=
"selectUnionIdByPatientId"
resultType=
"java.lang.String"
>
select
apu.union_id
from account_pat_union apu, account_pat_family apf
where apf.patient_id = #{patientId}
and apf.delete_flag = 1
and apf.relation = 1
and apu.acct_id = apf.acct_id
and apu.delete_flag = 1
and apu.union_type = 1
limit 1
</select>
</mapper>
</mapper>
\ No newline at end of file
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录