Commit pr pr_p1 reports
This commit is contained in:
parent
f36e7d7dc6
commit
f53ead952a
|
@ -9,17 +9,25 @@ import java.util.List;
|
|||
* Created by tsampikos on 31/10/2016.
|
||||
*/
|
||||
public class ItemPerformance {
|
||||
|
||||
private Period period;
|
||||
private List<Instance> instances = new ArrayList<>();
|
||||
|
||||
public ItemPerformance() {
|
||||
}
|
||||
|
||||
public ItemPerformance(String start, String end, String ft_count, String abstr) {
|
||||
public ItemPerformance(String start, String end, String ft_count,
|
||||
String abstr) {
|
||||
period = new Period(start, end);
|
||||
if (ft_count != null && abstr != null) {
|
||||
instances.add(new Instance("Total_Items_Requests", ft_count));
|
||||
instances.add(new Instance("Total_Items_Investigations", abstr));
|
||||
}
|
||||
else if(ft_count != null && abstr == null )
|
||||
instances.add(new Instance("Total_Items_Requests", ft_count));
|
||||
else if(ft_count == null && abstr != null )
|
||||
instances.add(new Instance("Total_Items_Investigations",abstr));
|
||||
}
|
||||
|
||||
@JsonProperty("Period")
|
||||
public Period getPeriod() {
|
||||
|
@ -30,7 +38,6 @@ public class ItemPerformance {
|
|||
// public String getCategory() {
|
||||
// return "Requests";
|
||||
// }
|
||||
|
||||
@JsonProperty("Instance")
|
||||
public List<Instance> getInstance() {
|
||||
return instances;
|
||||
|
|
Loading…
Reference in New Issue