Subversion Repositories SmartDukaan

Rev

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

Rev 22875 Rev 22876
Line 649... Line 649...
649
		RetailerFofoInterest retailerInterest = new RetailerFofoInterest();
649
		RetailerFofoInterest retailerInterest = new RetailerFofoInterest();
650
		retailerInterest.setCity(user.getCity());
650
		retailerInterest.setCity(user.getCity());
651
		retailerInterest.setMobile(user.getMobileNumber());
651
		retailerInterest.setMobile(user.getMobileNumber());
652
		retailerInterest.setPinCode(user.getPinCode());
652
		retailerInterest.setPinCode(user.getPinCode());
653
		retailerInterest.setUserId(userInfo.getUserId());
653
		retailerInterest.setUserId(userInfo.getUserId());
-
 
654
		if(user.getPinCode()!=null){
654
		retailerInterest.setPinCode(user.getPinCode());
655
			retailerInterest.setPinCode(user.getPinCode());
-
 
656
		}
655
		retailerInterest.setInterestShownOn(new Date());
657
		retailerInterest.setInterestShownOn(new Date());
656
		LOGGER.info("requested url : "+request.getRequestURL().toString());
658
		LOGGER.info("requested url : "+request.getRequestURL().toString());
657
		return responseSender.ok(mongoClient.saveRetailerInterestOnFofo(retailerInterest));
659
		return responseSender.ok(mongoClient.saveRetailerInterestOnFofo(retailerInterest));
658
	}
660
	}
659
	
661