Browse Source

月报功能调整

user5 1 năm trước cách đây
mục cha
commit
9098986d0a

+ 22 - 0
src/main/java/com/jeeplus/modules/statement/service/StatementCompanyComprehensiveService.java

@@ -2880,6 +2880,28 @@ public class StatementCompanyComprehensiveService extends CrudService<StatementC
     }
 
     /**
+     * 部门级信息处理
+     * @param bigDateType 状态1(0:年;1:季度;2:月份)
+     * @param smallDateType 状态2(针对状态1进行精确所在指定季度或者月份)
+     */
+    public void disposeRegainProjectDataStatementOffice(Integer year,Integer bigDateType,Integer smallDateType){
+        Calendar cal = Calendar.getInstance();
+        //获取当前年份
+        if(null == year){
+            year = cal.get(Calendar.YEAR);
+        }
+
+        Map<String, String> dateMap = getDateNew(bigDateType, smallDateType,year);
+        //开始时间
+        String beginDate = dateMap.get("beginDate");
+        //结束时间
+        String endDate = dateMap.get("endDate");
+        String statementDate = dateMap.get("statementDate");
+        //部门级项目处理
+        disposeStatementOfficeProject(year,beginDate,endDate,statementDate,bigDateType, smallDateType);
+    }
+
+    /**
      * 部门级项目月报/季报/年报汇总方法
      * @param beginDate 开始时间
      * @param endDate 结束时间