Subversion Repositories SmartDukaan

Rev

Rev 34631 | Rev 34640 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34631 Rev 34639
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