浏览代码

创建“飞机系统参数管理”、“警告结果”表, 完成飞机系统参数管理、警告结果基本功能

Gaokun Wang 4 月之前
父节点
当前提交
02011920fb
共有 17 个文件被更改,包括 1340 次插入0 次删除
  1. 93 0
      als-modules/agile-assurance/src/main/java/org/eco/als/controller/AirParamterController.java
  2. 93 0
      als-modules/agile-assurance/src/main/java/org/eco/als/controller/WarningResultController.java
  3. 67 0
      als-modules/agile-assurance/src/main/java/org/eco/als/domain/AirParamter.java
  4. 73 0
      als-modules/agile-assurance/src/main/java/org/eco/als/domain/WarningResult.java
  5. 80 0
      als-modules/agile-assurance/src/main/java/org/eco/als/domain/bo/AirParamterBo.java
  6. 90 0
      als-modules/agile-assurance/src/main/java/org/eco/als/domain/bo/WarningResultBo.java
  7. 122 0
      als-modules/agile-assurance/src/main/java/org/eco/als/domain/vo/AirParamterVo.java
  8. 106 0
      als-modules/agile-assurance/src/main/java/org/eco/als/domain/vo/WarningResultVo.java
  9. 16 0
      als-modules/agile-assurance/src/main/java/org/eco/als/mapper/AirParamterMapper.java
  10. 16 0
      als-modules/agile-assurance/src/main/java/org/eco/als/mapper/WarningResultMapper.java
  11. 74 0
      als-modules/agile-assurance/src/main/java/org/eco/als/service/IAirParamterService.java
  12. 74 0
      als-modules/agile-assurance/src/main/java/org/eco/als/service/IWarningResultService.java
  13. 163 0
      als-modules/agile-assurance/src/main/java/org/eco/als/service/impl/AirParamterServiceImpl.java
  14. 167 0
      als-modules/agile-assurance/src/main/java/org/eco/als/service/impl/WarningResultServiceImpl.java
  15. 7 0
      als-modules/agile-assurance/src/main/resources/mapper/als/AirParamterMapper.xml
  16. 7 0
      als-modules/agile-assurance/src/main/resources/mapper/als/WarningResultMapper.xml
  17. 92 0
      als-start/src/main/resources/db/dm/V1_0_0_10__als-20250227-ddl.sql

+ 93 - 0
als-modules/agile-assurance/src/main/java/org/eco/als/controller/AirParamterController.java

