Subversion Repositories SmartDukaan

Rev

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

Rev 33697 Rev 33741
Line 895... Line 895...
895
        for (NotifyOrderIdModel st : notifyOrderModel.getOrderIds()) {
895
        for (NotifyOrderIdModel st : notifyOrderModel.getOrderIds()) {
896
            List<NotifyOrder> existingOrder = notifyOrderRespository.selectByOrder(st.getOrderId());
896
            List<NotifyOrder> existingOrder = notifyOrderRespository.selectByOrder(st.getOrderId());
897
            if (!existingOrder.isEmpty()) {
897
            if (!existingOrder.isEmpty()) {
898
                LOGGER.info("existingOrder" + existingOrder);
898
                LOGGER.info("existingOrder" + existingOrder);
899
                for (NotifyOrder notifyOrder : existingOrder) {
899
                for (NotifyOrder notifyOrder : existingOrder) {
900
                    if (NotifyStatus.pending == notifyOrder.getStatus()) {
900
                    if (NotifyStatus.pending.equals(notifyOrder.getStatus())) {
901
                        notifyOrder.setStatus(NotifyStatus.rejected);
901
                        notifyOrder.setStatus(NotifyStatus.rejected);
902
                        notifyOrder.setUpdateTimestamp(LocalDateTime.now());
902
                        notifyOrder.setUpdateTimestamp(LocalDateTime.now());
903
                    }
903
                    }
904
                }
904
                }
905
            }
905
            }