You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

215 lines
9.8 KiB

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
2 years ago
2 years ago
​
​
2 years ago
​
​
2 years ago
​
2 years ago
​
​
​
2 years ago
​
​
​
​
​
​
​
​
​
2 years ago
​
​
​
​
2 years ago
2 years ago
2 years ago
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
2 years ago
2 years ago
​
2 years ago
2 years ago
​
​
​
​
2 years ago
  1. package com.gcc.communityHall.service;
  2. import java.time.LocalDate;
  3. import java.util.Date;
  4. import java.util.List;
  5. import java.util.Map;
  6. import java.util.Optional;
  7. import org.springframework.transaction.annotation.Transactional;
  8. import org.springframework.web.multipart.MultipartFile;
  9. import com.gcc.communityHall.entity.BookingCalendar;
  10. import com.gcc.communityHall.entity.BookingDetails;
  11. import com.gcc.communityHall.entity.BookingDetails.BookingStatus;
  12. import com.gcc.communityHall.entity.BookingDetails.RefundStatus;
  13. import com.gcc.communityHall.entity.EbDetails;
  14. import com.gcc.communityHall.entity.GccBlockingDate;
  15. public interface BookingService {
  16. BookingDetails getBookingsById(int BookingId);
  17. BookingDetails updateBookingDetails(BookingDetails bd);
  18. public String confirmTheDateAndSlot(String fromDate, String toDate, int days, int fromStartingSlot, int fromEndingSlot, int toStartingSlot, int toEndingSlot, int bookingId, int userId);
  19. public Map<String, Object> saveBookingDetails(Map<String, Object> formData);
  20. public BookingDetails updateBookingStatustoGCCBlocked(BookingDetails bookingDetails);
  21. public BookingDetails updateBookingStatus(int bookingId, BookingDetails.BookingStatus status, String comments);
  22. public BookingDetails updateBookingStatusById(int bookingId, BookingDetails.BookingStatus status, String comments);
  23. public EbDetails updateEbDetails(int bookingId, double startUnit, double endUnit, char status);
  24. //typeOfCancel depends { }
  25. String cancelBooking(int bookingId, BookingDetails.BookingStatus currentStatus, String comments);
  26. public String confirmBooking(int bookingId);
  27. public BookingDetails getBookingDetailsWithSettlement(int settlementId);
  28. //sreeja
  29. List<BookingDetails> getPresentsEventsByUserId(Integer hallId);
  30. List<BookingDetails> getPastsEventsByUserId(Integer hallId);
  31. List<BookingDetails> getFuturesEventsByUserId(Integer hallId);
  32. List<BookingDetails> getSettlementList(Integer hallId);
  33. public List<BookingDetails> getFilteredBookings(LocalDate fromDate, LocalDate toDate, List<Long> hallIds);
  34. public List<BookingCalendar> getPastData(int hall_id);
  35. public String processEbDetailsAndDamage(
  36. int bookingId, int ebId,
  37. double startingReading, double endingReading,
  38. float usedUnit, double ebAmount,
  39. String assetNames[], String comments[], int quantities[], Double assetAmounts[], MultipartFile assetImages[]);
  40. public int checkUserBookinglimitation(int userId);
  41. List<BookingDetails> getAllBookingsByUserId(Integer userId);
  42. List<Map<String, Object>> getAllBookingEventsByUserId(Integer userId);
  43. //List<BookingDetails> getAllBookingDetailsWithStatus(String fromDate, String toDate, String bookingStatus);
  44. //List<Object[]> getAllPaymentsDetails( String fromDate, String toDate);
  45. List<Object[]> getBookingUserDetailsReport(String fromDate, String toDate);
  46. List<Object[]> getBookingHallDetailsReport(String fromDate, String toDate);
  47. List<GccBlockingDate> getBlockedEvents(LocalDate fromDate, LocalDate toDate, List<Long> hallIds);
  48. List<Map<String, Object>> getOfflineBookings();
  49. List<BookingCalendar> getBookedslots(LocalDate fromDate, LocalDate endDate, List<Long> hallIdList);
  50. BookingDetails updateCancelledBookingStatus(int bookingId, BookingStatus status, String comments);
  51. BookingDetails updateRefundStatus(int bookingId, RefundStatus status);
  52. //officer service
  53. List<BookingDetails> getAllBookingDetailsByZone(String fromDate, String toDate, String zone);
  54. List<BookingDetails> getAllBookingDetailsByZoneWithStatus(String fromDate, String toDate, String zone, String bookingStatus);
  55. List<Object[]> getAllPaymentsDetailsByZone(String fromDate, String toDate, String zone);
  56. List<Object[]> getBookingHallDetailsReportByZone(String fromDate, String toDate, String zone);
  57. Optional<String> updateBookingDatesAndCalendar(int bookingId, String startDate, String endDate);
  58. List<Object[]> getBookingHallDetailsReportByZone1(String fromDate, String toDate, String zone, Integer hallId);
  59. List<Object> getGccBlockingEvents(String hallId);
  60. int getBlockedHallCount(String blockingReason, Date startDate, Date endDate);
  61. @Transactional
  62. void cancelAllBookings(String fromDate, String toDate, List<Long> hallIdsList,
  63. String reasonforblocking, List<String> selectedBookings, String updatedBy, String[] descriptions, MultipartFile[] documents);
  64. List<BookingDetails> findBookingDetailsByBookingId(Long bookingId);
  65. //admin dashboard
  66. Map<String, Map<String, Integer>> getBookingStatistics(LocalDate fromDate, LocalDate toDate, String zone, String division, Integer hallid, String userType);
  67. public List<Map<String, Object>> getBookingDetailsByHallId(int hallId);
  68. //officer dashboard
  69. Map<String, Map<String, Integer>> getOfficerDashboard(LocalDate fromDate, LocalDate toDate, String zone, String division, Integer hallid, String userType);
  70. List<Map<String, Object>> getHallDetailsForOfficer(Integer hallIid);
  71. //List<Object[]> getAllPaymentsDetails(String fromDate, String toDate, String paymentStatus);
  72. //admin reports
  73. List<Object[]> getBookingDetailsByBookingDate(String fromDate, String toDate, String zone, String division, Integer hallid);
  74. List<Object[]> getBookingDetailsByEventDate(String fromDate, String toDate, String zone, String division, Integer hallid);
  75. List<Object[]> getBookingDetailsByBookingDateWithStatus(String fromDate, String toDate, String bookingStatus, String zone, String division, Integer hallid);
  76. List<Object[]> getBookingDetailsByEventDateWithStatus(String fromDate, String toDate, String bookingStatus, String zone, String division, Integer hallid);
  77. List<Object[]> getAllPaymentsDetails(String fromDate, String toDate, String paymentStatus, String zone, String division, Integer hallid);
  78. List<Object[]> getBookingHallDetailsReportByBookingDate(String fromDate, String toDate, String zone, String division, Integer hallid);
  79. List<Object[]> getBookingHallDetailsReportByEventDate(String fromDate, String toDate, String zone, String division, Integer hallid);
  80. List<BookingDetails> getAllBookingsettlementDetailsByBookingDate(String fromDate, String toDate);
  81. List<BookingDetails> getAllBookingsettlementDetailsByBookingDateWithStatus(String fromDate, String toDate, String refundStatus);
  82. List<BookingDetails> getAllBookingsettlementDetailsByEventDate(String fromDate, String toDate);
  83. List<BookingDetails> getAllBookingsettlementDetailsByEventDateWithStatus(String fromDate, String toDate, String refundStatus);
  84. List<BookingDetails> getAllBookingDetailsBookingDateByZone(String fromDate, String toDate, String zone);
  85. List<BookingDetails> getAllBookingDetailsEventDateByZone(String fromDate, String toDate, String zone);
  86. List<BookingDetails> getAllBookingDetailsBookingDateByZoneWithStatus(String fromDate, String toDate, String zone, String bookingStatus);
  87. List<BookingDetails> getAllBookingDetailsEventDateByZoneWithStatus(String fromDate, String toDate, String zone, String bookingStatus);
  88. List<BookingDetails> getAllBookingsettlementDetailsByZoneByBookingDate(String fromDate, String toDate, String zone);
  89. List<BookingDetails> getAllBookingsettlementDetailsByZoneByEventDate(String fromDate, String toDate, String zone);
  90. List<BookingDetails> getAllBookingsettlementDetailsByZoneByBookingDateWithStatus(String fromDate, String toDate, String zone, String refundStatus);
  91. List<BookingDetails> getAllBookingsettlementDetailsByZoneByEventDateWithStatus(String fromDate, String toDate, String zone, String refundStatus);
  92. List<Object[]> getBookingHallDetailsReportByZoneByBookingDate(String fromDate, String toDate, String zone);
  93. List<Object[]> getBookingHallDetailsReportByZoneByEventDate(String fromDate, String toDate, String zone);
  94. List<Object[]> getBookingHallDetailsReportByZoneByBookingDateHallname(String fromDate, String toDate, String zone, Integer hallId);
  95. List<Object[]> getBookingHallDetailsReportByZoneByEventDateHallname(String fromDate, String toDate, String zone, Integer hallId);
  96. BookingDetails saveebdetails(int bookingId, double startingReading, MultipartFile startingReadingimage);
  97. String confirmStateBooking(int bookingId);
  98. String uploadNOCFile(MultipartFile file, int bookingId);
  99. //gccapps
  100. List<BookingDetails> getApprovedBookingDetails();
  101. List<BookingDetails> getRejectedBookingDetails();
  102. List<Object[]> getAllPaymentsDetails(String fromDate, String toDate);
  103. List<BookingDetails> getPastsEvents();
  104. List<BookingDetails> getPresentsEvents();
  105. List<BookingDetails> getFuturesEvents();
  106. List<BookingDetails> getSettlementApprovedList();
  107. List<Map<String, Object>> getHallDetails(Integer hall_id);
  108. List<BookingDetails> getWaitingforNOCapproval();
  109. List<Object[]> getAllExtraPaymentsDetails(String fromDate, String toDate, String paymentStatus, String zone, String division, Integer hallid);
  110. //developer
  111. List<Object[]> getTransactionresponse(String fromDate, String toDate, Long bookingId, Long hallId);
  112. List<Object[]> getRefundResponse(String fromDate, String toDate, Long bookingId);
  113. List<Object[]> getBookingCalendarDetails(String fromDate, String toDate, Long bookingId, String hallName);
  114. List<BookingDetails> getBookingsByDateAndHall(String bookingDate, Long hallId);
  115. BookingDetails updateRefundStatusScheduler(int bookingId, RefundStatus status);
  116. List<Object[]> getCounterWiseBookingCount(String fromDate, String toDate);
  117. List<Object[]> getHallWiseBookingDetails(String fromDate, String toDate, String CounterId);
  118. List<Object[]> getBookingDetailsForAllHalls(String fromDate, String toDate, String CounterId, Integer hallid);
  119. List<Object[]> getCounterWiseBookingDetails(String fromDate, String toDate);
  120. }