| Line 81... |
Line 81... |
| 81 |
import com.spice.profitmandi.dao.entity.transaction.NotifyCancel;
|
81 |
import com.spice.profitmandi.dao.entity.transaction.NotifyCancel;
|
| 82 |
import com.spice.profitmandi.dao.entity.transaction.NotifyColorChange;
|
82 |
import com.spice.profitmandi.dao.entity.transaction.NotifyColorChange;
|
| 83 |
import com.spice.profitmandi.dao.entity.transaction.NotifyMessage;
|
83 |
import com.spice.profitmandi.dao.entity.transaction.NotifyMessage;
|
| 84 |
import com.spice.profitmandi.dao.entity.transaction.NotifyOrder;
|
84 |
import com.spice.profitmandi.dao.entity.transaction.NotifyOrder;
|
| 85 |
import com.spice.profitmandi.dao.entity.transaction.Order;
|
85 |
import com.spice.profitmandi.dao.entity.transaction.Order;
|
| - |
|
86 |
import com.spice.profitmandi.dao.model.BrandWiseTertiaryModel;
|
| 86 |
import com.spice.profitmandi.dao.model.ContentPojo;
|
87 |
import com.spice.profitmandi.dao.model.ContentPojo;
|
| - |
|
88 |
import com.spice.profitmandi.dao.model.OpenPoModel;
|
| - |
|
89 |
import com.spice.profitmandi.dao.model.OurPurchaseModel;
|
| - |
|
90 |
import com.spice.profitmandi.dao.model.SecondaryOrderBillingModel;
|
| 87 |
import com.spice.profitmandi.dao.model.Specification;
|
91 |
import com.spice.profitmandi.dao.model.Specification;
|
| 88 |
import com.spice.profitmandi.dao.model.SpecificationGroup;
|
92 |
import com.spice.profitmandi.dao.model.SpecificationGroup;
|
| 89 |
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
|
93 |
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
|
| 90 |
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
|
94 |
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
|
| 91 |
import com.spice.profitmandi.dao.repository.catalog.TagRankingRepository;
|
95 |
import com.spice.profitmandi.dao.repository.catalog.TagRankingRepository;
|
| 92 |
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
|
96 |
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
|
| 93 |
import com.spice.profitmandi.dao.repository.dtr.Mongo;
|
97 |
import com.spice.profitmandi.dao.repository.dtr.Mongo;
|
| 94 |
import com.spice.profitmandi.dao.repository.dtr.UserAccountRepository;
|
98 |
import com.spice.profitmandi.dao.repository.dtr.UserAccountRepository;
|
| 95 |
import com.spice.profitmandi.dao.repository.fofo.CurrentInventorySnapshotRepository;
|
99 |
import com.spice.profitmandi.dao.repository.fofo.CurrentInventorySnapshotRepository;
|
| - |
|
100 |
import com.spice.profitmandi.dao.repository.fofo.FofoOrderRepository;
|
| 96 |
import com.spice.profitmandi.dao.repository.fofo.InventoryItemRepository;
|
101 |
import com.spice.profitmandi.dao.repository.fofo.InventoryItemRepository;
|
| 97 |
import com.spice.profitmandi.dao.repository.fofo.LiveDemoBillingRespository;
|
102 |
import com.spice.profitmandi.dao.repository.fofo.LiveDemoBillingRespository;
|
| 98 |
import com.spice.profitmandi.dao.repository.inventory.NotifyStatus;
|
103 |
import com.spice.profitmandi.dao.repository.inventory.NotifyStatus;
|
| 99 |
import com.spice.profitmandi.dao.repository.transaction.NotifyCancelOrderRepository;
|
104 |
import com.spice.profitmandi.dao.repository.transaction.NotifyCancelOrderRepository;
|
| 100 |
import com.spice.profitmandi.dao.repository.transaction.NotifyColorChangeRepository;
|
105 |
import com.spice.profitmandi.dao.repository.transaction.NotifyColorChangeRepository;
|
| 101 |
import com.spice.profitmandi.dao.repository.transaction.NotifyItemRepository;
|
106 |
import com.spice.profitmandi.dao.repository.transaction.NotifyItemRepository;
|
| 102 |
import com.spice.profitmandi.dao.repository.transaction.NotifyMessageRepository;
|
107 |
import com.spice.profitmandi.dao.repository.transaction.NotifyMessageRepository;
|
| 103 |
import com.spice.profitmandi.dao.repository.transaction.NotifyOrderRespository;
|
108 |
import com.spice.profitmandi.dao.repository.transaction.NotifyOrderRespository;
|
| 104 |
import com.spice.profitmandi.dao.repository.transaction.OrderRepository;
|
109 |
import com.spice.profitmandi.dao.repository.transaction.OrderRepository;
|
| - |
|
110 |
import com.spice.profitmandi.dao.repository.warehouse.WarehousePurchaseOrderRepository;
|
| - |
|
111 |
import com.spice.profitmandi.dao.repository.warehouse.WarehouseScanRepository;
|
| 105 |
import com.spice.profitmandi.service.NotificationService;
|
112 |
import com.spice.profitmandi.service.NotificationService;
|
| 106 |
import com.spice.profitmandi.service.inventory.InventoryService;
|
113 |
import com.spice.profitmandi.service.inventory.InventoryService;
|
| 107 |
import com.spice.profitmandi.service.order.OrderService;
|
114 |
import com.spice.profitmandi.service.order.OrderService;
|
| 108 |
import com.spice.profitmandi.service.user.RetailerService;
|
115 |
import com.spice.profitmandi.service.user.RetailerService;
|
| 109 |
import com.spice.profitmandi.web.model.LoginDetails;
|
116 |
import com.spice.profitmandi.web.model.LoginDetails;
|
| Line 200... |
Line 207... |
| 200 |
|
207 |
|
| 201 |
@Autowired
|
208 |
@Autowired
|
| 202 |
private NotifyCancelOrderRepository notifyCancelOrderRepository;
|
209 |
private NotifyCancelOrderRepository notifyCancelOrderRepository;
|
| 203 |
|
210 |
|
| 204 |
@Autowired
|
211 |
@Autowired
|
| - |
|
212 |
private WarehousePurchaseOrderRepository warehousePurchaseOrderRepository;
|
| - |
|
213 |
|
| - |
|
214 |
@Autowired
|
| - |
|
215 |
private WarehouseScanRepository warehouseScanRepository;
|
| - |
|
216 |
|
| - |
|
217 |
@Autowired
|
| - |
|
218 |
private FofoOrderRepository fofoOrderRepository;
|
| - |
|
219 |
@Autowired
|
| 205 |
private Mongo mongoClient;
|
220 |
private Mongo mongoClient;
|
| 206 |
|
221 |
|
| 207 |
@RequestMapping(value = "/getCurrentInventorySnapshot")
|
222 |
@RequestMapping(value = "/getCurrentInventorySnapshot")
|
| 208 |
public String getCurrentAvailability(HttpServletRequest request,
|
223 |
public String getCurrentAvailability(HttpServletRequest request,
|
| 209 |
@RequestParam(name = "offset", defaultValue = "0") int offset,
|
224 |
@RequestParam(name = "offset", defaultValue = "0") int offset,
|
| Line 1246... |
Line 1261... |
| 1246 |
String key = title + s.getName();
|
1261 |
String key = title + s.getName();
|
| 1247 |
specsMap.put(key, String.join(", ", s.getValues()));
|
1262 |
specsMap.put(key, String.join(", ", s.getValues()));
|
| 1248 |
}
|
1263 |
}
|
| 1249 |
}
|
1264 |
}
|
| 1250 |
entityList.add(specsMap);
|
1265 |
entityList.add(specsMap);
|
| 1251 |
|
1266 |
|
| 1252 |
}
|
1267 |
}
|
| 1253 |
|
1268 |
|
| 1254 |
LOGGER.info("cps" + cps);
|
1269 |
LOGGER.info("cps" + cps);
|
| 1255 |
model.addAttribute("cps", cps);
|
1270 |
model.addAttribute("cps", cps);
|
| 1256 |
model.addAttribute("catalogIds", gson.toJson(catalogIds, List.class));
|
1271 |
model.addAttribute("catalogIds", gson.toJson(catalogIds, List.class));
|
| 1257 |
model.addAttribute("entityList", entityList);
|
1272 |
model.addAttribute("entityList", entityList);
|
| 1258 |
return "product-compare";
|
1273 |
return "product-compare";
|
| 1259 |
}
|
1274 |
}
|
| - |
|
1275 |
|
| - |
|
1276 |
@RequestMapping(value = "/inventory", method = RequestMethod.GET)
|
| - |
|
1277 |
public String Inventory(HttpServletRequest request,
|
| - |
|
1278 |
@RequestParam(name = "warehouseIds", required = true, defaultValue = "0") List<Integer> warehouseIds,
|
| - |
|
1279 |
Model model) throws Exception {
|
| - |
|
1280 |
model.addAttribute("warehouseId", warehouseIds);
|
| - |
|
1281 |
LOGGER.info("warehouseIds" + warehouseIds);
|
| - |
|
1282 |
|
| - |
|
1283 |
Map<Integer, String> warehouseMap = ProfitMandiConstants.WAREHOUSE_MAP;
|
| - |
|
1284 |
if (warehouseIds.contains(0)) {
|
| - |
|
1285 |
warehouseIds.addAll(warehouseMap.keySet());
|
| - |
|
1286 |
}
|
| - |
|
1287 |
|
| - |
|
1288 |
List<OpenPoModel> openPO = warehousePurchaseOrderRepository.selectOpenPol(warehouseIds);
|
| - |
|
1289 |
List<OurPurchaseModel> purchase = warehouseScanRepository.selectOurPurchase(warehouseIds);
|
| - |
|
1290 |
List<BrandWiseTertiaryModel> tertiary = fofoOrderRepository.selectGroupByBrandPartnerTertiary(warehouseIds);
|
| - |
|
1291 |
List<SecondaryOrderBillingModel> billing = orderRepository.selectAllBilledOrderGroupByBrand(warehouseIds);
|
| - |
|
1292 |
LOGGER.info("openPO" + openPO);
|
| - |
|
1293 |
LOGGER.info("purchase" + purchase);
|
| - |
|
1294 |
LOGGER.info("tertiary" + tertiary);
|
| - |
|
1295 |
LOGGER.info("billing" + billing);
|
| - |
|
1296 |
|
| - |
|
1297 |
LOGGER.info("warehouseIds" + warehouseIds);
|
| - |
|
1298 |
model.addAttribute("warehouseMap", warehouseMap);
|
| - |
|
1299 |
model.addAttribute("openPO", openPO);
|
| - |
|
1300 |
model.addAttribute("purchase", purchase);
|
| - |
|
1301 |
model.addAttribute("tertiary", tertiary);
|
| - |
|
1302 |
model.addAttribute("billing", billing);
|
| - |
|
1303 |
|
| - |
|
1304 |
return "inventory-listing";
|
| - |
|
1305 |
|
| - |
|
1306 |
}
|
| 1260 |
}
|
1307 |
}
|
| 1261 |
|
1308 |
|