| | |
| | | Map<String, Object> result = new HashMap<String, Object>();
|
| | | Account account = new Account();
|
| | | account.setAccountName((String) parameters.get("account"));
|
| | | account.setPassword(md5((String) parameters.get("password")));
|
| | | account.setPassword(encoder.encode((String) parameters.get("password")));
|
| | | account = accountMapper.selectOne(account);
|
| | | if (isEmpty(account)) {
|
| | | result.put("msg", "用户名及密码输入错误!");
|
| | |
| | | @Override
|
| | | public Optional<Account> queryAccountByName(String accountName) {
|
| | | Account account = accountMapper.getByAccountName(accountName);
|
| | | if(account!=null){
|
| | |
|
| | | }
|
| | | return Optional.ofNullable(account);
|
| | | }
|
| | | }
|