Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-radaraccess-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f888a5d2
authored
Feb 05, 2024
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加雷达表项目文件
1 parent
a463e085
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
266 additions
and
9 deletions
platform-radaraccess/pom.xml
platform-radaraccess/src/main/java/cn/com/glsx/radaraccess/modules/entity/ChargeRadarInfo.java
platform-radaraccess/src/main/java/cn/com/glsx/radaraccess/modules/mapper/ChargeRadarInfoMapper.java
platform-radaraccess/src/main/java/cn/com/glsx/radaraccess/modules/model/RadarBO.java
platform-radaraccess/src/main/java/cn/com/glsx/radaraccess/modules/service/RadarService.java
platform-radaraccess/src/main/resources/generatorConfig.xml
platform-radaraccess/src/main/resources/mapper/ChargeRadarInfoMapper.xml
platform-radaraccess/pom.xml
View file @
f888a5d
...
@@ -110,14 +110,51 @@
...
@@ -110,14 +110,51 @@
</configuration>
</configuration>
</plugin>
</plugin>
<plugin>
<plugin>
<groupId>
org.mybatis.generator
</groupId>
<artifactId>
mybatis-generator-maven-plugin
</artifactId>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-archetype-plugin
</artifactId>
<artifactId>
maven-archetype-plugin
</artifactId>
<version>
3.2.0
</version>
<version>
3.2.0
</version>
</plugin>
</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>
</plugins>
</build>
</build>
</project>
</project>
platform-radaraccess/src/main/java/cn/com/glsx/radaraccess/modules/entity/ChargeRadarInfo.java
0 → 100644
View file @
f888a5d
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
\ No newline at end of file
platform-radaraccess/src/main/java/cn/com/glsx/radaraccess/modules/mapper/ChargeRadarInfoMapper.java
0 → 100644
View file @
f888a5d
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
\ No newline at end of file
platform-radaraccess/src/main/java/cn/com/glsx/radaraccess/modules/model/RadarBO.java
View file @
f888a5d
...
@@ -10,6 +10,111 @@ import lombok.Data;
...
@@ -10,6 +10,111 @@ import lombok.Data;
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
RadarBO
{
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有静止驻留
* 静止驻留状态 0无静止驻留 1有静止驻留
*/
*/
private
Integer
jzzlsta
;
private
Integer
jzzlsta
;
...
...
platform-radaraccess/src/main/java/cn/com/glsx/radaraccess/modules/service/RadarService.java
View file @
f888a5d
...
@@ -10,8 +10,8 @@ import cn.com.glsx.radaraccess.modules.model.RadarBO;
...
@@ -10,8 +10,8 @@ import cn.com.glsx.radaraccess.modules.model.RadarBO;
@Service
@Service
public
class
RadarService
{
public
class
RadarService
{
public
Integer
saveRadar
(
RadarBO
radarBO
)
{
public
Integer
saveRadar
(
RadarBO
radarBO
)
{
return
0
;
return
0
;
}
}
}
}
\ No newline at end of file
\ No newline at end of file
platform-radaraccess/src/main/resources/generatorConfig.xml
View file @
f888a5d
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
</commentGenerator>
</commentGenerator>
<!-- jdbc连接-->
<!-- jdbc连接-->
<jdbcConnection
driverClass=
"com.mysql.cj.jdbc.Driver"
<jdbcConnection
driverClass=
"com.mysql.cj.jdbc.Driver"
connectionURL=
"jdbc:mysql://192.168.3.227:3306/
platform_charg
ing?serverTimeZone=Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false"
connectionURL=
"jdbc:mysql://192.168.3.227:3306/
scrm_market
ing?serverTimeZone=Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false"
userId=
"dev_admin"
userId=
"dev_admin"
password=
"1f7e1ed2"
>
password=
"1f7e1ed2"
>
<!--防止生成其他库同名表-->
<!--防止生成其他库同名表-->
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
</javaClientGenerator>
</javaClientGenerator>
<!-- table可以有多个,每个数据库中的表都可以写一个table,tableName表示要匹配的数据库表,也可以在tableName属性中通过使用%通配符来匹配所有数据库表,只有匹配的表才会自动生成文件 enableSelectByPrimaryKey相应的配置表示是否生成相应的接口 -->
<!-- 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"
enableUpdateByExample=
"false"
enableDeleteByExample=
"false"
enableSelectByExample=
"false"
selectByExampleQueryId=
"false"
/>
selectByExampleQueryId=
"false"
/>
</context>
</context>
...
...
platform-radaraccess/src/main/resources/mapper/ChargeRadarInfoMapper.xml
0 → 100644
View file @
f888a5d
<?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
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment