| Line 369... |
Line 369... |
| 369 |
public int createOrder(CreateOrderRequest createOrderRequest, int fofoId, boolean accessoriesDeals) throws Exception {
|
369 |
public int createOrder(CreateOrderRequest createOrderRequest, int fofoId, boolean accessoriesDeals) throws Exception {
|
| 370 |
LOGGER.info("fofoId -- {} Order Request -- {}", fofoId, createOrderRequest);
|
370 |
LOGGER.info("fofoId -- {} Order Request -- {}", fofoId, createOrderRequest);
|
| 371 |
CustomCustomer customCustomer = createOrderRequest.getCustomer();
|
371 |
CustomCustomer customCustomer = createOrderRequest.getCustomer();
|
| 372 |
Customer customer = customerRepository.selectById(customCustomer.getCustomerId());
|
372 |
Customer customer = customerRepository.selectById(customCustomer.getCustomerId());
|
| 373 |
|
373 |
|
| 374 |
if ((createOrderRequest.getCustomer().getGender().equals("2"))) {
|
374 |
if ((createOrderRequest.getCustomer().getGender() != null && createOrderRequest.getCustomer().getGender().equals("2"))) {
|
| 375 |
customer.setGender("Female");
|
375 |
customer.setGender("Female");
|
| 376 |
} else {
|
376 |
} else {
|
| 377 |
|
377 |
|
| 378 |
customer.setGender("Male");
|
378 |
customer.setGender("Male");
|
| 379 |
}
|
379 |
}
|