提交 a26beadc 编写于 作者:  Peijun.zhao's avatar Peijun.zhao

add followup create doctor

上级 16c7aab9
流水线 #47844 已失败 于阶段
......@@ -78,16 +78,16 @@ public class CircleAccountServiceImpl implements CircleAccountService {
}
/**
*
* @param initAccoutsReq
* @return
*/
@Override
public List<DocInfoResp> createFollowupAccount(List<DocInfoReq> initAccoutsReq) {
List<DocInfoResp> respList = new ArrayList<>();
try {
for (DocInfoReq acct : initAccoutsReq) {
DocInfoResp resp = new DocInfoResp();
for (DocInfoReq acct : initAccoutsReq) {
DocInfoResp resp = new DocInfoResp();
try {
Account dbAcct = accountMapper.getByMobilePhone(acct.getMobile()); //获取医生表账号信息
if (null == dbAcct) {
Account account = new Account();
......@@ -106,12 +106,13 @@ public class CircleAccountServiceImpl implements CircleAccountService {
resp.setSeq(acct.getSeq());
logger.info("createFollowupAccount exist {}", dbAcct.getId().intValue());
}
respList.add(resp);
} catch (Exception e) {
logger.error("createFollowupAccount error:{}", e.getMessage());
resp.setDoctorId(0);
}
} catch (Exception e) {
logger.error("createFollowupAccount error:{}", e.getMessage());
throw e;
respList.add(resp);
}
return respList;
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册