Subversion Repositories SmartDukaan

Rev

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

Rev 22354 Rev 22860
Line 48... Line 48...
48
			customCustomer.setMobileNumber(customer.getMobileNumber());
48
			customCustomer.setMobileNumber(customer.getMobileNumber());
49
			customCustomer.setCustomerAddressId(customer.getId());
49
			customCustomer.setCustomerAddressId(customer.getId());
50
			if(!customer.getCustomerAddress().isEmpty()){
50
			if(!customer.getCustomerAddress().isEmpty()){
51
				CustomerAddress customerAddress = customer.getCustomerAddress().get(0);
51
				CustomerAddress customerAddress = customer.getCustomerAddress().get(0);
52
				CustomAddress customAddress = new CustomAddress();
52
				CustomAddress customAddress = new CustomAddress();
53
				customAddress.setCity(customAddress.getCity());
53
				customAddress.setCity(customerAddress.getCity());
54
				customAddress.setCountry(customerAddress.getCountry());
54
				customAddress.setCountry(customerAddress.getCountry());
55
				customAddress.setLandmark(customerAddress.getLandmark());
55
				customAddress.setLandmark(customerAddress.getLandmark());
56
				customAddress.setLine1(customerAddress.getLine1());
56
				customAddress.setLine1(customerAddress.getLine1());
57
				customAddress.setLine2(customerAddress.getLine2());
57
				customAddress.setLine2(customerAddress.getLine2());
58
				customAddress.setName(customerAddress.getName());
58
				customAddress.setName(customerAddress.getName());
59
				customAddress.setPhoneNumber(customerAddress.getPhoneNumber());
59
				customAddress.setPhoneNumber(customerAddress.getPhoneNumber());
60
				customAddress.setPinCode(customerAddress.getPinCode());
60
				customAddress.setPinCode(customerAddress.getPinCode());
61
				customAddress.setState(customAddress.getState());
61
				customAddress.setState(customerAddress.getState());
-
 
62
				customAddress.setId(customerAddress.getId());
62
				customCustomer.setAddress(customAddress);
63
				customCustomer.setAddress(customAddress);
63
			}
64
			}
64
			return responseSender.ok(customCustomer);
65
			return responseSender.ok(customCustomer);
65
		}catch(ProfitMandiBusinessException profitMandiBusinessException){
66
		}catch(ProfitMandiBusinessException profitMandiBusinessException){
66
			LOGGER.info("Customer not found with mobileNumber [{}]", mobileNumber);
67
			LOGGER.info("Customer not found with mobileNumber [{}]", mobileNumber);