admin
2024-09-27 4e91ae3c1ff41d0bf9f65d444c90c2583e69cdb7
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.7uA");
        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)