Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.service;

import com.spice.profitmandi.dao.model.BeatDayDetails;

import java.time.LocalDate;
import java.util.List;

/**
 * Common query service for beat plans. Lives in the dao project so it can
 * be reused by any module needing beat-on-date data without duplicating
 * Beat / BeatRoute / BeatSchedule / LeadRoute lookups.
 */
public interface BeatPlanQueryService {

        /**
         * All beats scheduled for the given auth user on the given date.
         * Each BeatDayDetails contains the beat metadata + the partner stops (template)
         * + the lead stops scheduled specifically for this date.
         */
        List<BeatDayDetails> getBeatsForUserOnDate(int authUserId, LocalDate date);

        /**
         * Tabular view: every beat scheduled in [start, end] across ALL users.
         * One BeatDayDetails per scheduled day. Use to render admin/cross-user tables.
         */
        List<BeatDayDetails> getAllScheduledBeats(LocalDate start, LocalDate end);
}