Subversion Repositories SmartDukaan

Rev

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

Rev 32018 Rev 32019
Line 301... Line 301...
301
            return responseSender.ok(new CustomerModel(false, null));
301
            return responseSender.ok(new CustomerModel(false, null));
302
        }
302
        }
303
    }
303
    }
304
 
304
 
305
 
305
 
306
    @RequestMapping(value = "/store/getCustomerById", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
306
    @RequestMapping(value = "/store/getCustomerById/{id}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
307
    public ResponseEntity<?> getCustomerById(HttpServletRequest request, @PathVariable int id) throws Exception {
307
    public ResponseEntity<?> getCustomerById(HttpServletRequest request, @PathVariable int id) throws Exception {
308
 
308
 
309
        Customer customer = customerRepository.selectById(id);
309
        Customer customer = customerRepository.selectById(id);
310
        customer.setPasswordExist(StringUtils.isNotEmpty(customer.getPassword()));
310
        customer.setPasswordExist(StringUtils.isNotEmpty(customer.getPassword()));
-
 
311
        
311
        return responseSender.ok(customer);
312
        return responseSender.ok(customer);
312
 
313
 
313
    }
314
    }
314
 
315
 
315
    @RequestMapping(value = "/store/signin", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
316
    @RequestMapping(value = "/store/signin", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)