| Line 1089... |
Line 1089... |
| 1089 |
|
1089 |
|
| 1090 |
public void createGeofence() throws IOException, ProfitMandiBusinessException {
|
1090 |
public void createGeofence() throws IOException, ProfitMandiBusinessException {
|
| 1091 |
|
1091 |
|
| 1092 |
// List<FofoStore> fofoStores = fofoStoreRepository.selectActiveStores();
|
1092 |
// List<FofoStore> fofoStores = fofoStoreRepository.selectActiveStores();
|
| 1093 |
// for (FofoStore fofoStore : fofoStores) {
|
1093 |
// for (FofoStore fofoStore : fofoStores) {
|
| 1094 |
FofoStore fofoStore = fofoStoreRepository.selectByRetailerId(175138879);
|
1094 |
FofoStore fofoStore = fofoStoreRepository.selectByRetailerId(175138893);
|
| 1095 |
if (fofoStore.getLatitude() != null && fofoStore.getLongitude() != null) {
|
1095 |
if (fofoStore.getLatitude() != null && fofoStore.getLongitude() != null) {
|
| 1096 |
CustomRetailer customRetailer = retailerService.getFofoRetailer(175138879);
|
1096 |
CustomRetailer customRetailer = retailerService.getFofoRetailer(175138893);
|
| 1097 |
OkHttpClient client = new OkHttpClient();
|
1097 |
OkHttpClient client = new OkHttpClient();
|
| 1098 |
okhttp3.MediaType mediaType = okhttp3.MediaType.parse("application/json");
|
1098 |
okhttp3.MediaType mediaType = okhttp3.MediaType.parse("application/json");
|
| 1099 |
JSONObject geofe = new JSONObject();
|
1099 |
JSONObject geofe = new JSONObject();
|
| 1100 |
JSONArray geofences = new JSONArray();
|
1100 |
JSONArray geofences = new JSONArray();
|
| 1101 |
JSONObject geometry = new JSONObject();
|
1101 |
JSONObject geometry = new JSONObject();
|