@@ -0,0 +1,93 @@
+package org.eco.als.controller;
+
+import cn.dev33.satoken.annotation.SaCheckPermission;
+import jakarta.annotation.Resource;
+import lombok.RequiredArgsConstructor;
+import org.eco.als.domain.bo.AirParamterBo;
+import org.eco.als.domain.vo.AirParamterVo;
+import org.eco.als.service.IAirParamterService;
+import org.eco.common.core.core.domain.CommonResult;
+import org.eco.common.core.core.page.PageResult;
+import org.eco.common.log.annotation.Log;
+import org.eco.common.log.enums.BusinessType;
+import org.eco.common.web.annotation.RepeatSubmit;
+import org.eco.common.web.core.BaseController;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+/**
+ * 飞机系统参数管理Controller
+ *
+ * @author wgk
+ * @date 2025-02-27
+ */
+@Validated
+@RequiredArgsConstructor
+@RestController
+@RequestMapping("/als/airParamter")
+public class AirParamterController extends BaseController {
+    @Resource
+    private IAirParamterService airParamterService;
+
+    /**
+     * 查询飞机系统参数管理列表
+     */
+    @SaCheckPermission("als:airParamter:list")
+    @GetMapping("/list")
+    public CommonResult<PageResult<AirParamterVo>> list(AirParamterBo airParamterBo) {
+        return CommonResult.success(airParamterService.selectPage(airParamterBo));
+    }
+
+    /**
+     * 获取飞机系统参数管理详细信息
+     */
+    @SaCheckPermission("als:airParamter:query")
+    @GetMapping(value = "/{id}")
+    public CommonResult<AirParamterVo> getInfo(@PathVariable Long id) {
+        return CommonResult.success(airParamterService.selectById(id));
+    }
+
+    /**
+     * 新增飞机系统参数管理
+     */
+    @SaCheckPermission("als:airParamter:add")
+    @Log(title = "飞机系统参数管理", businessType = BusinessType.INSERT)
+    @RepeatSubmit()
+    @PostMapping
+    public CommonResult<Void> add(@Validated @RequestBody AirParamterBo airParamterBo) {
+        boolean inserted = airParamterService.insert(airParamterBo);
+        if (!inserted) {
+            return CommonResult.fail("新增飞机系统参数管理记录失败!");
+        }
+        return CommonResult.success();
+    }
+
+    /**
+     * 修改飞机系统参数管理
+     */
+    @SaCheckPermission("als:airParamter:edit")
+    @Log(title = "飞机系统参数管理", businessType = BusinessType.UPDATE)
+    @RepeatSubmit()
+    @PutMapping
+    public CommonResult<Void> edit(@Validated @RequestBody AirParamterBo airParamterBo) {
+        boolean updated = airParamterService.update(airParamterBo);
+        if (!updated) {
+            return CommonResult.fail("修改飞机系统参数管理记录失败!");
+        }
+        return CommonResult.success();
+    }
+
+    /**
+     * 删除飞机系统参数管理
+     */
+    @SaCheckPermission("als:airParamter:remove")
+    @Log(title = "飞机系统参数管理", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public CommonResult<Void> remove(@PathVariable Long[] ids) {
+        boolean deleted = airParamterService.deleteByIds(ids);
+        if (!deleted) {
+            return CommonResult.fail("删除飞机系统参数管理记录失败!");
+        }
+        return CommonResult.success();
+    }
+}

+ 93 - 0
als-modules/agile-assurance/src/main/java/org/eco/als/controller/WarningResultController.java

@@ -0,0 +1,93 @@
+package org.eco.als.controller;
+
+import cn.dev33.satoken.annotation.SaCheckPermission;
+import jakarta.annotation.Resource;
+import lombok.RequiredArgsConstructor;
+import org.eco.als.domain.bo.WarningResultBo;
+import org.eco.als.domain.vo.WarningResultVo;
+import org.eco.als.service.IWarningResultService;
+import org.eco.common.core.core.domain.CommonResult;
+import org.eco.common.core.core.page.PageResult;
+import org.eco.common.log.annotation.Log;
+import org.eco.common.log.enums.BusinessType;
+import org.eco.common.web.annotation.RepeatSubmit;
+import org.eco.common.web.core.BaseController;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+/**
+ * 警告结果Controller
+ *
+ * @author wgk
+ * @date 2025-02-27
+ */
+@Validated
+@RequiredArgsConstructor
+@RestController
+@RequestMapping("/als/warningResult")
+public class WarningResultController extends BaseController {
+    @Resource
+    private IWarningResultService warningResultService;
+
+    /**
+     * 查询警告结果列表
+     */
+    @SaCheckPermission("als:warningResult:list")
+    @GetMapping("/list")
+    public CommonResult<PageResult<WarningResultVo>> list(WarningResultBo warningResultBo) {
+        return CommonResult.success(warningResultService.selectPage(warningResultBo));
+    }
+
+    /**
+     * 获取警告结果详细信息
+     */
+    @SaCheckPermission("als:warningResult:query")
+    @GetMapping(value = "/{id}")
+    public CommonResult<WarningResultVo> getInfo(@PathVariable Long id) {
+        return CommonResult.success(warningResultService.selectById(id));
+    }
+
+    /**
+     * 新增警告结果
+     */
+    @SaCheckPermission("als:warningResult:add")
+    @Log(title = "警告结果", businessType = BusinessType.INSERT)
+    @RepeatSubmit()
+    @PostMapping
+    public CommonResult<Void> add(@Validated @RequestBody WarningResultBo warningResultBo) {
+        boolean inserted = warningResultService.insert(warningResultBo);
+        if (!inserted) {
+            return CommonResult.fail("新增警告结果记录失败!");
+        }
+        return CommonResult.success();
+    }
+
+    /**
+     * 修改警告结果
+     */
+    @SaCheckPermission("als:warningResult:edit")
+    @Log(title = "警告结果", businessType = BusinessType.UPDATE)
+    @RepeatSubmit()
+    @PutMapping
+    public CommonResult<Void> edit(@Validated @RequestBody WarningResultBo warningResultBo) {
+        boolean updated = warningResultService.update(warningResultBo);
+        if (!updated) {
+            return CommonResult.fail("修改警告结果记录失败!");
+        }
+        return CommonResult.success();
+    }
+
+    /**
+     * 删除警告结果
+     */
+    @SaCheckPermission("als:warningResult:remove")
+    @Log(title = "警告结果", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public CommonResult<Void> remove(@PathVariable Long[] ids) {
+        boolean deleted = warningResultService.deleteByIds(ids);
+        if (!deleted) {
+            return CommonResult.fail("删除警告结果记录失败!");
+        }
+        return CommonResult.success();
+    }
+}

+ 67 - 0
als-modules/agile-assurance/src/main/java/org/eco/als/domain/AirParamter.java

@@ -0,0 +1,67 @@
+package org.eco.als.domain;
+
+import com.mybatisflex.annotation.Column;
+import com.mybatisflex.annotation.Id;
+import com.mybatisflex.annotation.Table;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.io.Serial;
+import org.eco.common.orm.core.domain.BaseEntity;
+
+/**
+ * 飞机系统参数管理对象 als_air_paramter_t
+ *
+ * @author wgk
+ * @date 2025-02-27
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@Table(value = "als_air_paramter_t")
+public class AirParamter extends BaseEntity {
+@Serial
+private static final long serialVersionUID = 1L;
+
+    /** 唯一ID */
+    @Id
+    private Long id;
+
+    /** 机型 */
+    private String aircraftType;
+
+    /** 系统ID */
+    private String sysId;
+
+    /** 系统名称 */
+    private String sysName;
+
+    /** 参数名称 */
+    private String name;
+
+    /** 参数名称ID */
+    private String nameId;
+
+    /** 描述 */
+    private String remarks;
+
+    /** 属性1 */
+    private String attribute1;
+
+    /** 属性2 */
+    private String attribute2;
+
+    /** 属性3 */
+    private String attribute3;
+
+    /** 属性4 */
+    private String attribute4;
+
+    /** 属性5 */
+    private String attribute5;
+
+    /** 删除标识(1删除 0未删除) */
+    @Column(isLogicDelete = true)
+    private Integer delFlag;
+
+
+}

+ 73 - 0
als-modules/agile-assurance/src/main/java/org/eco/als/domain/WarningResult.java

@@ -0,0 +1,73 @@
+package org.eco.als.domain;
+
+import com.mybatisflex.annotation.Column;
+import com.mybatisflex.annotation.Id;
+import com.mybatisflex.annotation.Table;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.io.Serial;
+import org.eco.common.orm.core.domain.BaseEntity;
+
+/**
+ * 警告结果对象 als_warning_result_t
+ *
+ * @author wgk
+ * @date 2025-02-27
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@Table(value = "als_warning_result_t")
+public class WarningResult extends BaseEntity {
+@Serial
+private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    @Id
+    private Long id;
+
+    /** 架次号 */
+    private Long sortieNo;
+
+    /** 机号 */
+    private Long aircraftId;
+
+    /** 警告代码 */
+    private String code;
+
+    /** 警告名称 */
+    private String name;
+
+    /** hmc */
+    private String hmc;
+
+    /** 警告描述 */
+    private String describe;
+
+    /** 状态(1正常) */
+    private String status;
+
+    /** 结果内容 */
+    private String resultContent;
+
+    /** 属性1 */
+    private String attribute1;
+
+    /** 属性2 */
+    private String attribute2;
+
+    /** 属性3 */
+    private String attribute3;
+
+    /** 属性4 */
+    private String attribute4;
+
+    /** 属性5 */
+    private String attribute5;
+
+    /** 删除标识(1删除 0未删除) */
+    @Column(isLogicDelete = true)
+    private Integer delFlag;
+
+
+}

