Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.model;

/**
 * Month-bucketed variant of {@link LastMonthCreditedIncomeModel}: carries the year-month bucket
 * (yyyymm, e.g. 202606) so a single range query can return per-(month, brand) aggregates instead
 * of running one per-month query in a loop. Amount/qty semantics are identical to the per-month model.
 */
public class MonthlyBrandIncomeModel {

    private int yearMonth;
    private String brand;
    private long qty;
    private long amount;

    public MonthlyBrandIncomeModel(int yearMonth, String brand, long qty, long amount) {
        this.yearMonth = yearMonth;
        this.brand = brand;
        this.qty = qty;
        this.amount = amount;
    }

    public int getYearMonth() {
        return yearMonth;
    }

    public String getBrand() {
        return brand;
    }

    public long getQty() {
        return qty;
    }

    public long getAmount() {
        return amount;
    }
}