提交 f4b3b0a2 编写于 作者: yongbo.wang's avatar yongbo.wang

若获取不到监护人本人patid则返回自己patid

上级 363ddd82
流水线 #25511 已失败 于阶段
in 0 second
...@@ -17,7 +17,6 @@ import com.pica.cloud.account.account.server.service.PatHealthPackService; ...@@ -17,7 +17,6 @@ import com.pica.cloud.account.account.server.service.PatHealthPackService;
import com.pica.cloud.foundation.encryption.common.constants.EncryptConstants; import com.pica.cloud.foundation.encryption.common.constants.EncryptConstants;
import com.pica.cloud.foundation.encryption.util.EncryptUtils; import com.pica.cloud.foundation.encryption.util.EncryptUtils;
import com.pica.cloud.foundation.entity.PicaException; import com.pica.cloud.foundation.entity.PicaException;
import com.pica.cloud.foundation.entity.PicaResponse;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -271,7 +270,7 @@ public class PatHealthPackServiceIml implements PatHealthPackService { ...@@ -271,7 +270,7 @@ public class PatHealthPackServiceIml implements PatHealthPackService {
@Override @Override
public Integer getFamilyAcctPatId(Integer patId) { public Integer getFamilyAcctPatId(Integer patId) {
Integer rtnPatId = 0; Integer rtnPatId = patId;
List<AcctPatFamily> acctMembers = patFamilyMapper.getByPatIdSelf(patId); List<AcctPatFamily> acctMembers = patFamilyMapper.getByPatIdSelf(patId);
if(CollectionUtils.isNotEmpty(acctMembers)){ if(CollectionUtils.isNotEmpty(acctMembers)){
//本人为监护人 返回自身patId //本人为监护人 返回自身patId
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册