| Line 98... |
Line 98... |
| 98 |
|
98 |
|
| 99 |
@RequestMapping(value = "/devices/location", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
|
99 |
@RequestMapping(value = "/devices/location", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
|
| 100 |
public ResponseEntity<?> getLocationByKeyId(HttpServletRequest request, @RequestParam int userId,
|
100 |
public ResponseEntity<?> getLocationByKeyId(HttpServletRequest request, @RequestParam int userId,
|
| 101 |
@RequestParam int deviceId) throws IOException, MessagingException, ProfitMandiBusinessException {
|
101 |
@RequestParam int deviceId) throws IOException, MessagingException, ProfitMandiBusinessException {
|
| 102 |
|
102 |
|
| - |
|
103 |
LOGGER.info("UserId -> {}, Device Id -> {}", userId, deviceId);
|
| 103 |
double lat1 = 28.516045882182738;
|
104 |
double lat1 = 28.516045882182738;
|
| 104 |
double lng1 = 77.3771954997187;
|
105 |
double lng1 = 77.3771954997187;
|
| 105 |
|
106 |
|
| 106 |
HypertrackKey hyperTrackKey = hypertrackKeyRepository.selectByUserIdAndDeviceId(userId, deviceId);
|
107 |
HypertrackKey hyperTrackKey = hypertrackKeyRepository.selectByUserIdAndDeviceId(userId, deviceId);
|
| 107 |
// EmployeeAttendance employeeAttendance =
|
108 |
// EmployeeAttendance employeeAttendance =
|