瀏覽代碼

英文导出Excel

lyhzzz 2 年之前
父節點
當前提交
1caf33a477
共有 1 個文件被更改,包括 13 次插入0 次删除
  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();
+    }
+
 }