Subversion Repositories SmartDukaan

Rev

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

Rev 26039 Rev 26105
Line 754... Line 754...
754
			if (!existingOrder.isEmpty()) {
754
			if (!existingOrder.isEmpty()) {
755
				LOGGER.info("existingOrder" + existingOrder);
755
				LOGGER.info("existingOrder" + existingOrder);
756
				for (NotifyOrder notifyOrder : existingOrder) {
756
				for (NotifyOrder notifyOrder : existingOrder) {
757
					if (NotifyStatus.pending == notifyOrder.getStatus()) {
757
					if (NotifyStatus.pending == notifyOrder.getStatus()) {
758
						notifyOrder.setStatus(NotifyStatus.rejected);
758
						notifyOrder.setStatus(NotifyStatus.rejected);
-
 
759
						notifyOrder.setUpdateTimestamp(LocalDateTime.now());
759
					}
760
					}
760
				}
761
				}
761
			}
762
			}
762
			NotifyOrder orderStatus = new NotifyOrder();
763
			NotifyOrder orderStatus = new NotifyOrder();
763
			orderStatus.setOrderId(st.getOrderId());
764
			orderStatus.setOrderId(st.getOrderId());
764
			orderStatus.setNotifyId(notifytimestamp.getId());
765
			orderStatus.setNotifyId(notifytimestamp.getId());
765
			orderStatus.setItemId(st.getOlditemId());
766
			orderStatus.setItemId(st.getOlditemId());
766
			Order id = orderRepository.selectById(st.getOrderId());
767
			Order id = orderRepository.selectById(st.getOrderId());
767
			orderStatus.setFofoId(id.getRetailerId());
768
			orderStatus.setFofoId(id.getRetailerId());
768
			orderStatus.setStatus(NotifyStatus.pending);
769
			orderStatus.setStatus(NotifyStatus.pending);
-
 
770
			orderStatus.setUpdateTimestamp(LocalDateTime.now());
769
			notifyOrderRespository.persist(orderStatus);
771
			notifyOrderRespository.persist(orderStatus);
770
 
772
 
771
			LOGGER.info("itemStatus" + orderStatus);
773
			LOGGER.info("itemStatus" + orderStatus);
772
			orderIds.add(st.getOrderId());
774
			orderIds.add(st.getOrderId());
773
		}
775
		}