Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.service;

import java.util.Map;

/**
 * Read-only analytics over the Beat Plan (PJP) feature for the running month.
 * All metrics are computed live via cross-schema native SQL on each call.
 */
public interface RouteAnalyticsService {

    /**
     * @param monthStart first day of the running month, 'yyyy-MM-dd'
     * @param monthEnd   last day of the running month, 'yyyy-MM-dd'
     * @param today      current date (elapsed-MTD boundary), 'yyyy-MM-dd'
     * @return a single payload map with all dashboard blocks
     */
    Map<String, Object> currentMonthAnalytics(String monthStart, String monthEnd, String today);
}