Subversion Repositories SmartDukaan

Rev

Rev 31285 | Rev 32438 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31285 Rev 32417
Line 1... Line 1...
1
package com.spice.profitmandi.dao.model;
1
package com.spice.profitmandi.dao.model;
2
 
2
 
-
 
3
import java.time.YearMonth;
-
 
4
import java.time.format.DateTimeFormatter;
3
import java.util.Objects;
5
import java.util.Objects;
4
 
6
 
5
public class PartnerMonthlySaleModel {
7
public class PartnerMonthlySaleModel {
6
 
8
 
7
	private int fofoId;
9
	private int fofoId;
8
	private String yearMonth;
10
	private String yearMonth;
9
	private long amount;
11
	private long amount;
-
 
12
    private static final DateTimeFormatter yearMonthFormatter = DateTimeFormatter.ofPattern("%m-%Y");
10
 
13
 
11
	public PartnerMonthlySaleModel(int fofoId, String yearMonth, long amount) {
14
	public PartnerMonthlySaleModel(int fofoId, String yearMonth, long amount) {
12
		super();
15
		super();
13
		this.fofoId = fofoId;
16
		this.fofoId = fofoId;
14
		this.yearMonth = yearMonth;
17
		this.yearMonth = yearMonth;
15
		this.amount = amount;
18
		this.amount = amount;
16
	}
19
	}
17
 
20
 
-
 
21
    public YearMonth getYearMonthObj() {
-
 
22
        return YearMonth.parse(this.yearMonth, yearMonthFormatter);
-
 
23
    }
-
 
24
 
18
	public int getFofoId() {
25
	public int getFofoId() {
19
		return fofoId;
26
		return fofoId;
20
	}
27
	}
21
 
28
 
22
	public void setFofoId(int fofoId) {
29
	public void setFofoId(int fofoId) {