Subversion Repositories SmartDukaan

Rev

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

Rev 32965 Rev 32966
Line 372... Line 372...
372
        } catch (ProfitMandiBusinessException e) {
372
        } catch (ProfitMandiBusinessException e) {
373
            //Ignore the exception
373
            //Ignore the exception
374
        }
374
        }
375
        if (dtrUser != null)
375
        if (dtrUser != null)
376
            throw new ProfitMandiBusinessException("Mobile already exist", updateRetailerRequest.getUserMobileNumber(), "");
376
            throw new ProfitMandiBusinessException("Mobile already exist", updateRetailerRequest.getUserMobileNumber(), "");
-
 
377
 
-
 
378
        User dtrUserByEmail = null;
-
 
379
        try {
377
        User dtrUserByEmail = userRepository.selectByMobileNumber(updateRetailerRequest.getUserEmailId());
380
            dtrUserByEmail = userRepository.selectByEmailId(updateRetailerRequest.getUserEmailId());
-
 
381
        } catch (ProfitMandiBusinessException e) {
-
 
382
            //ignore the exception
-
 
383
        }
378
        if (dtrUserByEmail != null)
384
        if (dtrUserByEmail != null)
379
            throw new ProfitMandiBusinessException("Email already exist", updateRetailerRequest.getUserEmailId(), "");
385
            throw new ProfitMandiBusinessException("Email already exist", updateRetailerRequest.getUserEmailId(), "");
380
 
386
 
381
 
387
 
382
        if (user == null) {
388
        if (user == null) {