fuyanting пре 1 година
родитељ
комит
b4dba24c4f

+ 301 - 0
kgraph-graph/src/main/java/com/kgraph/graph/aircraftparameters/controller/AircraftParameterManagementController.java

@@ -0,0 +1,301 @@
+package com.kgraph.graph.aircraftparameters.controller;
+
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.time.Duration;
+import java.time.LocalDateTime;
+import java.time.ZoneId;
+import java.time.format.DateTimeFormatter;
+import java.util.Date;
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import com.kgraph.common.annotation.Log;;
+import com.kgraph.common.core.controller.BaseController;
+import com.kgraph.common.core.domain.AjaxResult;
+import com.kgraph.common.enums.BusinessType;
+import com.kgraph.graph.aircraftparameters.domain.AircraftParameterManagement;
+import com.kgraph.graph.aircraftparameters.service.IAircraftParameterManagementService;
+import com.kgraph.common.utils.poi.ExcelUtil;
+import com.kgraph.common.core.page.TableDataInfo;
+import java.io.IOException;
+
+import java.io.BufferedReader;
+import java.io.FileReader;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Arrays;
+
+/**
+ * 飞参数据管理Controller
+ * 
+ * @author kgraph
+ * @date 2024-01-15
+ */
+@RestController
+@RequestMapping("/aircraft/management")
+public class AircraftParameterManagementController extends BaseController
+{
+    @Autowired
+    private IAircraftParameterManagementService aircraftParameterManagementService;
+
+    /**
+     * 查询飞参数据管理列表
+     */
+    @PreAuthorize("@ss.hasPermi('aircraft:management:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(AircraftParameterManagement aircraftParameterManagement)
+    {
+        startPage();
+        List<AircraftParameterManagement> list = aircraftParameterManagementService.selectAircraftParameterManagementList(aircraftParameterManagement);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出飞参数据管理列表
+     */
+    @PreAuthorize("@ss.hasPermi('aircraft:management:export')")
+    @Log(title = "飞参数据管理", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, AircraftParameterManagement aircraftParameterManagement)
+    {
+        List<AircraftParameterManagement> list = aircraftParameterManagementService.selectAircraftParameterManagementList(aircraftParameterManagement);
+        ExcelUtil<AircraftParameterManagement> util = new ExcelUtil<AircraftParameterManagement>(AircraftParameterManagement.class);
+        util.exportExcel(response, list, "飞参数据管理数据");
+    }
+
+    /**
+     * 获取飞参数据管理详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('aircraft:management:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(aircraftParameterManagementService.selectAircraftParameterManagementById(id));
+    }
+
+    /**
+     * 新增飞参数据管理
+     */
+    @PreAuthorize("@ss.hasPermi('aircraft:management:add')")
+    @Log(title = "飞参数据管理", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody AircraftParameterManagement aircraftParameterManagement)
+    {
+        return toAjax(aircraftParameterManagementService.insertAircraftParameterManagement(aircraftParameterManagement));
+    }
+
+    /**
+     * 修改飞参数据管理
+     */
+    @PreAuthorize("@ss.hasPermi('aircraft:management:edit')")
+    @Log(title = "飞参数据管理", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody AircraftParameterManagement aircraftParameterManagement)
+    {
+        return toAjax(aircraftParameterManagementService.updateAircraftParameterManagement(aircraftParameterManagement));
+    }
+
+    /**
+     * 删除飞参数据管理
+     */
+    @PreAuthorize("@ss.hasPermi('aircraft:management:remove')")
+    @Log(title = "飞参数据管理", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(aircraftParameterManagementService.deleteAircraftParameterManagementByIds(ids));
+    }
+
+    @PutMapping("/runairtopre")
+    public int runairtopre(@RequestBody AircraftParameterManagement aircraftParameterManagement)
+    {
+        aircraftParameterManagementService.updateAircraftParameterManagement(aircraftParameterManagement);
+        try {
+            // 指定Python的exe文件路径和参数
+            String pythonExePath = "D:\\qujiang\\py\\dist\\main.exe"; // 替换为实际的Python exe文件路径
+            String[] command = {pythonExePath};
+
+            // 创建ProcessBuilder对象并设置命令行指令
+            ProcessBuilder pb = new ProcessBuilder(command);
+
+            // 启动进程并等待其执行完成
+            Process process = pb.start();
+            int exitCode = process.waitFor();
+
+            // 返回相应的结果
+            if (exitCode == 0) {
+                LocalDateTime now = LocalDateTime.now();
+                // 定义时间格式
+                DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
+                // 格式化时间
+                String endtime = now.format(formatter);
+                // 输出格式化后的时间
+                Date starttime = aircraftParameterManagement.getPretreatmentStarttime();
+
+                LocalDateTime startDateTime = LocalDateTime.ofInstant(starttime.toInstant(), ZoneId.systemDefault());
+                Duration duration = Duration.between(startDateTime, now);
+                long seconds = duration.getSeconds();
+                String secondsStr = String.valueOf(seconds);
+                // 将endtime转换为Date类型
+                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+                Date endDate = sdf.parse(endtime);
+                aircraftParameterManagement.setPretreatmentEndtime(endDate);
+                aircraftParameterManagement.setPretreatmentTime(secondsStr);
+                aircraftParameterManagement.setPretreatmentState("2");
+                aircraftParameterManagementService.updateAircraftParameterManagement(aircraftParameterManagement);
+                return 1; // 运行成功
+            } else {
+                aircraftParameterManagement.setPretreatmentState("3");
+                aircraftParameterManagementService.updateAircraftParameterManagement(aircraftParameterManagement);
+                return 0; // 运行失败
+            }
+        } catch (IOException | InterruptedException | ParseException e) {
+            aircraftParameterManagement.setPretreatmentState("3");
+            aircraftParameterManagementService.updateAircraftParameterManagement(aircraftParameterManagement);
+            e.printStackTrace();
+            return 0; // 运行失败
+        }
+    }
+
+
+    @PutMapping("/runpretohp")
+    public int runpretohp(@RequestBody AircraftParameterManagement aircraftParameterManagement)
+    {
+        aircraftParameterManagementService.updateAircraftParameterManagement(aircraftParameterManagement);
+        try {
+            // 指定Python的exe文件路径和参数
+            String pythonExePath = "D:\\qujiang\\py\\dist\\main.exe"; // 替换为实际的Python exe文件路径
+            String[] command = {pythonExePath};
+
+            // 创建ProcessBuilder对象并设置命令行指令
+            ProcessBuilder pb = new ProcessBuilder(command);
+
+            // 启动进程并等待其执行完成
+            Process process = pb.start();
+            int exitCode = process.waitFor();
+
+            // 返回相应的结果
+            if (exitCode == 0) {
+                LocalDateTime now = LocalDateTime.now();
+                // 定义时间格式
+                DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
+                // 格式化时间
+                String endtime = now.format(formatter);
+                // 输出格式化后的时间
+                Date starttime = aircraftParameterManagement.getHealthfactorsStarttime();
+
+                LocalDateTime startDateTime = LocalDateTime.ofInstant(starttime.toInstant(), ZoneId.systemDefault());
+                Duration duration = Duration.between(startDateTime, now);
+                long seconds = duration.getSeconds();
+                String secondsStr = String.valueOf(seconds);
+                // 将endtime转换为Date类型
+                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+                Date endDate = sdf.parse(endtime);
+                aircraftParameterManagement.setHealthfactorsEndtime(endDate);
+                aircraftParameterManagement.setHealthfactorsTime(secondsStr);
+                aircraftParameterManagement.setHealthfactorsState("2");
+                aircraftParameterManagementService.updateAircraftParameterManagement(aircraftParameterManagement);
+                return 1; // 运行成功
+            } else {
+                aircraftParameterManagement.setHealthfactorsState("3");
+                aircraftParameterManagementService.updateAircraftParameterManagement(aircraftParameterManagement);
+                return 0; // 运行失败
+            }
+        } catch (IOException | InterruptedException | ParseException e) {
+            aircraftParameterManagement.setHealthfactorsState("3");
+            aircraftParameterManagementService.updateAircraftParameterManagement(aircraftParameterManagement);
+            e.printStackTrace();
+            return 0; // 运行失败
+        }
+    }
+
+    @PutMapping("/runhptosh")
+    public int runhptosh(@RequestBody AircraftParameterManagement aircraftParameterManagement)
+    {
+        aircraftParameterManagementService.updateAircraftParameterManagement(aircraftParameterManagement);
+        try {
+            // 指定Python的exe文件路径和参数
+            String pythonExePath = "D:\\qujiang\\py\\dist\\main.exe"; // 替换为实际的Python exe文件路径
+            String[] command = {pythonExePath};
+
+            // 创建ProcessBuilder对象并设置命令行指令
+            ProcessBuilder pb = new ProcessBuilder(command);
+
+            // 启动进程并等待其执行完成
+            Process process = pb.start();
+            int exitCode = process.waitFor();
+
+            // 返回相应的结果
+            if (exitCode == 0) {
+                LocalDateTime now = LocalDateTime.now();
+                // 定义时间格式
+                DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
+                // 格式化时间
+                String endtime = now.format(formatter);
+                // 输出格式化后的时间
+                Date starttime = aircraftParameterManagement.getSystemhealthStarttime();
+
+                LocalDateTime startDateTime = LocalDateTime.ofInstant(starttime.toInstant(), ZoneId.systemDefault());
+                Duration duration = Duration.between(startDateTime, now);
+                long seconds = duration.getSeconds();
+                String secondsStr = String.valueOf(seconds);
+                // 将endtime转换为Date类型
+                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+                Date endDate = sdf.parse(endtime);
+                aircraftParameterManagement.setSystemhealthEndtime(endDate);
+                aircraftParameterManagement.setSystemhealthTime(secondsStr);
+                aircraftParameterManagement.setSystemhealthState("2");
+                aircraftParameterManagementService.updateAircraftParameterManagement(aircraftParameterManagement);
+                return 1; // 运行成功
+            } else {
+                aircraftParameterManagement.setSystemhealthState("3");
+                aircraftParameterManagementService.updateAircraftParameterManagement(aircraftParameterManagement);
+                return 0; // 运行失败
+            }
+        } catch (IOException | InterruptedException | ParseException e) {
+            aircraftParameterManagement.setSystemhealthState("3");
+            aircraftParameterManagementService.updateAircraftParameterManagement(aircraftParameterManagement);
+            e.printStackTrace();
+            return 0; // 运行失败
+        }
+    }
+
+    @GetMapping(value = "/getfilecontent")
+    public int getfilecontent(@RequestParam("filepath") String filepath)
+    {
+        System.out.println(filepath);
+        try
+        {
+            List< List<String> > data = new ArrayList<>();//list of lists to store data
+//            String file = "C:\\kgraph\\uploadPath\\upload\\2024\\01\\18\\number_20240118161245A001.csv";//file path
+            FileReader fr = new FileReader(filepath);
+            BufferedReader br = new BufferedReader(fr);
+
+            //Reading until we run out of lines
+            String line = br.readLine();
+            while(line != null)
+            {
+                List<String> lineData = Arrays.asList(line.split(","));//splitting lines
+                data.add(lineData);
+                line = br.readLine();
+            }
+
+            //printing the fetched data
+            for(List<String> list : data)
+            {
+                for(String str : list)
+                    System.out.print(str + " ");
+                System.out.println();
+            }
+            br.close();
+        }
+        catch(Exception e)
+        {
+            System.out.print(e);
+        }
+        return 1;
+    }
+}

+ 392 - 0
kgraph-graph/src/main/java/com/kgraph/graph/aircraftparameters/domain/AircraftParameterManagement.java

@@ -0,0 +1,392 @@
+package com.kgraph.graph.aircraftparameters.domain;
+
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.kgraph.common.annotation.Excel;
+import com.kgraph.common.core.domain.BaseEntity;;
+
+/**
+ * 飞参数据管理对象 aircraft_parameter_management
+ * 
+ * @author kgraph
+ * @date 2024-01-15
+ */
+public class AircraftParameterManagement extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 序号 */
+    private Long id;
+
+    /** 型号 */
+    @Excel(name = "型号")
+    private String typeId;
+
+    /** 机号 */
+    @Excel(name = "机号")
+    private String aircraftId;
+
+    /** 架次 */
+    @Excel(name = "架次")
+    private String sortie;
+
+    /** 飞行日期 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "飞行日期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date flyDate;
+
+    /** 飞参数据 */
+    private String airparaPath;
+
+    /** 飞参数据状态 */
+    private String airparaState;
+
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @Excel(name = "飞参数据上传开始时间", width = 30, dateFormat = "yyyy-MM-dd")
+    /** 飞参数据上传开始时间 */
+    private Date airparaStarttime;
+
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @Excel(name = "飞参数据上传完成时间", width = 30, dateFormat = "yyyy-MM-dd")
+    /** 飞参数据上传结束时间 */
+    private Date airparaEndtime;
+
+    /** 飞参数据上传耗时 */
+    private String airparaTime;
+
+    /** 预处理数据 */
+    private String pretreatmentPath;
+
+    /** 预处理数据状态 */
+    private String pretreatmentState;
+
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @Excel(name = "预处理数据处理开始时间", width = 30, dateFormat = "yyyy-MM-dd")
+    /** 预处理数据处理开始时间 */
+    private Date pretreatmentStarttime;
+
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @Excel(name = "预处理数据处理结束时间", width = 30, dateFormat = "yyyy-MM-dd")
+    /** 预处理数据处理结束时间 */
+    private Date pretreatmentEndtime;
+
+    /** 预处理数据处理耗时 */
+    private String pretreatmentTime;
+
+    /** 健康因子数据 */
+    private String healthfactorsPath;
+
+    /** 健康因子数据状态 */
+    private String healthfactorsState;
+
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @Excel(name = "健康因子数据处理开始时间", width = 30, dateFormat = "yyyy-MM-dd")
+    /** 健康因子数据处理开始时间 */
+    private Date healthfactorsStarttime;
+
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @Excel(name = "健康因子数据处理结束时间", width = 30, dateFormat = "yyyy-MM-dd")
+    /** 健康因子数据处理结束时间 */
+    private Date healthfactorsEndtime;
+
+    /** 健康因子数据处理耗时 */
+    private String healthfactorsTime;
+
+    /** 系统级健康数据 */
+    private String systemhealthPath;
+
+    /** 系统级健康数据状态 */
+    private String systemhealthState;
+
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @Excel(name = "系统级健康数据处理开始时间", width = 30, dateFormat = "yyyy-MM-dd")
+    /** 系统级健康数据处理开始时间 */
+    private Date systemhealthStarttime;
+
+
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @Excel(name = "系统级健康数据处理结束时间", width = 30, dateFormat = "yyyy-MM-dd")
+    /** 系统级健康数据处理结束时间 */
+    private Date systemhealthEndtime;
+
+    /** 系统级健康数据处理耗时 */
+    private String systemhealthTime;
+
+
+
+    /** 数据处理状态 */
+    private String state;
+
+    public String getState() {
+        return state;
+    }
+
+    public void setState(String state) {
+        this.state = state;
+    }
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setTypeId(String typeId) 
+    {
+        this.typeId = typeId;
+    }
+
+    public String getTypeId() 
+    {
+        return typeId;
+    }
+    public void setAircraftId(String aircraftId) 
+    {
+        this.aircraftId = aircraftId;
+    }
+
+    public String getAircraftId() 
+    {
+        return aircraftId;
+    }
+    public void setSortie(String sortie) 
+    {
+        this.sortie = sortie;
+    }
+
+    public String getSortie() 
+    {
+        return sortie;
+    }
+    public void setFlyDate(Date flyDate) 
+    {
+        this.flyDate = flyDate;
+    }
+
+    public Date getFlyDate() 
+    {
+        return flyDate;
+    }
+    public void setAirparaPath(String airparaPath) 
+    {
+        this.airparaPath = airparaPath;
+    }
+
+    public String getAirparaPath() 
+    {
+        return airparaPath;
+    }
+    public void setAirparaState(String airparaState) 
+    {
+        this.airparaState = airparaState;
+    }
+
+    public String getAirparaState() 
+    {
+        return airparaState;
+    }
+    public void setAirparaStarttime(Date airparaStarttime) 
+    {
+        this.airparaStarttime = airparaStarttime;
+    }
+
+    public Date getAirparaStarttime() 
+    {
+        return airparaStarttime;
+    }
+    public void setAirparaEndtime(Date airparaEndtime) 
+    {
+        this.airparaEndtime = airparaEndtime;
+    }
+
+    public Date getAirparaEndtime() 
+    {
+        return airparaEndtime;
+    }
+    public void setAirparaTime(String airparaTime) 
+    {
+        this.airparaTime = airparaTime;
+    }
+
+    public String getAirparaTime() 
+    {
+        return airparaTime;
+    }
+    public void setPretreatmentPath(String pretreatmentPath) 
+    {
+        this.pretreatmentPath = pretreatmentPath;
+    }
+
+    public String getPretreatmentPath() 
+    {
+        return pretreatmentPath;
+    }
+    public void setPretreatmentState(String pretreatmentState) 
+    {
+        this.pretreatmentState = pretreatmentState;
+    }
+
+    public String getPretreatmentState() 
+    {
+        return pretreatmentState;
+    }
+    public void setPretreatmentStarttime(Date pretreatmentStarttime) 
+    {
+        this.pretreatmentStarttime = pretreatmentStarttime;
+    }
+
+    public Date getPretreatmentStarttime() 
+    {
+        return pretreatmentStarttime;
+    }
+    public void setPretreatmentEndtime(Date pretreatmentEndtime) 
+    {
+        this.pretreatmentEndtime = pretreatmentEndtime;
+    }
+
+    public Date getPretreatmentEndtime() 
+    {
+        return pretreatmentEndtime;
+    }
+    public void setPretreatmentTime(String pretreatmentTime) 
+    {
+        this.pretreatmentTime = pretreatmentTime;
+    }
+
+    public String getPretreatmentTime() 
+    {
+        return pretreatmentTime;
+    }
+    public void setHealthfactorsPath(String healthfactorsPath) 
+    {
+        this.healthfactorsPath = healthfactorsPath;
+    }
+
+    public String getHealthfactorsPath() 
+    {
+        return healthfactorsPath;
+    }
+    public void setHealthfactorsState(String healthfactorsState) 
+    {
+        this.healthfactorsState = healthfactorsState;
+    }
+
+    public String getHealthfactorsState() 
+    {
+        return healthfactorsState;
+    }
+    public void setHealthfactorsStarttime(Date healthfactorsStarttime) 
+    {
+        this.healthfactorsStarttime = healthfactorsStarttime;
+    }
+
+    public Date getHealthfactorsStarttime() 
+    {
+        return healthfactorsStarttime;
+    }
+    public void setHealthfactorsEndtime(Date healthfactorsEndtime) 
+    {
+        this.healthfactorsEndtime = healthfactorsEndtime;
+    }
+
+    public Date getHealthfactorsEndtime() 
+    {
+        return healthfactorsEndtime;
+    }
+    public void setHealthfactorsTime(String healthfactorsTime) 
+    {
+        this.healthfactorsTime = healthfactorsTime;
+    }
+
+    public String getHealthfactorsTime() 
+    {
+        return healthfactorsTime;
+    }
+    public void setSystemhealthPath(String systemhealthPath) 
+    {
+        this.systemhealthPath = systemhealthPath;
+    }
+
+    public String getSystemhealthPath() 
+    {
+        return systemhealthPath;
+    }
+    public void setSystemhealthState(String systemhealthState) 
+    {
+        this.systemhealthState = systemhealthState;
+    }
+
+    public String getSystemhealthState() 
+    {
+        return systemhealthState;
+    }
+    public void setSystemhealthStarttime(Date systemhealthStarttime) 
+    {
+        this.systemhealthStarttime = systemhealthStarttime;
+    }
+
+    public Date getSystemhealthStarttime() 
+    {
+        return systemhealthStarttime;
+    }
+    public void setSystemhealthEndtime(Date systemhealthEndtime) 
+    {
+        this.systemhealthEndtime = systemhealthEndtime;
+    }
+
+    public Date getSystemhealthEndtime() 
+    {
+        return systemhealthEndtime;
+    }
+    public void setSystemhealthTime(String systemhealthTime) 
+    {
+        this.systemhealthTime = systemhealthTime;
+    }
+
+    public String getSystemhealthTime() 
+    {
+        return systemhealthTime;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("typeId", getTypeId())
+            .append("aircraftId", getAircraftId())
+            .append("sortie", getSortie())
+            .append("flyDate", getFlyDate())
+            .append("airparaPath", getAirparaPath())
+            .append("airparaState", getAirparaState())
+            .append("airparaStarttime", getAirparaStarttime())
+            .append("airparaEndtime", getAirparaEndtime())
+            .append("airparaTime", getAirparaTime())
+            .append("pretreatmentPath", getPretreatmentPath())
+            .append("pretreatmentState", getPretreatmentState())
+            .append("pretreatmentStarttime", getPretreatmentStarttime())
+            .append("pretreatmentEndtime", getPretreatmentEndtime())
+            .append("pretreatmentTime", getPretreatmentTime())
+            .append("healthfactorsPath", getHealthfactorsPath())
+            .append("healthfactorsState", getHealthfactorsState())
+            .append("healthfactorsStarttime", getHealthfactorsStarttime())
+            .append("healthfactorsEndtime", getHealthfactorsEndtime())
+            .append("healthfactorsTime", getHealthfactorsTime())
+            .append("systemhealthPath", getSystemhealthPath())
+            .append("systemhealthState", getSystemhealthState())
+            .append("systemhealthStarttime", getSystemhealthStarttime())
+            .append("systemhealthEndtime", getSystemhealthEndtime())
+            .append("systemhealthTime", getSystemhealthTime())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+                .append("state",getState())
+            .toString();
+    }
+}

+ 61 - 0
kgraph-graph/src/main/java/com/kgraph/graph/aircraftparameters/mapper/AircraftParameterManagementMapper.java

@@ -0,0 +1,61 @@
+package com.kgraph.graph.aircraftparameters.mapper;
+
+
+import java.util.List;
+import com.kgraph.graph.aircraftparameters.domain.AircraftParameterManagement;
+/**
+ * 飞参数据管理Mapper接口
+ * 
+ * @author kgraph
+ * @date 2024-01-15
+ */
+public interface AircraftParameterManagementMapper 
+{
+    /**
+     * 查询飞参数据管理
+     * 
+     * @param id 飞参数据管理主键
+     * @return 飞参数据管理
+     */
+    public AircraftParameterManagement selectAircraftParameterManagementById(Long id);
+
+    /**
+     * 查询飞参数据管理列表
+     * 
+     * @param aircraftParameterManagement 飞参数据管理
+     * @return 飞参数据管理集合
+     */
+    public List<AircraftParameterManagement> selectAircraftParameterManagementList(AircraftParameterManagement aircraftParameterManagement);
+
+    /**
+     * 新增飞参数据管理
+     * 
+     * @param aircraftParameterManagement 飞参数据管理
+     * @return 结果
+     */
+    public int insertAircraftParameterManagement(AircraftParameterManagement aircraftParameterManagement);
+
+    /**
+     * 修改飞参数据管理
+     * 
+     * @param aircraftParameterManagement 飞参数据管理
+     * @return 结果
+     */
+    public int updateAircraftParameterManagement(AircraftParameterManagement aircraftParameterManagement);
+
+    /**
+     * 删除飞参数据管理
+     * 
+     * @param id 飞参数据管理主键
+     * @return 结果
+     */
+    public int deleteAircraftParameterManagementById(Long id);
+
+    /**
+     * 批量删除飞参数据管理
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteAircraftParameterManagementByIds(Long[] ids);
+}

+ 61 - 0
kgraph-graph/src/main/java/com/kgraph/graph/aircraftparameters/service/IAircraftParameterManagementService.java

@@ -0,0 +1,61 @@
+package com.kgraph.graph.aircraftparameters.service;
+
+import java.util.List;
+import com.kgraph.graph.aircraftparameters.domain.AircraftParameterManagement;
+
+/**
+ * 飞参数据管理Service接口
+ * 
+ * @author kgraph
+ * @date 2024-01-15
+ */
+public interface IAircraftParameterManagementService 
+{
+    /**
+     * 查询飞参数据管理
+     * 
+     * @param id 飞参数据管理主键
+     * @return 飞参数据管理
+     */
+    public AircraftParameterManagement selectAircraftParameterManagementById(Long id);
+
+    /**
+     * 查询飞参数据管理列表
+     * 
+     * @param aircraftParameterManagement 飞参数据管理
+     * @return 飞参数据管理集合
+     */
+    public List<AircraftParameterManagement> selectAircraftParameterManagementList(AircraftParameterManagement aircraftParameterManagement);
+
+    /**
+     * 新增飞参数据管理
+     * 
+     * @param aircraftParameterManagement 飞参数据管理
+     * @return 结果
+     */
+    public int insertAircraftParameterManagement(AircraftParameterManagement aircraftParameterManagement);
+
+    /**
+     * 修改飞参数据管理
+     * 
+     * @param aircraftParameterManagement 飞参数据管理
+     * @return 结果
+     */
+    public int updateAircraftParameterManagement(AircraftParameterManagement aircraftParameterManagement);
+
+    /**
+     * 批量删除飞参数据管理
+     * 
+     * @param ids 需要删除的飞参数据管理主键集合
+     * @return 结果
+     */
+    public int deleteAircraftParameterManagementByIds(Long[] ids);
+
+    /**
+     * 删除飞参数据管理信息
+     * 
+     * @param id 飞参数据管理主键
+     * @return 结果
+     */
+    public int deleteAircraftParameterManagementById(Long id);
+}

+ 97 - 0
kgraph-graph/src/main/java/com/kgraph/graph/aircraftparameters/service/impl/AircraftParameterManagementServiceImpl.java

@@ -0,0 +1,97 @@
+
+package com.kgraph.graph.aircraftparameters.service.impl;
+
+import java.util.List;
+import com.kgraph.common.utils.DateUtils;;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.kgraph.graph.aircraftparameters.mapper.AircraftParameterManagementMapper;
+import com.kgraph.graph.aircraftparameters.domain.AircraftParameterManagement;
+import com.kgraph.graph.aircraftparameters.service.IAircraftParameterManagementService;
+
+/**
+ * 飞参数据管理Service业务层处理
+ * 
+ * @author kgraph
+ * @date 2024-01-15
+ */
+@Service
+public class AircraftParameterManagementServiceImpl implements IAircraftParameterManagementService 
+{
+    @Autowired
+    private AircraftParameterManagementMapper aircraftParameterManagementMapper;
+
+    /**
+     * 查询飞参数据管理
+     * 
+     * @param id 飞参数据管理主键
+     * @return 飞参数据管理
+     */
+    @Override
+    public AircraftParameterManagement selectAircraftParameterManagementById(Long id)
+    {
+        return aircraftParameterManagementMapper.selectAircraftParameterManagementById(id);
+    }
+
+    /**
+     * 查询飞参数据管理列表
+     * 
+     * @param aircraftParameterManagement 飞参数据管理
+     * @return 飞参数据管理
+     */
+    @Override
+    public List<AircraftParameterManagement> selectAircraftParameterManagementList(AircraftParameterManagement aircraftParameterManagement)
+    {
+        return aircraftParameterManagementMapper.selectAircraftParameterManagementList(aircraftParameterManagement);
+    }
+
+    /**
+     * 新增飞参数据管理
+     * 
+     * @param aircraftParameterManagement 飞参数据管理
+     * @return 结果
+     */
+    @Override
+    public int insertAircraftParameterManagement(AircraftParameterManagement aircraftParameterManagement)
+    {
+        aircraftParameterManagement.setCreateTime(DateUtils.getNowDate());
+        return aircraftParameterManagementMapper.insertAircraftParameterManagement(aircraftParameterManagement);
+    }
+
+    /**
+     * 修改飞参数据管理
+     * 
+     * @param aircraftParameterManagement 飞参数据管理
+     * @return 结果
+     */
+    @Override
+    public int updateAircraftParameterManagement(AircraftParameterManagement aircraftParameterManagement)
+    {
+        aircraftParameterManagement.setUpdateTime(DateUtils.getNowDate());
+        return aircraftParameterManagementMapper.updateAircraftParameterManagement(aircraftParameterManagement);
+    }
+
+    /**
+     * 批量删除飞参数据管理
+     * 
+     * @param ids 需要删除的飞参数据管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteAircraftParameterManagementByIds(Long[] ids)
+    {
+        return aircraftParameterManagementMapper.deleteAircraftParameterManagementByIds(ids);
+    }
+
+    /**
+     * 删除飞参数据管理信息
+     * 
+     * @param id 飞参数据管理主键
+     * @return 结果
+     */
+    @Override
+    public int deleteAircraftParameterManagementById(Long id)
+    {
+        return aircraftParameterManagementMapper.deleteAircraftParameterManagementById(id);
+    }
+}

+ 173 - 0
kgraph-graph/src/main/resources/mapper/aircraftparameters/AircraftParameterManagementMapper.xml

@@ -0,0 +1,173 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.kgraph.graph.aircraftparameters.mapper.AircraftParameterManagementMapper">
+    <resultMap type="AircraftParameterManagement" id="AircraftParameterManagementResult">
+        <result property="id"    column="id"    />
+        <result property="typeId"    column="type_id"    />
+        <result property="aircraftId"    column="aircraft_id"    />
+        <result property="sortie"    column="sortie"    />
+        <result property="flyDate"    column="fly_date"    />
+        <result property="airparaPath"    column="airpara_path"    />
+        <result property="airparaState"    column="airpara_state"    />
+        <result property="airparaStarttime"    column="airpara_starttime"    />
+        <result property="airparaEndtime"    column="airpara_endtime"    />
+        <result property="airparaTime"    column="airpara_time"    />
+        <result property="pretreatmentPath"    column="pretreatment_path"    />
+        <result property="pretreatmentState"    column="pretreatment_state"    />
+        <result property="pretreatmentStarttime"    column="pretreatment_starttime"    />
+        <result property="pretreatmentEndtime"    column="pretreatment_endtime"    />
+        <result property="pretreatmentTime"    column="pretreatment_time"    />
+        <result property="healthfactorsPath"    column="healthfactors_path"    />
+        <result property="healthfactorsState"    column="healthfactors_state"    />
+        <result property="healthfactorsStarttime"    column="healthfactors_starttime"    />
+        <result property="healthfactorsEndtime"    column="healthfactors_endtime"    />
+        <result property="healthfactorsTime"    column="healthfactors_time"    />
+        <result property="systemhealthPath"    column="systemhealth_path"    />
+        <result property="systemhealthState"    column="systemhealth_state"    />
+        <result property="systemhealthStarttime"    column="systemhealth_starttime"    />
+        <result property="systemhealthEndtime"    column="systemhealth_endtime"    />
+        <result property="systemhealthTime"    column="systemhealth_time"    />
+        <result property="state"    column="state"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectAircraftParameterManagementVo">
+        select id, type_id, aircraft_id, sortie, fly_date, airpara_path, airpara_state, airpara_starttime, airpara_endtime, airpara_time, pretreatment_path, pretreatment_state, pretreatment_starttime, pretreatment_endtime, pretreatment_time, healthfactors_path, healthfactors_state, healthfactors_starttime, healthfactors_endtime, healthfactors_time, systemhealth_path, systemhealth_state, systemhealth_starttime, systemhealth_endtime, systemhealth_time, state, create_by, create_time, update_by, update_time, remark from aircraft_parameter_management
+    </sql>
+
+    <select id="selectAircraftParameterManagementList" parameterType="AircraftParameterManagement" resultMap="AircraftParameterManagementResult">
+        <include refid="selectAircraftParameterManagementVo"/>
+        <where>  
+            <if test="typeId != null  and typeId != ''"> and type_id like concat('%', #{typeId}, '%')</if>
+            <if test="aircraftId != null  and aircraftId != ''"> and aircraft_id like concat('%', #{aircraftId}, '%')</if>
+            <if test="sortie != null  and sortie != ''"> and sortie like concat('%', #{sortie}, '%')</if>
+        </where>
+    </select>
+    
+    <select id="selectAircraftParameterManagementById" parameterType="Long" resultMap="AircraftParameterManagementResult">
+        <include refid="selectAircraftParameterManagementVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertAircraftParameterManagement" parameterType="AircraftParameterManagement" useGeneratedKeys="true" keyProperty="id">
+        insert into aircraft_parameter_management
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="typeId != null">type_id,</if>
+            <if test="aircraftId != null">aircraft_id,</if>
+            <if test="sortie != null">sortie,</if>
+            <if test="flyDate != null">fly_date,</if>
+            <if test="airparaPath != null">airpara_path,</if>
+            <if test="airparaState != null">airpara_state,</if>
+            <if test="airparaStarttime != null">airpara_starttime,</if>
+            <if test="airparaEndtime != null">airpara_endtime,</if>
+            <if test="airparaTime != null">airpara_time,</if>
+            <if test="pretreatmentPath != null">pretreatment_path,</if>
+            <if test="pretreatmentState != null">pretreatment_state,</if>
+            <if test="pretreatmentStarttime != null">pretreatment_starttime,</if>
+            <if test="pretreatmentEndtime != null">pretreatment_endtime,</if>
+            <if test="pretreatmentTime != null">pretreatment_time,</if>
+            <if test="healthfactorsPath != null">healthfactors_path,</if>
+            <if test="healthfactorsState != null">healthfactors_state,</if>
+            <if test="healthfactorsStarttime != null">healthfactors_starttime,</if>
+            <if test="healthfactorsEndtime != null">healthfactors_endtime,</if>
+            <if test="healthfactorsTime != null">healthfactors_time,</if>
+            <if test="systemhealthPath != null">systemhealth_path,</if>
+            <if test="systemhealthState != null">systemhealth_state,</if>
+            <if test="systemhealthStarttime != null">systemhealth_starttime,</if>
+            <if test="systemhealthEndtime != null">systemhealth_endtime,</if>
+            <if test="systemhealthTime != null">systemhealth_time,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+            <if test="state != null">state,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="typeId != null">#{typeId},</if>
+            <if test="aircraftId != null">#{aircraftId},</if>
+            <if test="sortie != null">#{sortie},</if>
+            <if test="flyDate != null">#{flyDate},</if>
+            <if test="airparaPath != null">#{airparaPath},</if>
+            <if test="airparaState != null">#{airparaState},</if>
+            <if test="airparaStarttime != null">#{airparaStarttime},</if>
+            <if test="airparaEndtime != null">#{airparaEndtime},</if>
+            <if test="airparaTime != null">#{airparaTime},</if>
+            <if test="pretreatmentPath != null">#{pretreatmentPath},</if>
+            <if test="pretreatmentState != null">#{pretreatmentState},</if>
+            <if test="pretreatmentStarttime != null">#{pretreatmentStarttime},</if>
+            <if test="pretreatmentEndtime != null">#{pretreatmentEndtime},</if>
+            <if test="pretreatmentTime != null">#{pretreatmentTime},</if>
+            <if test="healthfactorsPath != null">#{healthfactorsPath},</if>
+            <if test="healthfactorsState != null">#{healthfactorsState},</if>
+            <if test="healthfactorsStarttime != null">#{healthfactorsStarttime},</if>
+            <if test="healthfactorsEndtime != null">#{healthfactorsEndtime},</if>
+            <if test="healthfactorsTime != null">#{healthfactorsTime},</if>
+            <if test="systemhealthPath != null">#{systemhealthPath},</if>
+            <if test="systemhealthState != null">#{systemhealthState},</if>
+            <if test="systemhealthStarttime != null">#{systemhealthStarttime},</if>
+            <if test="systemhealthEndtime != null">#{systemhealthEndtime},</if>
+            <if test="systemhealthTime != null">#{systemhealthTime},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+            <if test="state != null">#{state},</if>
+         </trim>
+    </insert>
+
+    <update id="updateAircraftParameterManagement" parameterType="AircraftParameterManagement">
+        update aircraft_parameter_management
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="typeId != null">type_id = #{typeId},</if>
+            <if test="aircraftId != null">aircraft_id = #{aircraftId},</if>
+            <if test="sortie != null">sortie = #{sortie},</if>
+            <if test="flyDate != null">fly_date = #{flyDate},</if>
+            <if test="airparaPath != null">airpara_path = #{airparaPath},</if>
+            <if test="airparaState != null">airpara_state = #{airparaState},</if>
+            <if test="airparaStarttime != null">airpara_starttime = #{airparaStarttime},</if>
+            <if test="airparaEndtime != null">airpara_endtime = #{airparaEndtime},</if>
+            <if test="airparaTime != null">airpara_time = #{airparaTime},</if>
+            <if test="pretreatmentPath != null">pretreatment_path = #{pretreatmentPath},</if>
+            <if test="pretreatmentState != null">pretreatment_state = #{pretreatmentState},</if>
+            <if test="pretreatmentStarttime != null">pretreatment_starttime = #{pretreatmentStarttime},</if>
+            <if test="pretreatmentEndtime != null">pretreatment_endtime = #{pretreatmentEndtime},</if>
+            <if test="pretreatmentTime != null">pretreatment_time = #{pretreatmentTime},</if>
+            <if test="healthfactorsPath != null">healthfactors_path = #{healthfactorsPath},</if>
+            <if test="healthfactorsState != null">healthfactors_state = #{healthfactorsState},</if>
+            <if test="healthfactorsStarttime != null">healthfactors_starttime = #{healthfactorsStarttime},</if>
+            <if test="healthfactorsEndtime != null">healthfactors_endtime = #{healthfactorsEndtime},</if>
+            <if test="healthfactorsTime != null">healthfactors_time = #{healthfactorsTime},</if>
+            <if test="systemhealthPath != null">systemhealth_path = #{systemhealthPath},</if>
+            <if test="systemhealthState != null">systemhealth_state = #{systemhealthState},</if>
+            <if test="systemhealthStarttime != null">systemhealth_starttime = #{systemhealthStarttime},</if>
+            <if test="systemhealthEndtime != null">systemhealth_endtime = #{systemhealthEndtime},</if>
+            <if test="systemhealthTime != null">systemhealth_time = #{systemhealthTime},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+            <if test="state != null">state= #{state},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteAircraftParameterManagementById" parameterType="Long">
+        delete from aircraft_parameter_management where id = #{id}
+    </delete>
+
+    <delete id="deleteAircraftParameterManagementByIds" parameterType="String">
+        delete from aircraft_parameter_management where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>