|
@@ -3,6 +3,7 @@ package com.travel.service.impl;
|
|
|
import com.travel.mapper.LoginMapper;
|
|
|
import com.travel.model.User;
|
|
|
import com.travel.service.LoginService;
|
|
|
+import com.travel.util.DesEncry;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -86,4 +87,14 @@ public class LoginServiceImpl implements LoginService {
|
|
|
public void updateKeyToLog(User user) {
|
|
|
loginMapper.updateKeyToLog(user);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public User getUserPassLogin(User user) {
|
|
|
+ return loginMapper.getUserPassLogin(user);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int getUserPassLoginCount(User user) {
|
|
|
+ return loginMapper.getUserPassLoginCount(user);
|
|
|
+ }
|
|
|
}
|