fengxiang
2018-02-05 259294a3a1f922188075ad6ddad502eca5886b07
src/main/java/com/moral/service/impl/AccountServiceImpl.java
@@ -50,7 +50,7 @@
      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", "用户名及密码输入错误!");
@@ -171,9 +171,6 @@
   @Override
   public Optional<Account> queryAccountByName(String accountName) {
      Account account = accountMapper.getByAccountName(accountName);
      if(account!=null){
      }
      return Optional.ofNullable(account);
   }
}