|
|
@@ -25,6 +25,7 @@ import com.lemon.lifecenter.dto.CenterInfoDTO;
|
|
|
import com.lemon.lifecenter.dto.LocationDTO;
|
|
|
import com.lemon.lifecenter.dto.PatientDTO;
|
|
|
import com.lemon.lifecenter.service.CenterService;
|
|
|
+import com.lemon.lifecenter.service.DeviceService;
|
|
|
import com.lemon.lifecenter.service.MobilePatientService;
|
|
|
import com.lemon.lifecenter.service.RestApiService;
|
|
|
import com.lemon.lifecenter.service.StaffService;
|
|
|
@@ -45,7 +46,7 @@ public class MobileLoginController extends LifeCenterController {
|
|
|
private MobilePatientService patientService;
|
|
|
|
|
|
@Autowired
|
|
|
- private RestApiService restApiService;
|
|
|
+ private DeviceService deviceService;
|
|
|
|
|
|
@RequestMapping("/login")
|
|
|
public ModelAndView login() {
|
|
|
@@ -114,7 +115,7 @@ public class MobileLoginController extends LifeCenterController {
|
|
|
json.put("patientIdx", 1);
|
|
|
|
|
|
logger.error( "[PATIENT LOGOUT] RemoteIP : " + remoteIp + " UserId : " + sesMId );
|
|
|
- restApiService.deleteDeviceInfo(Integer.parseInt(sesMId));
|
|
|
+ deviceService.deleteDeviceInfo(Integer.parseInt(sesMId));
|
|
|
|
|
|
LifeCenterFunction.scriptMessage(response, "localStorage.clear();location.href='/mobile/login';");
|
|
|
return "/common/blank";
|