+ 80 - 0
als-modules/agile-assurance/src/main/java/org/eco/als/domain/bo/AirParamterBo.java

@@ -0,0 +1,80 @@
+package org.eco.als.domain.bo;
+
+import io.github.linpeilie.annotations.AutoMapper;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import org.eco.als.domain.AirParamter;
+import org.eco.common.orm.core.domain.BaseEntity;
+
+/**
+ * 飞机系统参数管理业务对象 als_air_paramter_t
+ *
+ * @author wgk
+ * @date 2025-02-27
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@AutoMapper(target = AirParamter.class, reverseConvertGenerate = false)
+public class AirParamterBo extends BaseEntity {
+    /**
+     * 唯一ID
+     */
+    private Long id;
+
+    /**
+     * 机型
+     */
+    private String aircraftType;
+
+    /**
+     * 系统ID
+     */
+    private String sysId;
+
+    /**
+     * 系统名称
+     */
+    private String sysName;
+
+    /**
+     * 参数名称
+     */
+    private String name;
+
+    /**
+     * 参数名称ID
+     */
+    private String nameId;
+
+    /**
+     * 描述
+     */
+    private String remarks;
+
+    /**
+     * 属性1
+     */
+    private String attribute1;
+
+    /**
+     * 属性2
+     */
+    private String attribute2;
+
+    /**
+     * 属性3
+     */
+    private String attribute3;
+
+    /**
+     * 属性4
+     */
+    private String attribute4;
+
+    /**
+     * 属性5
+     */
+    private String attribute5;
+
+
+}

+ 90 - 0
als-modules/agile-assurance/src/main/java/org/eco/als/domain/bo/WarningResultBo.java

@@ -0,0 +1,90 @@
+package org.eco.als.domain.bo;
+
+import io.github.linpeilie.annotations.AutoMapper;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import org.eco.als.domain.WarningResult;
+import org.eco.common.orm.core.domain.BaseEntity;
+
+/**
+ * 警告结果业务对象 als_warning_result_t
+ *
+ * @author wgk
+ * @date 2025-02-27
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@AutoMapper(target = WarningResult.class, reverseConvertGenerate = false)
+public class WarningResultBo extends BaseEntity {
+    /**
+     * 编号
+     */
+    private Long id;
+
+    /**
+     * 架次号
+     */
+    private Long sortieNo;
+
+    /**
+     * 机号
+     */
+    private Long aircraftId;
+
+    /**
+     * 警告代码
+     */
+    private String code;
+
+    /**
+     * 警告名称
+     */
+    private String name;
+
+    /**
+     * hmc
+     */
+    private String hmc;
+
+    /**
+     * 警告描述
+     */
+    private String describe;
+
+    /**
+     * 状态(1正常)
+     */
+    private String status;
+
+    /**
+     * 结果内容
+     */
+    private String resultContent;
+
+    /**
+     * 属性1
+     */
+    private String attribute1;
+
+    /**
+     * 属性2
+     */
+    private String attribute2;
+
+    /**
+     * 属性3
+     */
+    private String attribute3;
+
+    /**
+     * 属性4
+     */
+    private String attribute4;
+
+    /**
+     * 属性5
+     */
+    private String attribute5;
+
+
+}

+ 122 - 0
als-modules/agile-assurance/src/main/java/org/eco/als/domain/vo/AirParamterVo.java

@@ -0,0 +1,122 @@
+package org.eco.als.domain.vo;
+
+import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
+import com.alibaba.excel.annotation.ExcelProperty;
+import com.eco.common.mapper.annotation.FieldMapper;
+import com.eco.common.mapper.constant.MapperConstant;
+import io.github.linpeilie.annotations.AutoMapper;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import org.eco.als.domain.AirParamter;
+import org.eco.common.orm.core.domain.BaseEntity;
+
+import java.io.Serial;
+import java.io.Serializable;
+
+/**
+ * 飞机系统参数管理视图对象 als_air_paramter_t
+ *
+ * @author wgk
+ * @date 2025-02-27
+ */
+@Data
+@ExcelIgnoreUnannotated
+@EqualsAndHashCode(callSuper = true)
+@AutoMapper(target = AirParamter.class)
+public class AirParamterVo extends BaseEntity implements Serializable {
+
+    @Serial
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 唯一ID
+     */
+    @ExcelProperty(value = "唯一ID")
+    private Long id;
+
+    /**
+     * 机型
+     */
+    @ExcelProperty(value = "机型")
+    private String aircraftType;
+
+    /**
+     * 系统ID
+     */
+    @ExcelProperty(value = "系统ID")
+    private String sysId;
+
+    /**
+     * 系统名称
+     */
+    @ExcelProperty(value = "系统名称")
+    private String sysName;
+
+    /**
+     * 参数名称
+     */
+    @ExcelProperty(value = "参数名称")
+    private String name;
+
+    /**
+     * 参数名称ID
+     */
+    @ExcelProperty(value = "参数名称ID")
+    private String nameId;
+
+    /**
+     * 描述
+     */
+    @ExcelProperty(value = "描述")
+    private String remarks;
+
+    /**
+     * 属性1
+     */
+    @ExcelProperty(value = "属性1")
+    private String attribute1;
+
+    /**
+     * 属性2
+     */
+    @ExcelProperty(value = "属性2")
+    private String attribute2;
+
+    /**
+     * 属性3
+     */
+    @ExcelProperty(value = "属性3")
+    private String attribute3;
+
+    /**
+     * 属性4
+     */
+    @ExcelProperty(value = "属性4")
+    private String attribute4;
+
+    /**
+     * 属性5
+     */
+    @ExcelProperty(value = "属性5")
+    private String attribute5;
+
+    /**
+     * 删除标识(1删除 0未删除)
+     */
+    @ExcelProperty(value = "删除标识(1删除 0未删除)")
+    private Integer delFlag;
+
+
+    /**
+     * 创建人名称
+     */
+    @FieldMapper(type = MapperConstant.USER_ID_TO_NAME, mapper = "createBy")
+    private String createByName;
+
+    /**
+     * 创建人名称
+     */
+    @FieldMapper(type = MapperConstant.USER_ID_TO_NAME, mapper = "updateBy")
+    private String updateByName;
+
+}

