Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
37089 amit 1
package com.spice.profitmandi.dao.model;
2
 
3
/**
4
 * Month-bucketed variant of {@link LastMonthCreditedIncomeModel}: carries the year-month bucket
5
 * (yyyymm, e.g. 202606) so a single range query can return per-(month, brand) aggregates instead
6
 * of running one per-month query in a loop. Amount/qty semantics are identical to the per-month model.
7
 */
8
public class MonthlyBrandIncomeModel {
9
 
10
    private int yearMonth;
11
    private String brand;
12
    private long qty;
13
    private long amount;
14
 
15
    public MonthlyBrandIncomeModel(int yearMonth, String brand, long qty, long amount) {
16
        this.yearMonth = yearMonth;
17
        this.brand = brand;
18
        this.qty = qty;
19
        this.amount = amount;
20
    }
21
 
22
    public int getYearMonth() {
23
        return yearMonth;
24
    }
25
 
26
    public String getBrand() {
27
        return brand;
28
    }
29
 
30
    public long getQty() {
31
        return qty;
32
    }
33
 
34
    public long getAmount() {
35
        return amount;
36
    }
37
}