Rev 32450 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.model;import com.spice.profitmandi.dao.enumuration.fofo.Milestone;import java.time.YearMonth;import java.time.format.DateTimeFormatter;import java.util.Objects;public class PartnerMonthlySaleModel {private int fofoId;private String yearMonth;private long amount;//private long poAmount;private static final DateTimeFormatter yearMonthFormatter = DateTimeFormatter.ofPattern("MM-yyyy");private long pendingAmount;private Milestone totalMilestone;private Milestone billedMilestone;private Milestone previouseBilledMilestone;private String state;private String rbms;private Milestone poMilestoneLastMonth;private Milestone poMilestoneCurrentMonthTillDate;private Milestone poMilestoneTillYesterday;public PartnerMonthlySaleModel(int fofoId, String yearMonth, long amount) {super();this.fofoId = fofoId;this.yearMonth = yearMonth;this.amount = amount;}/*public long getPoAmount() {return poAmount;}public void setPoAmount(long poAmount) {this.poAmount = poAmount;}*/public Milestone getPoMilestoneLastMonth() {return poMilestoneLastMonth;}public void setPoMilestoneLastMonth(Milestone poMilestoneLastMonth) {this.poMilestoneLastMonth = poMilestoneLastMonth;}public Milestone getPoMilestoneCurrentMonthTillDate() {return poMilestoneCurrentMonthTillDate;}public void setPoMilestoneCurrentMonthTillDate(Milestone poMilestoneCurrentMonthTillDate) {this.poMilestoneCurrentMonthTillDate = poMilestoneCurrentMonthTillDate;}public Milestone getPoMilestoneTillYesterday() {return poMilestoneTillYesterday;}public void setPoMilestoneTillYesterday(Milestone poMilestoneTillYesterday) {this.poMilestoneTillYesterday = poMilestoneTillYesterday;}public YearMonth getYearMonthObj() {return YearMonth.parse(this.yearMonth, yearMonthFormatter);}public void setYearMonthObj(YearMonth yearMonth) {this.yearMonth = yearMonthFormatter.format(yearMonth);}public int getFofoId() {return fofoId;}public void setFofoId(int fofoId) {this.fofoId = fofoId;}public String getYearMonth() {return yearMonth;}public void setYearMonth(String yearMonth) {this.yearMonth = yearMonth;}public long getAmount() {return amount;}public void setAmount(long amount) {this.amount = amount;}public long getPendingAmount() {return pendingAmount;}public void setPendingAmount(long pendingAmount) {this.pendingAmount = pendingAmount;}public String getRbms() {return rbms;}public void setRbms(String rbms) {this.rbms = rbms;}public Milestone getTotalMilestone() {return totalMilestone;}public void setTotalMilestone(Milestone totalMilestone) {this.totalMilestone = totalMilestone;}public Milestone getBilledMilestone() {return billedMilestone;}public void setBilledMilestone(Milestone billedMilestone) {this.billedMilestone = billedMilestone;}public Milestone getPreviouseBilledMilestone() {return previouseBilledMilestone;}public void setPreviouseBilledMilestone(Milestone previouseBilledMilestone) {this.previouseBilledMilestone = previouseBilledMilestone;}public String getState() {return state;}public void setState(String state) {this.state = state;}@Overridepublic String toString() {return "PartnerMonthlySaleModel{" +"fofoId=" + fofoId +", yearMonth='" + yearMonth + '\'' +", amount=" + amount +", pendingAmount=" + pendingAmount +", totalMilestone=" + totalMilestone +", billedMilestone=" + billedMilestone +", previouseBilledMilestone=" + previouseBilledMilestone +", state='" + state + '\'' +", rbms='" + rbms + '\'' +'}';}@Overridepublic boolean equals(Object o) {if (this == o) return true;if (o == null || getClass() != o.getClass()) return false;PartnerMonthlySaleModel that = (PartnerMonthlySaleModel) o;return fofoId == that.fofoId && amount == that.amount && pendingAmount == that.pendingAmount && Objects.equals(yearMonth, that.yearMonth) && totalMilestone == that.totalMilestone && billedMilestone == that.billedMilestone && previouseBilledMilestone == that.previouseBilledMilestone && Objects.equals(state, that.state) && Objects.equals(rbms, that.rbms);}@Overridepublic int hashCode() {return Objects.hash(fofoId, yearMonth, amount, pendingAmount, totalMilestone, billedMilestone, previouseBilledMilestone, state, rbms);}}