+ 106 - 0
als-modules/agile-assurance/src/main/java/org/eco/als/domain/vo/WarningResultVo.java

@@ -0,0 +1,106 @@
+package org.eco.als.domain.vo;
+
+import org.eco.als.domain.WarningResult;
+import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
+import com.alibaba.excel.annotation.ExcelProperty;
+import org.eco.common.excel.annotation.ExcelDictFormat;
+import org.eco.common.excel.convert.ExcelDictConvert;
+import com.eco.common.mapper.constant.MapperConstant;
+import com.eco.common.mapper.annotation.FieldMapper;
+import io.github.linpeilie.annotations.AutoMapper;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import java.io.Serial;
+import java.io.Serializable;
+import org.eco.common.orm.core.domain.BaseEntity;
+
+/**
+ * 警告结果视图对象 als_warning_result_t
+ *
+ * @author wgk
+ * @date 2025-02-27
+ */
+@Data
+@ExcelIgnoreUnannotated
+@EqualsAndHashCode(callSuper = true)
+@AutoMapper(target = WarningResult.class)
+public class WarningResultVo extends BaseEntity implements Serializable {
+
+@Serial
+private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    @ExcelProperty(value = "编号")
+    private Long id;
+
+    /** 架次号 */
+    @ExcelProperty(value = "架次号")
+    private Long sortieNo;
+
+    /** 机号 */
+    @ExcelProperty(value = "机号")
+    private Long aircraftId;
+
+    /** 警告代码 */
+    @ExcelProperty(value = "警告代码")
+    private String code;
+
+    /** 警告名称 */
+    @ExcelProperty(value = "警告名称")
+    private String name;
+
+    /** hmc */
+    @ExcelProperty(value = "hmc")
+    private String hmc;
+
+    /** 警告描述 */
+    @ExcelProperty(value = "警告描述")
+    private String describe;
+
+    /** 状态(1正常) */
+    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
+    @ExcelDictFormat(readConverterExp = "1=正常")
+    private String status;
+
+    /** 结果内容 */
+    @ExcelProperty(value = "结果内容")
+    private String resultContent;
+
+    /** 属性1 */
+    @ExcelProperty(value = "属性1")
+    private String attribute1;
+
+    /** 属性2 */
+    @ExcelProperty(value = "属性2")
+    private String attribute2;
+
+    /** 属性3 */
+    @ExcelProperty(value = "属性3")
+    private String attribute3;
+
+    /** 属性4 */
+    @ExcelProperty(value = "属性4")
+    private String attribute4;
+
+    /** 属性5 */
+    @ExcelProperty(value = "属性5")
+    private String attribute5;
+
+    /** 删除标识(1删除 0未删除) */
+    @ExcelProperty(value = "删除标识(1删除 0未删除)")
+    private Integer delFlag;
+
+
+    /**
+     * 创建人名称
+     */
+    @FieldMapper(type = MapperConstant.USER_ID_TO_NAME, mapper = "createBy")
+    private String createByName;
+
+    /**
+     * 创建人名称
+     */
+    @FieldMapper(type = MapperConstant.USER_ID_TO_NAME, mapper = "updateBy")
+    private String updateByName;
+
+}

+ 16 - 0
als-modules/agile-assurance/src/main/java/org/eco/als/mapper/AirParamterMapper.java

@@ -0,0 +1,16 @@
+package org.eco.als.mapper;
+
+import com.mybatisflex.core.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+import org.eco.als.domain.AirParamter;
+
+/**
+ * 飞机系统参数管理Mapper接口
+ *
+ * @author wgk
+ * @date 2025-02-27
+ */
+@Mapper
+public interface AirParamterMapper extends BaseMapper<AirParamter> {
+
+}

+ 16 - 0
als-modules/agile-assurance/src/main/java/org/eco/als/mapper/WarningResultMapper.java

@@ -0,0 +1,16 @@
+package org.eco.als.mapper;
+
+import com.mybatisflex.core.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+import org.eco.als.domain.WarningResult;
+
+/**
+ * 警告结果Mapper接口
+ *
+ * @author wgk
+ * @date 2025-02-27
+ */
+@Mapper
+public interface WarningResultMapper extends BaseMapper<WarningResult> {
+
+}

+ 74 - 0
als-modules/agile-assurance/src/main/java/org/eco/als/service/IAirParamterService.java

