Class EventsProcessingService

java.lang.Object
com.eeit87t3.tickiteasy.event.service.EventsProcessingService

@Service public class EventsProcessingService extends Object
Author:
Chuan (chuan13)
  • Constructor Details

    • EventsProcessingService

      public EventsProcessingService()
  • Method Details

    • save

      public EventsEntity save(EventsEntity eventsEntity)
      新增活動。
      Parameters:
      eventsEntity - :新增內容。
      Returns:
      新增後的 EventsEntity。
    • deleteById

      public Boolean deleteById(Integer eventID)
      先刪除圖片、再刪除活動。
      Parameters:
      eventID - :活動 ID。
      Returns:
      執行結果。
    • findById

      public EventsEntity findById(Integer eventID)
      以活動編號查詢單筆活動、並更新狀態。
      Parameters:
      eventID - :活動編號。
      Returns:
      查詢結果。
    • findByEventName

      public EventsEntity findByEventName(String eventName)
      以活動名稱查詢單筆活動、並更新狀態。
      Parameters:
      eventName - :活動名稱。
      Returns:
      查詢結果。
    • findByEventCategory

      public List<EventsEntity> findByEventCategory(CategoryEntity eventCategory)
      以活動類別查詢多筆活動、並更新狀態。
      Parameters:
      eventCategory - :活動類別。
      Returns:
      查詢結果。
    • findByEventTag

      public List<EventsEntity> findByEventTag(TagEntity tagEntity)
      以活動標籤查詢多筆活動、並更新狀態。
      Parameters:
      tagEntity - :活動標籤。
      Returns:
      查詢結果。
    • findByPageable

      public org.springframework.data.domain.Page<EventsEntity> findByPageable(org.springframework.data.domain.Pageable pageable)
      以 Pageable 查詢多筆活動、並更新狀態。
      Parameters:
      pageable - :分頁條件。
      Returns:
      查詢結果。
    • findBySpecification

      public org.springframework.data.domain.Page<EventsEntity> findBySpecification(EventsSearchingDTO eventsSearchingDTO)
      以 EventsSearchingDTO 查詢多筆活動、並更新狀態。
      Parameters:
      eventsSearchingDTO - :查詢條件。
      Returns:
      查詢結果。
    • findByListingAndOnsale

      public List<EventsEntity> findByListingAndOnsale()