Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.model;

/**
 * Model to hold combined tertiary sales data for a partner.
 * Used for batch fetching multiple tertiary metrics in a single query.
 */
public class PartnerTertiarySalesModel {
        private int fofoId;
        private long lmtdSale;    // Last month to date (same day last month)
        private long mtdSale;     // Month to date
        private long lmsSale;     // Last month sales (full month)
        private long todaySale;   // Today's sales
        private long last3daysQty; // Last 3 days quantity count

        public PartnerTertiarySalesModel(int fofoId, long lmtdSale, long mtdSale, long lmsSale, long todaySale, long last3daysQty) {
                this.fofoId = fofoId;
                this.lmtdSale = lmtdSale;
                this.mtdSale = mtdSale;
                this.lmsSale = lmsSale;
                this.todaySale = todaySale;
                this.last3daysQty = last3daysQty;
        }

        public PartnerTertiarySalesModel() {
        }

        public int getFofoId() {
                return fofoId;
        }

        public void setFofoId(int fofoId) {
                this.fofoId = fofoId;
        }

        public long getLmtdSale() {
                return lmtdSale;
        }

        public void setLmtdSale(long lmtdSale) {
                this.lmtdSale = lmtdSale;
        }

        public long getMtdSale() {
                return mtdSale;
        }

        public void setMtdSale(long mtdSale) {
                this.mtdSale = mtdSale;
        }

        public long getLmsSale() {
                return lmsSale;
        }

        public void setLmsSale(long lmsSale) {
                this.lmsSale = lmsSale;
        }

        public long getTodaySale() {
                return todaySale;
        }

        public void setTodaySale(long todaySale) {
                this.todaySale = todaySale;
        }

        public long getLast3daysQty() {
                return last3daysQty;
        }

        public void setLast3daysQty(long last3daysQty) {
                this.last3daysQty = last3daysQty;
        }

        @Override
        public String toString() {
                return "PartnerTertiarySalesModel [fofoId=" + fofoId + ", lmtdSale=" + lmtdSale + ", mtdSale=" + mtdSale
                                + ", lmsSale=" + lmsSale + ", todaySale=" + todaySale + ", last3daysQty=" + last3daysQty + "]";
        }
}