@@ -0,0 +1,74 @@
+package org.eco.als.service;
+
+import org.eco.als.domain.AirParamter;
+import org.eco.als.domain.bo.AirParamterBo;
+import org.eco.als.domain.vo.AirParamterVo;
+import org.eco.common.core.core.page.PageResult;
+import org.eco.common.orm.core.service.IBaseService;
+
+import java.util.List;
+
+/**
+ * 飞机系统参数管理Service接口
+ *
+ * @author wgk
+ * @date 2025-02-27
+ */
+public interface IAirParamterService extends IBaseService<AirParamter> {
+    /**
+     * 查询飞机系统参数管理
+     *
+     * @param id 飞机系统参数管理主键
+     * @return 飞机系统参数管理
+     */
+    AirParamterVo selectById(Long id);
+
+    /**
+     * 查询飞机系统参数管理列表
+     *
+     * @param airParamterBo 飞机系统参数管理Bo
+     * @return 飞机系统参数管理集合
+     */
+    List<AirParamterVo> selectList(AirParamterBo airParamterBo);
+
+    /**
+     * 分页查询飞机系统参数管理列表
+     *
+     * @param airParamterBo 飞机系统参数管理Bo
+     * @return 分页飞机系统参数管理集合
+     */
+    PageResult<AirParamterVo> selectPage(AirParamterBo airParamterBo);
+
+    /**
+     * 新增飞机系统参数管理
+     *
+     * @param airParamterBo 飞机系统参数管理Bo
+     * @return 结果:true 操作成功,false 操作失败
+     */
+    boolean insert(AirParamterBo airParamterBo);
+
+    /**
+     * 新增飞机系统参数管理,前台提供主键值,一般用于导入的场合
+     *
+     * @param airParamterBo 飞机系统参数管理Bo
+     * @return 结果:true 操作成功,false 操作失败
+     */
+    boolean insertWithPk(AirParamterBo airParamterBo);
+
+    /**
+     * 修改飞机系统参数管理
+     *
+     * @param airParamterBo 飞机系统参数管理Bo
+     * @return 结果:true 更新成功,false 更新失败
+     */
+    boolean update(AirParamterBo airParamterBo);
+
+    /**
+     * 批量删除飞机系统参数管理
+     *
+     * @param ids 需要删除的飞机系统参数管理主键集合
+     * @return 结果:true 删除成功,false 删除失败
+     */
+    boolean deleteByIds(Long[] ids);
+
+}

+ 74 - 0
als-modules/agile-assurance/src/main/java/org/eco/als/service/IWarningResultService.java

@@ -0,0 +1,74 @@
+package org.eco.als.service;
+
+import org.eco.als.domain.WarningResult;
+import org.eco.als.domain.bo.WarningResultBo;
+import org.eco.als.domain.vo.WarningResultVo;
+import org.eco.common.core.core.page.PageResult;
+import org.eco.common.orm.core.service.IBaseService;
+
+import java.util.List;
+
+/**
+ * 警告结果Service接口
+ *
+ * @author wgk
+ * @date 2025-02-27
+ */
+public interface IWarningResultService extends IBaseService<WarningResult> {
+    /**
+     * 查询警告结果
+     *
+     * @param id 警告结果主键
+     * @return 警告结果
+     */
+    WarningResultVo selectById(Long id);
+
+    /**
+     * 查询警告结果列表
+     *
+     * @param warningResultBo 警告结果Bo
+     * @return 警告结果集合
+     */
+    List<WarningResultVo> selectList(WarningResultBo warningResultBo);
+
+    /**
+     * 分页查询警告结果列表
+     *
+     * @param warningResultBo 警告结果Bo
+     * @return 分页警告结果集合
+     */
+    PageResult<WarningResultVo> selectPage(WarningResultBo warningResultBo);
+
+    /**
+     * 新增警告结果
+     *
+     * @param warningResultBo 警告结果Bo
+     * @return 结果:true 操作成功,false 操作失败
+     */
+    boolean insert(WarningResultBo warningResultBo);
+
+    /**
+     * 新增警告结果,前台提供主键值,一般用于导入的场合
+     *
+     * @param warningResultBo 警告结果Bo
+     * @return 结果:true 操作成功,false 操作失败
+     */
+    boolean insertWithPk(WarningResultBo warningResultBo);
+
+    /**
+     * 修改警告结果
+     *
+     * @param warningResultBo 警告结果Bo
+     * @return 结果:true 更新成功,false 更新失败
+     */
+    boolean update(WarningResultBo warningResultBo);
+
+    /**
+     * 批量删除警告结果
+     *
+     * @param ids 需要删除的警告结果主键集合
+     * @return 结果:true 删除成功,false 删除失败
+     */
+    boolean deleteByIds(Long[] ids);
+
+}

+ 163 - 0
als-modules/agile-assurance/src/main/java/org/eco/als/service/impl/AirParamterServiceImpl.java

