Commit 0fd7d138 by Tuomas Riihimäki

Add registeration event registration time to csv export

1 parent 7b9dc673
...@@ -96,7 +96,8 @@ public class UserCartView extends GenericCDIView { ...@@ -96,7 +96,8 @@ public class UserCartView extends GenericCDIView {
sb.append("Zip").append(CSV_SEPARATOR); sb.append("Zip").append(CSV_SEPARATOR);
sb.append("City").append(CSV_SEPARATOR); sb.append("City").append(CSV_SEPARATOR);
sb.append("Places").append(CSV_SEPARATOR); sb.append("Places").append(CSV_SEPARATOR);
sb.append("Created").append(CSV_SEPARATOR); sb.append("User created").append(CSV_SEPARATOR);
sb.append("Added to event").append(CSV_SEPARATOR);
LanEvent event = null; LanEvent event = null;
if (usercart != null && !usercart.isEmpty()) { if (usercart != null && !usercart.isEmpty()) {
...@@ -127,10 +128,15 @@ public class UserCartView extends GenericCDIView { ...@@ -127,10 +128,15 @@ public class UserCartView extends GenericCDIView {
} }
sb.append(CSV_SEPARATOR); sb.append(CSV_SEPARATOR);
if (uc.getCreated() != null) { if (uc.getCreated() != null) {
sb.append(createtimeFormat.format(uc.getCreated().getTime())); sb.append(createtimeFormat.format(uc.getCreated()));
} }
sb.append(CSV_SEPARATOR);
if (uc.getEventuserCreated() != null) {
sb.append(createtimeFormat.format(uc.getEventuserCreated()));
}
sb.append(CSV_SEPARATOR); sb.append(CSV_SEPARATOR);
sb.append("\n"); sb.append("\n");
} }
DefaultStreamedContent ret = new DefaultStreamedContent(new ByteArrayInputStream(sb.toString().getBytes(UTF8))); DefaultStreamedContent ret = new DefaultStreamedContent(new ByteArrayInputStream(sb.toString().getBytes(UTF8)));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!