From 33e5d4cbe1dcf35590b0a149ddcfed5134dae051 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期五, 04 七月 2025 17:28:50 +0800 Subject: [PATCH] 2025.7.4 1. 补充遗漏的新增溯源消息实体 --- src/main/kotlin/com/flightfeather/uav/domain/entity/SourceTraceMsg.java | 159 +++++++++++++++++++++++++++++++++++++++ src/main/kotlin/com/flightfeather/uav/domain/mapper/SourceTraceMsgMapper.kt | 8 ++ src/main/resources/mapper/SourceTraceMsgMapper.xml | 35 ++++++++ 3 files changed, 202 insertions(+), 0 deletions(-) diff --git a/src/main/kotlin/com/flightfeather/uav/domain/entity/SourceTraceMsg.java b/src/main/kotlin/com/flightfeather/uav/domain/entity/SourceTraceMsg.java new file mode 100644 index 0000000..1d364c5 --- /dev/null +++ b/src/main/kotlin/com/flightfeather/uav/domain/entity/SourceTraceMsg.java @@ -0,0 +1,159 @@ +package com.flightfeather.uav.domain.entity; + +import java.util.Date; +import javax.persistence.*; + +@Table(name = "source_trace_msg") +public class SourceTraceMsg { + @Id + private Integer id; + + @Column(name = "device_code") + private String deviceCode; + + @Column(name = "factor_name") + private String factorName; + + @Column(name = "exception_type") + private Integer exceptionType; + + @Column(name = "start_time") + private Date startTime; + + @Column(name = "end_time") + private Date endTime; + + @Column(name = "msg_type") + private Integer msgType; + + @Column(name = "create_time") + private Date createTime; + + private String content; + + /** + * @return id + */ + public Integer getId() { + return id; + } + + /** + * @param id + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * @return device_code + */ + public String getDeviceCode() { + return deviceCode; + } + + /** + * @param deviceCode + */ + public void setDeviceCode(String deviceCode) { + this.deviceCode = deviceCode == null ? null : deviceCode.trim(); + } + + /** + * @return factor_name + */ + public String getFactorName() { + return factorName; + } + + /** + * @param factorName + */ + public void setFactorName(String factorName) { + this.factorName = factorName == null ? null : factorName.trim(); + } + + /** + * @return exception_type + */ + public Integer getExceptionType() { + return exceptionType; + } + + /** + * @param exceptionType + */ + public void setExceptionType(Integer exceptionType) { + this.exceptionType = exceptionType; + } + + /** + * @return start_time + */ + public Date getStartTime() { + return startTime; + } + + /** + * @param startTime + */ + public void setStartTime(Date startTime) { + this.startTime = startTime; + } + + /** + * @return end_time + */ + public Date getEndTime() { + return endTime; + } + + /** + * @param endTime + */ + public void setEndTime(Date endTime) { + this.endTime = endTime; + } + + /** + * @return msg_type + */ + public Integer getMsgType() { + return msgType; + } + + /** + * @param msgType + */ + public void setMsgType(Integer msgType) { + this.msgType = msgType; + } + + /** + * @return create_time + */ + public Date getCreateTime() { + return createTime; + } + + /** + * @param createTime + */ + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + /** + * @return content + */ + public String getContent() { + return content; + } + + /** + * @param content + */ + public void setContent(String content) { + this.content = content == null ? null : content.trim(); + } +} \ No newline at end of file diff --git a/src/main/kotlin/com/flightfeather/uav/domain/mapper/SourceTraceMsgMapper.kt b/src/main/kotlin/com/flightfeather/uav/domain/mapper/SourceTraceMsgMapper.kt new file mode 100644 index 0000000..0916cf9 --- /dev/null +++ b/src/main/kotlin/com/flightfeather/uav/domain/mapper/SourceTraceMsgMapper.kt @@ -0,0 +1,8 @@ +package com.flightfeather.uav.domain.mapper + +import com.flightfeather.uav.domain.MyMapper +import com.flightfeather.uav.domain.entity.SourceTraceMsg +import org.apache.ibatis.annotations.Mapper + +@Mapper +interface SourceTraceMsgMapper : MyMapper<SourceTraceMsg?> \ No newline at end of file diff --git a/src/main/resources/mapper/SourceTraceMsgMapper.xml b/src/main/resources/mapper/SourceTraceMsgMapper.xml new file mode 100644 index 0000000..5ac4d84 --- /dev/null +++ b/src/main/resources/mapper/SourceTraceMsgMapper.xml @@ -0,0 +1,35 @@ +<?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.flightfeather.uav.domain.mapper.SourceTraceMsgMapper"> + <resultMap id="BaseResultMap" type="com.flightfeather.uav.domain.entity.SourceTraceMsg"> + <!-- + WARNING - @mbg.generated + --> + <id column="id" jdbcType="INTEGER" property="id" /> + <result column="device_code" jdbcType="VARCHAR" property="deviceCode" /> + <result column="factor_name" jdbcType="VARCHAR" property="factorName" /> + <result column="exception_type" jdbcType="INTEGER" property="exceptionType" /> + <result column="start_time" jdbcType="TIMESTAMP" property="startTime" /> + <result column="end_time" jdbcType="TIMESTAMP" property="endTime" /> + <result column="msg_type" jdbcType="INTEGER" property="msgType" /> + <result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> + </resultMap> + <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.flightfeather.uav.domain.entity.SourceTraceMsg"> + <!-- + WARNING - @mbg.generated + --> + <result column="content" jdbcType="LONGVARCHAR" property="content" /> + </resultMap> + <sql id="Base_Column_List"> + <!-- + WARNING - @mbg.generated + --> + id, device_code, factor_name, exception_type, start_time, end_time, msg_type, create_time + </sql> + <sql id="Blob_Column_List"> + <!-- + WARNING - @mbg.generated + --> + content + </sql> +</mapper> \ No newline at end of file -- Gitblit v1.9.3