Commit pr pr_p1 reports
This commit is contained in:
parent
f36e7d7dc6
commit
f53ead952a
|
@ -9,16 +9,24 @@ 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);
|
||||
instances.add(new Instance("Total_Items_Requests", ft_count));
|
||||
instances.add(new Instance("Total_Items_Investigations", abstr));
|
||||
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")
|
||||
|
@ -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