75 lines
2.5 KiB
Java
75 lines
2.5 KiB
Java
package com.example.services.store;
|
|
|
|
import java.sql.Date;
|
|
import java.text.SimpleDateFormat;
|
|
|
|
public class BackOfficeTransaction {
|
|
private int backOfficeTransactions;
|
|
private Date minBackOfficeTransactionDate;
|
|
private Date maxBackOfficeTransactionDate;
|
|
private Date backOfficeBusinessDate;
|
|
|
|
|
|
// Default constructor
|
|
public BackOfficeTransaction() {
|
|
// Default constructor required for JSON deserialization
|
|
}
|
|
|
|
// Constructor with parameters
|
|
public BackOfficeTransaction(int backOfficeTransactions, Date minbackOfficeTransactionDate, Date maxbackOfficeTransactionDate, Date backOfficeBusinessDate) {
|
|
this.backOfficeTransactions = backOfficeTransactions;
|
|
this.minBackOfficeTransactionDate = minbackOfficeTransactionDate;
|
|
this.maxBackOfficeTransactionDate = maxbackOfficeTransactionDate;
|
|
this.backOfficeBusinessDate = backOfficeBusinessDate;
|
|
}
|
|
|
|
// Getters et setters
|
|
public int getBackOfficeTransactions() {
|
|
return backOfficeTransactions;
|
|
}
|
|
|
|
public void setBackOfficeTransactions(int backOfficeTransactions) {
|
|
this.backOfficeTransactions = backOfficeTransactions;
|
|
}
|
|
|
|
public String getMinBackOfficeTransactionDate() {
|
|
if (minBackOfficeTransactionDate != null) {
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
|
|
return dateFormat.format(minBackOfficeTransactionDate);
|
|
} else {
|
|
return "";
|
|
}
|
|
}
|
|
|
|
public void setMinBackOfficeTransactionDate(Date minBackOfficeTransactionDate) {
|
|
this.minBackOfficeTransactionDate = minBackOfficeTransactionDate;
|
|
}
|
|
|
|
public String getMaxBackOfficeTransactionDate() {
|
|
if (maxBackOfficeTransactionDate != null) {
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
|
|
return dateFormat.format(maxBackOfficeTransactionDate);
|
|
} else {
|
|
return "";
|
|
}
|
|
}
|
|
|
|
public void setMaxBackOfficeTransactionDate(Date maxBackOfficeTransactionDate) {
|
|
this.maxBackOfficeTransactionDate = maxBackOfficeTransactionDate;
|
|
}
|
|
|
|
public String getBackOfficeBusinessDate() {
|
|
if (backOfficeBusinessDate != null) {
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
|
|
return dateFormat.format(backOfficeBusinessDate);
|
|
} else {
|
|
return "";
|
|
}
|
|
}
|
|
|
|
|
|
public void setBackOfficeBusinessDate(Date backOfficeBusinessDate) {
|
|
this.backOfficeBusinessDate = backOfficeBusinessDate;
|
|
}
|
|
}
|