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

add followup create doctor

上级 7339c7f6
......@@ -10,6 +10,7 @@ public class DocInfoReq {
private String name;
// 手机明文
private String mobile;
private String seq;
......
......@@ -77,6 +77,11 @@ public class CircleAccountServiceImpl implements CircleAccountService {
return savedIds;
}
/**
*
* @param initAccoutsReq
* @return
*/
@Override
public List<DocInfoResp> createFollowupAccount(List<DocInfoReq> initAccoutsReq) {
List<DocInfoResp> respList = new ArrayList<>();
......@@ -88,22 +93,23 @@ public class CircleAccountServiceImpl implements CircleAccountService {
Account account = new Account();
account.setName(acct.getName());
account.setNickname(acct.getName());
account.setMobilePhone(acct.getMobile());
String encryMobile = EncryptUtils.encryptContent(acct.getMobile(), EncryptConstants.ENCRYPT_TYPE_MOBILE);
account.setMobilePhone(encryMobile);
account.setRegisterSource(acct.getSource());
accountService.createAccount(account, null);
logger.info("createCircleAccount insert {}", account.getId().intValue());
logger.info("createFollowupAccount insert {}", account.getId().intValue());
resp.setDoctorId(account.getId().intValue());
resp.setSeq(acct.getSeq());
} else {
resp.setDoctorId(dbAcct.getId().intValue());
resp.setSeq(acct.getSeq());
logger.info("createCircleAccount exist {}", dbAcct.getId().intValue());
logger.info("createFollowupAccount exist {}", dbAcct.getId().intValue());
}
respList.add(resp);
}
} catch (Exception e) {
logger.error("createCircleAccount error:{}", e.getMessage());
logger.error("createFollowupAccount error:{}", e.getMessage());
throw e;
}
return respList;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册