@@ -0,0 +1,163 @@
+package org.eco.als.service.impl;
+
+import cn.hutool.core.util.ObjectUtil;
+import com.mybatisflex.core.paginate.Page;
+import com.mybatisflex.core.query.QueryWrapper;
+import jakarta.annotation.Resource;
+import lombok.extern.slf4j.Slf4j;
+import org.eco.als.domain.AirParamter;
+import org.eco.als.domain.bo.AirParamterBo;
+import org.eco.als.domain.vo.AirParamterVo;
+import org.eco.als.mapper.AirParamterMapper;
+import org.eco.als.service.IAirParamterService;
+import org.eco.common.core.core.page.PageResult;
+import org.eco.common.core.utils.MapstructUtils;
+import org.eco.common.orm.core.page.PageQuery;
+import org.eco.common.orm.core.service.impl.BaseServiceImpl;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.Arrays;
+import java.util.List;
+
+import static org.eco.als.domain.table.AirParamterTableDef.AIR_PARAMTER;
+
+/**
+ * 飞机系统参数管理Service业务层处理
+ *
+ * @author wgk
+ * @date 2025-02-27
+ */
+@Service
+@Slf4j
+public class AirParamterServiceImpl extends BaseServiceImpl<AirParamterMapper, AirParamter> implements IAirParamterService {
+    @Resource
+    private AirParamterMapper airParamterMapper;
+
+    @Override
+    public QueryWrapper query() {
+        return super.query().from(AIR_PARAMTER);
+    }
+
+    private QueryWrapper buildQueryWrapper(AirParamterBo airParamterBo) {
+        QueryWrapper queryWrapper = super.buildBaseQueryWrapper();
+        queryWrapper.and(AIR_PARAMTER.AIRCRAFT_TYPE.eq
+            (airParamterBo.getAircraftType()));
+        queryWrapper.and(AIR_PARAMTER.SYS_ID.eq
+            (airParamterBo.getSysId()));
+        queryWrapper.and(AIR_PARAMTER.SYS_NAME.like
+            (airParamterBo.getSysName()));
+        queryWrapper.and(AIR_PARAMTER.NAME.like
+            (airParamterBo.getName()));
+        queryWrapper.and(AIR_PARAMTER.NAME_ID.eq
+            (airParamterBo.getNameId()));
+        queryWrapper.and(AIR_PARAMTER.REMARKS.eq
+            (airParamterBo.getRemarks()));
+        queryWrapper.and(AIR_PARAMTER.ATTRIBUTE1.eq
+            (airParamterBo.getAttribute1()));
+        queryWrapper.and(AIR_PARAMTER.ATTRIBUTE2.eq
+            (airParamterBo.getAttribute2()));
+        queryWrapper.and(AIR_PARAMTER.ATTRIBUTE3.eq
+            (airParamterBo.getAttribute3()));
+        queryWrapper.and(AIR_PARAMTER.ATTRIBUTE4.eq
+            (airParamterBo.getAttribute4()));
+        queryWrapper.and(AIR_PARAMTER.ATTRIBUTE5.eq
+            (airParamterBo.getAttribute5()));
+
+        return queryWrapper;
+    }
+
+    /**
+     * 查询飞机系统参数管理
+     *
+     * @param id 飞机系统参数管理主键
+     * @return 飞机系统参数管理
+     */
+    @Override
+    public AirParamterVo selectById(Long id) {
+        return this.getOneAs(query().where(AIR_PARAMTER.ID.eq(id)), AirParamterVo.class);
+
+    }
+
+
+    /**
+     * 查询飞机系统参数管理列表
+     *
+     * @param airParamterBo 飞机系统参数管理Bo
+     * @return 飞机系统参数管理集合
+     */
+    @Override
+    public List<AirParamterVo> selectList(AirParamterBo airParamterBo) {
+        QueryWrapper queryWrapper = buildQueryWrapper(airParamterBo);
+        return this.listAs(queryWrapper, AirParamterVo.class);
+    }
+
+    /**
+     * 分页查询飞机系统参数管理列表
+     *
+     * @param airParamterBo 飞机系统参数管理Bo
+     * @return 分页飞机系统参数管理集合
+     */
+    @Override
+    public PageResult<AirParamterVo> selectPage(AirParamterBo airParamterBo) {
+        QueryWrapper queryWrapper = buildQueryWrapper(airParamterBo);
+        Page<AirParamterVo> page = this.pageAs(PageQuery.build(), queryWrapper, AirParamterVo.class);
+        return PageResult.build(page);
+    }
+
+    /**
+     * 新增飞机系统参数管理
+     *
+     * @param airParamterBo 飞机系统参数管理Bo
+     * @return 结果:true 操作成功,false 操作失败
+     */
+    @Override
+    public boolean insert(AirParamterBo airParamterBo) {
+        AirParamter airParamter = MapstructUtils.convert(airParamterBo, AirParamter.class);
+
+        return this.save(airParamter);//使用全局配置的雪花算法主键生成器生成ID值
+    }
+
+    /**
+     * 新增飞机系统参数管理,前台提供主键值,一般用于导入的场合
+     *
+     * @param airParamterBo 飞机系统参数管理Bo
+     * @return 结果:true 操作成功,false 操作失败
+     */
+    @Override
+    public boolean insertWithPk(AirParamterBo airParamterBo) {
+        AirParamter airParamter = MapstructUtils.convert(airParamterBo, AirParamter.class);
+
+
+        return airParamterMapper.insertWithPk(airParamter) > 0;//前台传来主键值
+    }
+
+    /**
+     * 修改飞机系统参数管理
+     *
+     * @param airParamterBo 飞机系统参数管理Bo
+     * @return 结果:true 更新成功,false 更新失败
+     */
+    @Override
+    public boolean update(AirParamterBo airParamterBo) {
+        AirParamter airParamter = MapstructUtils.convert(airParamterBo, AirParamter.class);
+        if (ObjectUtil.isNotNull(airParamter) && ObjectUtil.isNotNull(airParamter.getId())) {
+            boolean updated = this.updateById(airParamter);
+            return updated;
+        }
+        return false;
+    }
+
+    /**
+     * 批量删除飞机系统参数管理
+     *
+     * @param ids 需要删除的飞机系统参数管理主键集合
+     * @return 结果:true 删除成功,false 删除失败
+     */
+    @Transactional
+    @Override
+    public boolean deleteByIds(Long[] ids) {
+        return this.removeByIds(Arrays.asList(ids));
+    }
+
+}

+ 167 - 0
als-modules/agile-assurance/src/main/java/org/eco/als/service/impl/WarningResultServiceImpl.java

