Subversion Repositories SmartDukaan

Rev

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

Rev 32966 Rev 32967
Line 379... Line 379...
379
        try {
379
        try {
380
            dtrUserByEmail = userRepository.selectByEmailId(updateRetailerRequest.getUserEmailId());
380
            dtrUserByEmail = userRepository.selectByEmailId(updateRetailerRequest.getUserEmailId());
381
        } catch (ProfitMandiBusinessException e) {
381
        } catch (ProfitMandiBusinessException e) {
382
            //ignore the exception
382
            //ignore the exception
383
        }
383
        }
384
        if (dtrUserByEmail != null)
384
        if (user!=null && dtrUserByEmail != null && user.getId() != dtrUserByEmail.getId())
385
            throw new ProfitMandiBusinessException("Email already exist", updateRetailerRequest.getUserEmailId(), "");
385
            throw new ProfitMandiBusinessException("Email already exist", updateRetailerRequest.getUserEmailId(), "");
386
 
386
 
387
 
387
 
388
        if (user == null) {
388
        if (user == null) {
389
            user = new User();
389
            user = new User();