| Line 158... |
Line 158... |
| 158 |
|
158 |
|
| 159 |
@RequestMapping(value = "/retailerDetails", method = RequestMethod.PUT)
|
159 |
@RequestMapping(value = "/retailerDetails", method = RequestMethod.PUT)
|
| 160 |
public String updateRetailerDetails(HttpServletRequest request,
|
160 |
public String updateRetailerDetails(HttpServletRequest request,
|
| 161 |
@RequestBody UpdateRetailerRequest updateRetailerRequest, Model model) throws ProfitMandiBusinessException {
|
161 |
@RequestBody UpdateRetailerRequest updateRetailerRequest, Model model) throws ProfitMandiBusinessException {
|
| 162 |
LOGGER.info("Request Received at url {} with body {}", request.getRequestURI(), updateRetailerRequest);
|
162 |
LOGGER.info("Request Received at url {} with body {}", request.getRequestURI(), updateRetailerRequest);
|
| 163 |
|
- |
|
| - |
|
163 |
String storeCode = updateRetailerRequest.getFofostorecode();
|
| 164 |
if (!updateRetailerRequest.getFofoType().equals(FofoType.INTERNAL)) {
|
164 |
if (!updateRetailerRequest.getFofoType().equals(FofoType.INTERNAL) && (storeCode==null || storeCode.isEmpty())) {
|
| 165 |
checkLoiCompletion(updateRetailerRequest);
|
165 |
checkLoiCompletion(updateRetailerRequest);
|
| 166 |
}
|
166 |
}
|
| 167 |
Map<String, Object> map = retailerService.updateRetailerDetails(updateRetailerRequest);
|
167 |
Map<String, Object> map = retailerService.updateRetailerDetails(updateRetailerRequest);
|
| 168 |
//retailerService.up
|
168 |
//retailerService.up
|
| 169 |
|
169 |
|