deason 6 years ago
parent
commit
d0302d58a2

+ 23 - 0
examcloud-core-print-service/src/main/java/cn/com/qmth/examcloud/core/print/service/bean/printingproject/ProjectStatisticInfo.java

@@ -78,6 +78,29 @@ public class ProjectStatisticInfo implements Serializable {
      */
     private Integer backupA4;
 
+    /**
+     * 常规总数(A3)
+     */
+    public Integer getSummary() {
+        Double ceil = Math.ceil(getNormalA4() / 2.0);
+        return getNormalA3() + ceil.intValue();
+    }
+
+    /**
+     * 备份总数(A3)
+     */
+    public Integer getBackupSummary() {
+        Double ceil = Math.ceil(getBackupA4() / 2.0);
+        return getBackupA3() + ceil.intValue();
+    }
+
+    /**
+     * 合计总数(A3)
+     */
+    public Integer getTotalSummary() {
+        return getSummary() + getBackupSummary();
+    }
+
     /**
      * 合计 印刷数量A3
      */