Commit f888a5d2 by 杨林龙

添加雷达表项目文件

1 parent a463e085
......@@ -110,14 +110,51 @@
</configuration>
</plugin>
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-archetype-plugin</artifactId>
<version>3.2.0</version>
</plugin>
<!--mybatis 逆向生成插件-->
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.7</version>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.7</version>
</dependency>
<dependency>
<groupId>tk.mybatis</groupId>
<artifactId>mapper</artifactId>
<version>3.4.1</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>Generate MyBatis Artifacts</id>
<!-- <phase>package</phase>-->
<phase>deploy</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<!--允许移动生成的文件 -->
<verbose>true</verbose>
<!-- 是否覆盖 -->
<overwrite>false</overwrite>
<!-- 自动生成的配置 -->
<configurationFile>src/main/resources/generatorConfig.xml</configurationFile>
</configuration>
</plugin>
</plugins>
</build>
</project>
package cn.com.glsx.radaraccess.modules.entity;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
@Data
@Table(name = "scrm_charge_radar_info")
public class ChargeRadarInfo implements Serializable {
/**
* id
*/
@Id
private Integer id;
/**
* 雷达编号
*/
@Column(name = "radar_number")
private String radarNumber;
/**
* 卡信息
*/
@Column(name = "card_number")
private String cardNumber;
/**
* 设备状态 0-未激活;1-在线;2-离线;
*/
@Column(name = "device_status")
private Byte deviceStatus;
/**
* 绑定状态 0-未绑定;1-绑定;
*/
@Column(name = "binding_status")
private Byte bindingStatus;
/**
* 入库时间
*/
@Column(name = "increase_time")
private Date increaseTime;
/**
* 创建人
*/
@Column(name = "created_by")
private Integer createdBy;
/**
* 创建时间
*/
@Column(name = "created_time")
private Date createdTime;
/**
* 更新人
*/
@Column(name = "updated_by")
private Integer updatedBy;
/**
* 更新时间
*/
@Column(name = "updated_time")
private Date updatedTime;
/**
* 是否删除:0=正常,-1=删除
*/
@Column(name = "del_flag")
private Byte delFlag;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package cn.com.glsx.radaraccess.modules.mapper;
import cn.com.glsx.radaraccess.modules.entity.ChargeRadarInfo;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ChargeRadarInfoMapper extends CommonBaseMapper<ChargeRadarInfo> {
}
\ No newline at end of file
......@@ -10,6 +10,111 @@ import lombok.Data;
@JsonIgnoreProperties(ignoreUnknown = true)
public class RadarBO {
/**
* 业务数据类型 1设备上报数据
*/
private Integer businesstype;
/**
* 消息ID
*/
private Long xdsmokelogid;
/**
* 设备ID
*/
private Long smokeid;
/**
* 事件类型(参考事件类型3.1)
*/
private Integer messagetype;
/**
* 设备类型(YG:烟感)其他设备类型查看3.2
*/
private String devicetype;
/**
* 状态描述
*/
private String statedesc;
/**
* 设备号唯一编码
*/
private String mac;
/**
* 设备卡号ICCID
*/
private String ccid;
/**
* 设备卡IMSI
*/
private String imsi;
/**
* 设备网络信号值(越大代表信号越好)
*/
private Integer dsignal;
/**
* 电池是否低压 1 表是正常,0 表示低压
*/
private Integer batterys;
/**
* 电压具体值 单位mV
*/
private Integer voltagevalue;
/**
* 监测温度,单位°C
*/
private Integer tvalue;
/**
* 监测单位
*/
private String dataunit;
/**
* 监测值
*/
private String data;
/**
* 事件代码
*/
private String bjcode;
/**
* 设备IMEI号
*/
private String Imei;
/**
* 防区号
*/
private String ccc;
/**
* 防拆状态 0 闭合 1打开
*/
private Integer tamperstatus;
/**
* 精确到毫秒
*/
private Long createtime;
/**
* 保留
*/
private Integer cstatus;
/**
* 静止驻留状态 0无静止驻留 1有静止驻留
*/
private Integer jzzlsta;
......
......@@ -10,8 +10,8 @@ import cn.com.glsx.radaraccess.modules.model.RadarBO;
@Service
public class RadarService {
public Integer saveRadar(RadarBO radarBO) {
return 0;
}
public Integer saveRadar(RadarBO radarBO) {
return 0;
}
}
\ No newline at end of file
......@@ -37,7 +37,7 @@
</commentGenerator>
<!-- jdbc连接-->
<jdbcConnection driverClass="com.mysql.cj.jdbc.Driver"
connectionURL="jdbc:mysql://192.168.3.227:3306/platform_charging?serverTimeZone=Shanghai&amp;useUnicode=true&amp;characterEncoding=utf8&amp;useSSL=false"
connectionURL="jdbc:mysql://192.168.3.227:3306/scrm_marketing?serverTimeZone=Shanghai&amp;useUnicode=true&amp;characterEncoding=utf8&amp;useSSL=false"
userId="dev_admin"
password="1f7e1ed2">
<!--防止生成其他库同名表-->
......@@ -69,7 +69,7 @@
</javaClientGenerator>
<!-- table可以有多个,每个数据库中的表都可以写一个table,tableName表示要匹配的数据库表,也可以在tableName属性中通过使用%通配符来匹配所有数据库表,只有匹配的表才会自动生成文件 enableSelectByPrimaryKey相应的配置表示是否生成相应的接口 -->
<table tableName="t_storage" domainObjectName="Storage" enableCountByExample="false"
<table tableName="scrm_charge_radar_info" domainObjectName="ChargeRadarInfo" enableCountByExample="false"
enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
selectByExampleQueryId="false"/>
</context>
......
<?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="cn.com.glsx.radaraccess.modules.mapper.ChargeRadarInfoMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.radaraccess.modules.entity.ChargeRadarInfo">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="radar_number" jdbcType="VARCHAR" property="radarNumber" />
<result column="card_number" jdbcType="VARCHAR" property="cardNumber" />
<result column="device_status" jdbcType="TINYINT" property="deviceStatus" />
<result column="binding_status" jdbcType="TINYINT" property="bindingStatus" />
<result column="increase_time" jdbcType="TIMESTAMP" property="increaseTime" />
<result column="created_by" jdbcType="INTEGER" property="createdBy" />
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime" />
<result column="updated_by" jdbcType="INTEGER" property="updatedBy" />
<result column="updated_time" jdbcType="TIMESTAMP" property="updatedTime" />
<result column="del_flag" jdbcType="TINYINT" property="delFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, radar_number, card_number, device_status, binding_status, increase_time, created_by,
created_time, updated_by, updated_time, del_flag
</sql>
</mapper>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!