Browse Source

英文导出Excel

lyhzzz 2 years ago
parent
commit
1caf33a477
1 changed files with 13 additions and 0 deletions
  1. 13 0
      src/main/java/com/fdkankan/agent/response/LogListVoEn.java

+ 13 - 0
src/main/java/com/fdkankan/agent/response/LogListVoEn.java

@@ -36,6 +36,12 @@ public class LogListVoEn {
     @ExcelProperty("Authorized Quantity")
     private Integer count;
 
+    @ExcelIgnore
+    private Integer totalTime;
+
+    @ExcelProperty("Total duration of the authorization (year/month)")
+    private String totalTimeStr;
+
 
     public String getTypeStr() {
         if(type == null){
@@ -62,4 +68,11 @@ public class LogListVoEn {
         return giveTypeStr;
     }
 
+    public String getTotalTimeStr() {
+        if(type == 2){
+            return "-";
+        }
+        return totalTime.toString();
+    }
+
 }