| 36659 |
ranu |
1 |
package com.spice.profitmandi.dao.service;
|
|
|
2 |
|
|
|
3 |
import com.spice.profitmandi.dao.model.BeatDayDetails;
|
|
|
4 |
|
|
|
5 |
import java.time.LocalDate;
|
|
|
6 |
import java.util.List;
|
|
|
7 |
|
|
|
8 |
/**
|
|
|
9 |
* Common query service for beat plans. Lives in the dao project so it can
|
|
|
10 |
* be reused by any module needing beat-on-date data without duplicating
|
|
|
11 |
* Beat / BeatRoute / BeatSchedule / LeadRoute lookups.
|
|
|
12 |
*/
|
|
|
13 |
public interface BeatPlanQueryService {
|
|
|
14 |
|
|
|
15 |
/**
|
|
|
16 |
* All beats scheduled for the given auth user on the given date.
|
|
|
17 |
* Each BeatDayDetails contains the beat metadata + the partner stops (template)
|
|
|
18 |
* + the lead stops scheduled specifically for this date.
|
|
|
19 |
*/
|
|
|
20 |
List<BeatDayDetails> getBeatsForUserOnDate(int authUserId, LocalDate date);
|
|
|
21 |
|
|
|
22 |
/**
|
|
|
23 |
* Tabular view: every beat scheduled in [start, end] across ALL users.
|
|
|
24 |
* One BeatDayDetails per scheduled day. Use to render admin/cross-user tables.
|
|
|
25 |
*/
|
|
|
26 |
List<BeatDayDetails> getAllScheduledBeats(LocalDate start, LocalDate end);
|
|
|
27 |
}
|