Browse Source

公司指标,理论发电量

malijun 5 months ago
parent
commit
59201e4bc8

+ 2 - 2
ruoyi-admin/src/test/java/com/ruoyi/JavaFunctionJobHandler.java

@@ -1830,9 +1830,9 @@ public class JavaFunctionJobHandler extends IJobHandler {
 
     }
 
-    public void gongsizhibiao() {
+    public void gongsizhibiao(Date date) {
         //date当天零点
-        DateTime time = DateUtil.beginOfDay(new Date());
+        DateTime time = DateUtil.beginOfDay(date);
         //date昨天零点
         DateTime time0 = DateUtil.offsetDay(time, -1);
         DateTime beginOfMonth = DateUtil.beginOfMonth(time0);

+ 3 - 1
ruoyi-admin/src/test/java/com/ruoyi/Test.java

@@ -133,7 +133,9 @@ public class Test {
 
     @org.junit.Test
     public void test2() {
-        javaFunctionJobHandler.gongsizhibiao();
+        Date date = DateUtil.date().toJdkDate();
+//        javaFunctionJobHandler.gongsizhibiao(date);
+        javaFunctionJobHandler.writeReportPoolLLFDL(date);
 
     }