From a73c63037e6a5276ce6442873afc627e8cb2c9b0 Mon Sep 17 00:00:00 2001 From: ZhuDongming <773644075@qq.com> Date: Fri, 18 Oct 2019 14:46:42 +0800 Subject: [PATCH] update --- src/main/java/com/moral/service/impl/AccountServiceImpl.java | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/moral/service/impl/AccountServiceImpl.java b/src/main/java/com/moral/service/impl/AccountServiceImpl.java index cf1ef0c..261adc9 100644 --- a/src/main/java/com/moral/service/impl/AccountServiceImpl.java +++ b/src/main/java/com/moral/service/impl/AccountServiceImpl.java @@ -62,6 +62,7 @@ result.put("msg", "���������������"); result.put("accountId", account.getId()); result.put("orgId", account.getOrganizationId()); + setOrgIdsByAccount(result); } else { result.put("msg","���������������������������������������������"); } @@ -81,9 +82,9 @@ } @Override public void setOrgIdsByAccount(Map<String, Object> parameters) { - String accountId = (String) parameters.get("accountId"); + String accountId = parameters.get("accountId").toString(); accountId = accountId.replaceFirst("-", ""); - if (!isNumeric((String) parameters.get("accountId"))) { + if (!isNumeric(accountId)) { throw new BusinessException("accountId ������������������"); } @@ -198,4 +199,17 @@ account.setPassword(parameters.get("password").toString()); return account; } + + @Override + public Map<String, Object> getOrganizationIdByAccountId(String id) { + Integer accountId = Integer.parseInt(id); + Map<String, Object> map = accountMapper.getOrganizationIdByAccountId(accountId); + return map; + } + + @Override + public List<Account> getAccountList(String accountName) { + List<Account> accountList = accountMapper.getAccountList(accountName); + return accountList; + } } -- Gitblit v1.8.0