| Line 92... |
Line 92... |
| 92 |
LOGGER.info("Request Received at url {} with emailIdOrMobileNumber {}", request.getRequestURI(),
|
92 |
LOGGER.info("Request Received at url {} with emailIdOrMobileNumber {}", request.getRequestURI(),
|
| 93 |
emailIdOrMobileNumber);
|
93 |
emailIdOrMobileNumber);
|
| 94 |
Map<String, Object> map = retailerService.getByEmailIdOrMobileNumber(emailIdOrMobileNumber);
|
94 |
Map<String, Object> map = retailerService.getByEmailIdOrMobileNumber(emailIdOrMobileNumber);
|
| 95 |
model.addAllAttributes(map);
|
95 |
model.addAllAttributes(map);
|
| 96 |
model.addAttribute("counterSizes", CounterSize.values());
|
96 |
model.addAttribute("counterSizes", CounterSize.values());
|
| - |
|
97 |
if(map.containsKey("retailer")) {
|
| - |
|
98 |
Retailer retailer = (Retailer)map.get("retailer");
|
| 97 |
User user = userRepository.selectByEmailId(emailIdOrMobileNumber);
|
99 |
User user = userRepository.selectById(retailer.getId());
|
| 98 |
if (user.getLocation() != null) {
|
100 |
if (user.getLocation() != null) {
|
| 99 |
Location location = locationRepository.selectById(user.getLocation());
|
101 |
Location location = locationRepository.selectById(user.getLocation());
|
| 100 |
model.addAttribute("locationdetail", location);
|
102 |
model.addAttribute("locationdetail", location);
|
| 101 |
LOGGER.info("location" + location);
|
103 |
LOGGER.info("location" + location);
|
| - |
|
104 |
}
|
| 102 |
}
|
105 |
}
|
| 103 |
LOGGER.info("map detail" + map);
|
- |
|
| 104 |
|
106 |
|
| 105 |
return "retailer-details";
|
107 |
return "retailer-details";
|
| 106 |
}
|
108 |
}
|
| 107 |
|
109 |
|
| 108 |
@RequestMapping(value = "/retailerDetails", method = RequestMethod.PUT)
|
110 |
@RequestMapping(value = "/retailerDetails", method = RequestMethod.PUT)
|