| Line 1... |
Line 1... |
| 1 |
package in.shop2020.serving.services;
|
1 |
package in.shop2020.serving.services;
|
| 2 |
|
2 |
|
| - |
|
3 |
import in.shop2020.logistics.PickupStore;
|
| 3 |
import in.shop2020.logistics.Provider;
|
4 |
import in.shop2020.logistics.Provider;
|
| 4 |
import in.shop2020.model.v1.order.Order;
|
5 |
import in.shop2020.model.v1.order.Order;
|
| 5 |
import in.shop2020.model.v1.order.OrderStatus;
|
6 |
import in.shop2020.model.v1.order.OrderStatus;
|
| 6 |
import in.shop2020.model.v1.order.OrderStatusGroups;
|
7 |
import in.shop2020.model.v1.order.OrderStatusGroups;
|
| 7 |
import in.shop2020.model.v1.user.Address;
|
8 |
import in.shop2020.model.v1.user.Address;
|
| Line 216... |
Line 217... |
| 216 |
if(order.getLogistics_provider_id() != 0){
|
217 |
if(order.getLogistics_provider_id() != 0){
|
| 217 |
LogisticsClient logisticsServiceClient = new LogisticsClient();
|
218 |
LogisticsClient logisticsServiceClient = new LogisticsClient();
|
| 218 |
in.shop2020.logistics.LogisticsService.Client logisticsClient = logisticsServiceClient.getClient();
|
219 |
in.shop2020.logistics.LogisticsService.Client logisticsClient = logisticsServiceClient.getClient();
|
| 219 |
provider = logisticsClient.getProvider(order.getLogistics_provider_id());
|
220 |
provider = logisticsClient.getProvider(order.getLogistics_provider_id());
|
| 220 |
}
|
221 |
}
|
| - |
|
222 |
|
| - |
|
223 |
if (order.getPickupStoreId() != 0) {
|
| - |
|
224 |
in.shop2020.logistics.LogisticsService.Client logisticsServiceClient = new LogisticsClient().getClient();
|
| - |
|
225 |
PickupStore store = logisticsServiceClient.getPickupStore(order.getPickupStoreId());
|
| - |
|
226 |
order.setCustomer_name(store.getName());
|
| - |
|
227 |
order.setCustomer_address1(store.getLine1());
|
| - |
|
228 |
order.setCustomer_address2(store.getLine2());
|
| - |
|
229 |
order.setCustomer_city(store.getCity());
|
| - |
|
230 |
order.setCustomer_pincode(store.getPin());
|
| - |
|
231 |
order.setCustomer_state(store.getState());
|
| - |
|
232 |
order.setCustomer_mobilenumber(store.getPhone());
|
| - |
|
233 |
}
|
| 221 |
} catch (Exception e){
|
234 |
} catch (Exception e){
|
| 222 |
|
235 |
|
| 223 |
}
|
236 |
}
|
| 224 |
|
237 |
|
| 225 |
SimpleDateFormat dateformat = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss aa");
|
238 |
SimpleDateFormat dateformat = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss aa");
|