@@ -0,0 +1,167 @@
+package org.eco.als.service.impl;
+
+import cn.hutool.core.util.ObjectUtil;
+import com.mybatisflex.core.paginate.Page;
+import com.mybatisflex.core.query.QueryWrapper;
+import jakarta.annotation.Resource;
+import lombok.extern.slf4j.Slf4j;
+import org.eco.als.domain.WarningResult;
+import org.eco.als.domain.bo.WarningResultBo;
+import org.eco.als.domain.vo.WarningResultVo;
+import org.eco.als.mapper.WarningResultMapper;
+import org.eco.als.service.IWarningResultService;
+import org.eco.common.core.core.page.PageResult;
+import org.eco.common.core.utils.MapstructUtils;
+import org.eco.common.orm.core.page.PageQuery;
+import org.eco.common.orm.core.service.impl.BaseServiceImpl;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.Arrays;
+import java.util.List;
+
+import static org.eco.als.domain.table.WarningResultTableDef.WARNING_RESULT;
+
+/**
+ * 警告结果Service业务层处理
+ *
+ * @author wgk
+ * @date 2025-02-27
+ */
+@Service
+@Slf4j
+public class WarningResultServiceImpl extends BaseServiceImpl<WarningResultMapper, WarningResult> implements IWarningResultService {
+    @Resource
+    private WarningResultMapper warningResultMapper;
+
+    @Override
+    public QueryWrapper query() {
+        return super.query().from(WARNING_RESULT);
+    }
+
+    private QueryWrapper buildQueryWrapper(WarningResultBo warningResultBo) {
+        QueryWrapper queryWrapper = super.buildBaseQueryWrapper();
+        queryWrapper.and(WARNING_RESULT.SORTIE_NO.eq
+            (warningResultBo.getSortieNo()));
+        queryWrapper.and(WARNING_RESULT.AIRCRAFT_ID.eq
+            (warningResultBo.getAircraftId()));
+        queryWrapper.and(WARNING_RESULT.CODE.eq
+            (warningResultBo.getCode()));
+        queryWrapper.and(WARNING_RESULT.NAME.like
+            (warningResultBo.getName()));
+        queryWrapper.and(WARNING_RESULT.HMC.eq
+            (warningResultBo.getHmc()));
+        queryWrapper.and(WARNING_RESULT.DESCRIBE.eq
+            (warningResultBo.getDescribe()));
+        queryWrapper.and(WARNING_RESULT.STATUS.eq
+            (warningResultBo.getStatus()));
+        queryWrapper.and(WARNING_RESULT.RESULT_CONTENT.eq
+            (warningResultBo.getResultContent()));
+        queryWrapper.and(WARNING_RESULT.ATTRIBUTE1.eq
+            (warningResultBo.getAttribute1()));
+        queryWrapper.and(WARNING_RESULT.ATTRIBUTE2.eq
+            (warningResultBo.getAttribute2()));
+        queryWrapper.and(WARNING_RESULT.ATTRIBUTE3.eq
+            (warningResultBo.getAttribute3()));
+        queryWrapper.and(WARNING_RESULT.ATTRIBUTE4.eq
+            (warningResultBo.getAttribute4()));
+        queryWrapper.and(WARNING_RESULT.ATTRIBUTE5.eq
+            (warningResultBo.getAttribute5()));
+
+        return queryWrapper;
+    }
+
+    /**
+     * 查询警告结果
+     *
+     * @param id 警告结果主键
+     * @return 警告结果
+     */
+    @Override
+    public WarningResultVo selectById(Long id) {
+        return this.getOneAs(query().where(WARNING_RESULT.ID.eq(id)), WarningResultVo.class);
+
+    }
+
+
+    /**
+     * 查询警告结果列表
+     *
+     * @param warningResultBo 警告结果Bo
+     * @return 警告结果集合
+     */
+    @Override
+    public List<WarningResultVo> selectList(WarningResultBo warningResultBo) {
+        QueryWrapper queryWrapper = buildQueryWrapper(warningResultBo);
+        return this.listAs(queryWrapper, WarningResultVo.class);
+    }
+
+    /**
+     * 分页查询警告结果列表
+     *
+     * @param warningResultBo 警告结果Bo
+     * @return 分页警告结果集合
+     */
+    @Override
+    public PageResult<WarningResultVo> selectPage(WarningResultBo warningResultBo) {
+        QueryWrapper queryWrapper = buildQueryWrapper(warningResultBo);
+        Page<WarningResultVo> page = this.pageAs(PageQuery.build(), queryWrapper, WarningResultVo.class);
+        return PageResult.build(page);
+    }
+
+    /**
+     * 新增警告结果
+     *
+     * @param warningResultBo 警告结果Bo
+     * @return 结果:true 操作成功,false 操作失败
+     */
+    @Override
+    public boolean insert(WarningResultBo warningResultBo) {
+        WarningResult warningResult = MapstructUtils.convert(warningResultBo, WarningResult.class);
+
+        return this.save(warningResult);//使用全局配置的雪花算法主键生成器生成ID值
+    }
+
+    /**
+     * 新增警告结果,前台提供主键值,一般用于导入的场合
+     *
+     * @param warningResultBo 警告结果Bo
+     * @return 结果:true 操作成功,false 操作失败
+     */
+    @Override
+    public boolean insertWithPk(WarningResultBo warningResultBo) {
+        WarningResult warningResult = MapstructUtils.convert(warningResultBo, WarningResult.class);
+
+
+        return warningResultMapper.insertWithPk(warningResult) > 0;//前台传来主键值
+    }
+
+    /**
+     * 修改警告结果
+     *
+     * @param warningResultBo 警告结果Bo
+     * @return 结果:true 更新成功,false 更新失败
+     */
+    @Override
+    public boolean update(WarningResultBo warningResultBo) {
+        WarningResult warningResult = MapstructUtils.convert(warningResultBo, WarningResult.class);
+        if (ObjectUtil.isNotNull(warningResult) && ObjectUtil.isNotNull(warningResult.getId())) {
+            boolean updated = this.updateById(warningResult);
+            return updated;
+        }
+        return false;
+    }
+
+    /**
+     * 批量删除警告结果
+     *
+     * @param ids 需要删除的警告结果主键集合
+     * @return 结果:true 删除成功,false 删除失败
+     */
+    @Transactional
+    @Override
+    public boolean deleteByIds(Long[] ids) {
+        return this.removeByIds(Arrays.asList(ids));
+    }
+
+}

