2021与蓝度共同重构项目,服务端
liuhaonan
2022-09-28 490c65538d0c7bbffbc8bbecae3aa43b8fafc2e3
changes
已修改3个文件
28 ■■■■■ 文件已修改
dao/src/main/java/com/sandu/ximon/dao/domain/LightReportError.java 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
dao/src/main/java/com/sandu/ximon/dao/mapper/LightReportErrorMapper.java 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
dao/src/main/resources/mapper/LightReportErrorMapper.xml 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
dao/src/main/java/com/sandu/ximon/dao/domain/LightReportError.java
@@ -6,10 +6,11 @@
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;
/**
 * 灯上报故障码表
 * 单灯故障数据列表
 * @TableName light_report_error
 */
@TableName(value ="light_report_error")
@@ -22,9 +23,14 @@
    private Long lightReportErrorId;
    /**
     * 设备mac
     * mac
     */
    private String deviceCode;
    /**
     * 灯头地址
     */
    private String lightAddress;
    /**
     * 故障码
@@ -32,7 +38,7 @@
    private Integer errorCode;
    /**
     * 创建时间
     *
     */
    private LocalDateTime createTime;
dao/src/main/java/com/sandu/ximon/dao/mapper/LightReportErrorMapper.java
@@ -1,13 +1,16 @@
package com.sandu.ximon.dao.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sandu.ximon.dao.bo.LightReportErrorBo;
import com.sandu.ximon.dao.domain.LightReportError;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
 * @author Administrator
 * @description 针对表【light_report_error(单灯故障数据列表)】的数据库操作Mapper
 * @createDate 2022-09-28 14:58:29
 * @Entity com.sandu.ximon.dao.domain.LightReportError
 */
@Mapper
dao/src/main/resources/mapper/LightReportErrorMapper.xml
@@ -5,11 +5,12 @@
<mapper namespace="com.sandu.ximon.dao.mapper.LightReportErrorMapper">
    <resultMap id="BaseResultMap" type="com.sandu.ximon.dao.domain.LightReportError">
        <id property="lightReportErrorId" column="light_report_error_id" jdbcType="BIGINT"/>
        <result property="deviceCode" column="device_code" jdbcType="VARCHAR"/>
        <result property="errorCode" column="error_code" jdbcType="INTEGER"/>
        <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
        <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
            <id property="lightReportErrorId" column="light_report_error_id" jdbcType="BIGINT"/>
            <result property="deviceCode" column="device_code" jdbcType="VARCHAR"/>
            <result property="lightAddress" column="light_address" jdbcType="VARCHAR"/>
            <result property="errorCode" column="error_code" jdbcType="INTEGER"/>
            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
            <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
    </resultMap>
    <resultMap id="listReportError" type="com.sandu.ximon.dao.bo.LightReportErrorBo" extends="BaseResultMap">
        <result property="poleName" column="pole_name" jdbcType="INTEGER"/>