From 4e91ae3c1ff41d0bf9f65d444c90c2583e69cdb7 Mon Sep 17 00:00:00 2001
From: admin <15939171744@163.com>
Date: 星期五, 27 九月 2024 17:16:10 +0800
Subject: [PATCH] 下线打印报告优化

---
 jcdm-main/src/main/java/com/jcdm/main/da/paramCollection/controller/DaParamCollectionController.java |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 48 insertions(+), 0 deletions(-)

diff --git a/jcdm-main/src/main/java/com/jcdm/main/da/paramCollection/controller/DaParamCollectionController.java b/jcdm-main/src/main/java/com/jcdm/main/da/paramCollection/controller/DaParamCollectionController.java
index dcd6c74..a3640e0 100644
--- a/jcdm-main/src/main/java/com/jcdm/main/da/paramCollection/controller/DaParamCollectionController.java
+++ b/jcdm-main/src/main/java/com/jcdm/main/da/paramCollection/controller/DaParamCollectionController.java
@@ -7,6 +7,7 @@
 import com.jcdm.common.enums.BusinessType;
 import com.jcdm.common.utils.DateUtils;
 import com.jcdm.common.utils.poi.ExcelUtil;
+import com.jcdm.main.bs.formulaChild.domain.PrintOfflineReportInfo;
 import com.jcdm.main.da.paramCollection.domain.DaParamCollection;
 import com.jcdm.main.da.paramCollection.service.IDaParamCollectionService;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -14,7 +15,10 @@
 import org.springframework.web.bind.annotation.*;
 
 import javax.servlet.http.HttpServletResponse;
+import java.time.LocalDate;
+import java.time.format.DateTimeFormatter;
 import java.util.List;
+import java.util.Map;
 
 /**
  * 璁惧浜у搧杩囩▼鍙傛暟閲囬泦Controller
@@ -32,6 +36,50 @@
     /**
      * 鏌ヨ璁惧浜у搧杩囩▼鍙傛暟閲囬泦鍒楄〃
      */
+    @GetMapping("/getPrintOfflineReportInfo")
+    public AjaxResult getPrintOfflineReportInfo(DaParamCollection daParamCollection)
+    {
+        PrintOfflineReportInfo info = new PrintOfflineReportInfo();
+        info.setParam18("锛�500");
+        info.setParam19("0.3%锛�0%锛�0.5%");
+        info.setParam20("锛�600");
+        info.setParam21("锛�700");
+        info.setParam22("0.22");
+        info.setParam23("362");
+        info.setParam24("8.18");
+        info.setParam25("0.1");
+        info.setParam26("21.53,42.33,42.19");
+        info.setParam27("49.20,49.34,49.15");
+        info.setParam28("0.061%锛�0.163%锛�0.223%");
+        info.setParam29("35.1,35.0,35.1");
+        info.setParam30("鈭�");
+        info.setParam31("0.0041");
+        info.setParam32("3.06");
+        info.setParam33("o.48");
+        info.setParam34("4.7锝旳");
+        info.setParam35("562.1");
+        info.setParam36("-137.1");
+        info.setParam37("鈭�");
+        info.setInspectionDate(getInspectionDate());
+        return AjaxResult.success(info);
+    }
+
+    public static String getInspectionDate(){
+        // 鑾峰彇褰撳墠鏃ユ湡
+        LocalDate today = LocalDate.now();
+        // 瀹氫箟鏃ユ湡鏍煎紡锛堝勾.鏈�.鏃ワ級
+        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy.M.d");
+        // 鏍煎紡鍖栧綋鍓嶆棩鏈�
+        return today.format(formatter);
+    }
+
+    public static void main(String[] args) {
+        System.out.println(getInspectionDate());
+    }
+
+    /**
+     * 鏌ヨ璁惧浜у搧杩囩▼鍙傛暟閲囬泦鍒楄〃
+     */
     @PreAuthorize("@ss.hasPermi('main:paramCollection:list')")
     @GetMapping("/list")
     public TableDataInfo list(DaParamCollection daParamCollection)

--
Gitblit v1.9.3