Blame | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.model;/*** Per-(month, brand) tertiary sell-out for one partner: carries the year-month bucket* (yyyymm, e.g. 202607) so a single aggregate query replaces loading every FofoOrder and* FofoOrderItem for the range and summing them in memory.** Amount is sum(quantity * mop) over the order items - the same catalogue-price basis the* DSR and the partner tier calculation use (FofoOrder.selectPartnerTertiarySales), not the* POS-typed fofo_order.total_amount header.*/public class MonthlyBrandTertiaryModel {private int yearMonth;private String brand;private long amount;public MonthlyBrandTertiaryModel(int yearMonth, String brand, long amount) {this.yearMonth = yearMonth;this.brand = brand;this.amount = amount;}public int getYearMonth() {return yearMonth;}public void setYearMonth(int yearMonth) {this.yearMonth = yearMonth;}public String getBrand() {return brand;}public void setBrand(String brand) {this.brand = brand;}public long getAmount() {return amount;}public void setAmount(long amount) {this.amount = amount;}@Overridepublic String toString() {return "MonthlyBrandTertiaryModel [yearMonth=" + yearMonth + ", brand=" + brand + ", amount=" + amount + "]";}}