Subversion Repositories SmartDukaan

Rev

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

Rev 24384 Rev 24417
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.cs;
1
package com.spice.profitmandi.dao.entity.cs;
2
 
2
 
3
import java.time.LocalDateTime;
3
import java.time.LocalDateTime;
-
 
4
import java.time.format.DateTimeFormatter;
4
 
5
 
5
import javax.persistence.Column;
6
import javax.persistence.Column;
6
import javax.persistence.Entity;
7
import javax.persistence.Entity;
7
import javax.persistence.EnumType;
8
import javax.persistence.EnumType;
8
import javax.persistence.Enumerated;
9
import javax.persistence.Enumerated;
-
 
10
import javax.persistence.GeneratedValue;
-
 
11
import javax.persistence.GenerationType;
9
import javax.persistence.Id;
12
import javax.persistence.Id;
10
import javax.persistence.Table;
13
import javax.persistence.Table;
11
 
14
 
12
import com.spice.profitmandi.dao.entity.fofo.ActivityType;
15
import com.spice.profitmandi.dao.entity.fofo.ActivityType;
13
 
16
 
Line 23... Line 26...
23
	public static final int L3EscalationDays = 10;
26
	public static final int L3EscalationDays = 10;
24
	public static final int FinalEscalationDays = 15;
27
	public static final int FinalEscalationDays = 15;
25
	
28
	
26
	@Id
29
	@Id
27
	@Column
30
	@Column
-
 
31
	@GeneratedValue(strategy=GenerationType.IDENTITY)
28
	private int id;
32
	private int id;
29
	
33
	
30
	@Column(name="fofo_id")
34
	@Column(name="fofo_id")
31
	private int fofoId;
35
	private int fofoId;
32
	
36
	
Line 272... Line 276...
272
 
276
 
273
	public static int getFinalescalationdays() {
277
	public static int getFinalescalationdays() {
274
		return FinalEscalationDays;
278
		return FinalEscalationDays;
275
	}
279
	}
276
 
280
 
-
 
281
	public String getFormattedCreateTimestamp(){
-
 
282
		if(createTimestamp == null){
-
 
283
			return null;
277
 
284
		}
-
 
285
		DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MM-yyyy HH:mm");
-
 
286
		return createTimestamp.format(formatter);
-
 
287
    }
-
 
288
	public String getFormattedCloseTimestamp(){
-
 
289
		if(closeTimestamp == null){
-
 
290
			return null;
-
 
291
		}
-
 
292
		DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MM-yyyy HH:mm");
-
 
293
		return closeTimestamp.format(formatter);
-
 
294
    }
278
	@Override
295
	@Override
279
	public String toString() {
296
	public String toString() {
280
		return "Ticket [id=" + id + ", fofoId=" + fofoId + ", assigneeId=" + assigneeId + ", subCategoryId="
297
		return "Ticket [id=" + id + ", fofoId=" + fofoId + ", assigneeId=" + assigneeId + ", subCategoryId="
281
				+ subCategoryId + ", createTimestamp=" + createTimestamp + ", updateTimestamp=" + updateTimestamp
298
				+ subCategoryId + ", createTimestamp=" + createTimestamp + ", updateTimestamp=" + updateTimestamp
282
				+ ", closeTimestamp=" + closeTimestamp + ", happyCode=" + happyCode + ", lastActivity=" + lastActivity
299
				+ ", closeTimestamp=" + closeTimestamp + ", happyCode=" + happyCode + ", lastActivity=" + lastActivity