+ 7 - 0
als-modules/agile-assurance/src/main/resources/mapper/als/AirParamterMapper.xml

@@ -0,0 +1,7 @@
+<?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="org.eco.als.mapper.AirParamterMapper">
+
+</mapper>

+ 7 - 0
als-modules/agile-assurance/src/main/resources/mapper/als/WarningResultMapper.xml

@@ -0,0 +1,7 @@
+<?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="org.eco.als.mapper.WarningResultMapper">
+
+</mapper>

+ 92 - 0
als-start/src/main/resources/db/dm/V1_0_0_10__als-20250227-ddl.sql

@@ -0,0 +1,92 @@
+CREATE TABLE "lqbz"."als_air_paramter_t"(
+                                           id bigint NOT NULL,
+                                           aircraft_type VARCHAR2(255),
+                                           sys_id VARCHAR2(255),
+                                           sys_name VARCHAR2(255),
+                                           name VARCHAR2(255),
+                                           name_id VARCHAR2(255),
+                                           remarks VARCHAR2(900),
+                                           attribute1 VARCHAR2(255),
+                                           attribute2 VARCHAR2(255),
+                                           attribute3 VARCHAR2(255),
+                                           attribute4 VARCHAR2(255),
+                                           attribute5 VARCHAR2(255),
+                                           tenant_id VARCHAR2,
+                                           del_flag bit DEFAULT  0,
+                                           version INTEGER,
+                                           create_by VARCHAR2,
+                                           create_time TIMESTAMP,
+                                           update_by VARCHAR2,
+                                           update_time TIMESTAMP
+);
+
+ALTER TABLE "lqbz"."als_air_paramter_t" ADD CONSTRAINT PRIMARY KEY (id);
+
+COMMENT ON TABLE "lqbz"."als_air_paramter_t" IS '飞机系统参数管理';
+COMMENT ON COLUMN "lqbz"."als_air_paramter_t"."id" IS '唯一ID';
+COMMENT ON COLUMN "lqbz"."als_air_paramter_t"."aircraft_type" IS '机型';
+COMMENT ON COLUMN "lqbz"."als_air_paramter_t"."sys_id" IS '系统ID';
+COMMENT ON COLUMN "lqbz"."als_air_paramter_t"."sys_name" IS '系统名称';
+COMMENT ON COLUMN "lqbz"."als_air_paramter_t"."name" IS '参数名称';
+COMMENT ON COLUMN "lqbz"."als_air_paramter_t"."name_id" IS '参数名称ID';
+COMMENT ON COLUMN "lqbz"."als_air_paramter_t"."remarks" IS '描述';
+COMMENT ON COLUMN "lqbz"."als_air_paramter_t"."attribute1" IS '属性1';
+COMMENT ON COLUMN "lqbz"."als_air_paramter_t"."attribute2" IS '属性2';
+COMMENT ON COLUMN "lqbz"."als_air_paramter_t"."attribute3" IS '属性3';
+COMMENT ON COLUMN "lqbz"."als_air_paramter_t"."attribute4" IS '属性4';
+COMMENT ON COLUMN "lqbz"."als_air_paramter_t"."attribute5" IS '属性5';
+COMMENT ON COLUMN "lqbz"."als_air_paramter_t"."tenant_id" IS '租户号';
+COMMENT ON COLUMN "lqbz"."als_air_paramter_t"."del_flag" IS '删除标识(1删除 0未删除)';
+COMMENT ON COLUMN "lqbz"."als_air_paramter_t"."version" IS '乐观锁';
+COMMENT ON COLUMN "lqbz"."als_air_paramter_t"."create_by" IS '创建人';
+COMMENT ON COLUMN "lqbz"."als_air_paramter_t"."create_time" IS '创建时间';
+COMMENT ON COLUMN "lqbz"."als_air_paramter_t"."update_by" IS '更新人';
+COMMENT ON COLUMN "lqbz"."als_air_paramter_t"."update_time" IS '更新时间';
+CREATE TABLE "lqbz"."als_warning_result_t"(
+                                             id bigint NOT NULL,
+                                             sortie_no bigint,
+                                             aircraft_id bigint,
+                                             code VARCHAR2(255),
+                                             name VARCHAR2(255),
+                                             hmc VARCHAR2(255),
+                                             describe VARCHAR2(900),
+                                             status char DEFAULT  1,
+                                             result_content VARCHAR2(255),
+                                             attribute1 VARCHAR2(255),
+                                             attribute2 VARCHAR2(255),
+                                             attribute3 VARCHAR2(255),
+                                             attribute4 VARCHAR2(255),
+                                             attribute5 VARCHAR2(255),
+                                             tenant_id bigint,
+                                             version INTEGER,
+                                             del_flag bit DEFAULT  0,
+                                             create_by bigint,
+                                             create_time DATE,
+                                             update_by bigint,
+                                             update_time DATE
+);
+
+ALTER TABLE "lqbz"."als_warning_result_t" ADD CONSTRAINT PRIMARY KEY (id);
+
+COMMENT ON TABLE "lqbz"."als_warning_result_t" IS '警告结果';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."id" IS '编号';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."sortie_no" IS '架次号';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."aircraft_id" IS '机号';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."code" IS '警告代码';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."name" IS '警告名称';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."hmc" IS 'hmc';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."describe" IS '警告描述';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."status" IS '状态(1正常)';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."result_content" IS '结果内容';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."attribute1" IS '属性1';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."attribute2" IS '属性2';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."attribute3" IS '属性3';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."attribute4" IS '属性4';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."attribute5" IS '属性5';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."tenant_id" IS '租户号';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."version" IS '乐观锁';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."del_flag" IS '删除标识(1删除 0未删除)';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."create_by" IS '创建人';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."create_time" IS '创建时间';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."update_by" IS '更新人';
+COMMENT ON COLUMN "lqbz"."als_warning_result_t"."update_time" IS '更新时间';