初始版本

master
Bbt 3 weeks ago
commit bd10af974c

38
.gitignore vendored

@ -0,0 +1,38 @@
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store

8
.idea/.gitignore vendored

@ -0,0 +1,8 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
<data-source source="LOCAL" name="syry@192.168.0.10" uuid="0ee0b4c7-fe9c-4552-b987-4a5995d5bf65">
<driver-ref>mysql.8</driver-ref>
<synchronize>true</synchronize>
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
<jdbc-url>jdbc:mysql://192.168.0.10:55306/syry</jdbc-url>
<working-dir>$ProjectFileDir$</working-dir>
</data-source>
</component>
</project>

@ -0,0 +1,484 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EasyCodeTableSetting">
<option name="tableInfoMap">
<map>
<entry key="syry.transit_door_record">
<value>
<TableInfoDTO>
<option name="comment" value="门禁记录表" />
<option name="fullColumn">
<list>
<ColumnInfoDTO>
<option name="comment" value="主键" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="id" />
<option name="type" value="java.lang.Long" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="场所编码" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="placeCode" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="场所名称" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="placeName" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="设备名称" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="deviceName" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="设备编码" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="deviceCode" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="视频监控编码" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="gbsChannelNo" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="安装位置" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="deviceAddress" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="楼层" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="floor" />
<option name="type" value="java.lang.Integer" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="设备ip" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="deviceIp" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="姓名" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="userName" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="联系电话" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="phone" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="证件号码" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="idcard" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="进出方向" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="direction" />
<option name="type" value="java.lang.Integer" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="人脸图" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="personPic" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="记录唯一标识" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="recordId" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="数据来源唯一ID" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="sourceId" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="人脸小图唯一ID" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="personImageId" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="卡号/人脸编码" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="cardNo" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="门禁类型" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="cardType" />
<option name="type" value="java.lang.Integer" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="开门结果" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="openResult" />
<option name="type" value="java.lang.Integer" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="开门时间" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="passTime" />
<option name="type" value="java.lang.Long" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="开门时间(分区)" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="partitionField" />
<option name="type" value="java.util.Date" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="创建时间" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="createTime" />
<option name="type" value="java.util.Date" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="创建者" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="createBy" />
<option name="type" value="java.lang.Integer" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="更新时间" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="updateTime" />
<option name="type" value="java.util.Date" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="更新者" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="updateBy" />
<option name="type" value="java.lang.Integer" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="0:不活跃,1:活跃" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="isActive" />
<option name="type" value="java.lang.Integer" />
</ColumnInfoDTO>
</list>
</option>
<option name="name" value="TransitDoorRecord" />
<option name="preName" value="" />
<option name="saveModelName" value="SY-saverecord" />
<option name="savePackageName" value="com.watu" />
<option name="savePath" value="./src/main/java/com/watu" />
<option name="templateGroupName" value="MybatisPlus" />
</TableInfoDTO>
</value>
</entry>
<entry key="syry.transit_user_record">
<value>
<TableInfoDTO>
<option name="comment" value="人脸记录表" />
<option name="fullColumn">
<list>
<ColumnInfoDTO>
<option name="comment" value="主键" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="id" />
<option name="type" value="java.lang.Long" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="场所编码" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="placeCode" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="场所名称" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="placeName" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="设备编码" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="deviceCode" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="设备名称" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="deviceName" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="通道国标编码" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="gbsChannelNo" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="安装位置" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="deviceAddress" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="楼层" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="floor" />
<option name="type" value="java.lang.Integer" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="设备ip" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="deviceIp" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="全景图" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="globalPic" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="人脸图" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="personPic" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="人体全景图" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="bodyGlobalPic" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="人体小图" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="bodyPic" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="常口库标准照片" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="userStandardPic" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="人员姓名" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="userName" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="档案编号" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="dossierCode" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="证件号码" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="idCard" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="联系电话" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="phone" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="记录唯一标识" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="recordId" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="人车与人体同拍关联ID" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="userVehicleBodyRecordId" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="商汤人脸记录" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="stUserRecordId" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="数据来源唯一ID" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="sourceId" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="人脸小图唯一ID" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="personImageId" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="人脸大图唯一ID" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="globalImageId" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="相似度" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="similarity" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="是否已比对人脸" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="isCompare" />
<option name="type" value="java.lang.Integer" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="进出方向" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="direction" />
<option name="type" value="java.lang.Integer" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="抓拍时间" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="passTime" />
<option name="type" value="java.lang.Long" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="抓拍时间(分区)" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="partitionField" />
<option name="type" value="java.util.Date" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="轴系坐标" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="axis" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="数据来源" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="dataSrc" />
<option name="type" value="java.lang.Integer" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="创建时间" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="createTime" />
<option name="type" value="java.util.Date" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="创建者" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="createBy" />
<option name="type" value="java.lang.Integer" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="更新时间" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="updateTime" />
<option name="type" value="java.util.Date" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="更新者" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="updateBy" />
<option name="type" value="java.lang.Integer" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="0:不活跃,1:活跃" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="isActive" />
<option name="type" value="java.lang.Integer" />
</ColumnInfoDTO>
</list>
</option>
<option name="name" value="TransitUserRecord" />
<option name="preName" value="" />
<option name="saveModelName" value="" />
<option name="savePackageName" value="" />
<option name="savePath" value="" />
<option name="templateGroupName" value="" />
</TableInfoDTO>
</value>
</entry>
</map>
</option>
</component>
</project>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" defaultCharsetForPropertiesFiles="UTF-8">
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
<file url="PROJECT" charset="UTF-8" />
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Kotlin2JvmCompilerArguments">
<option name="jvmTarget" value="17" />
</component>
</project>

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

@ -0,0 +1,76 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="TemplatesSettings">
<option name="templateConfigs">
<TemplateContext>
<option name="generateConfig">
<GenerateConfig>
<option name="annotationType" value="MYBATIS_PLUS3" />
<option name="basePackage" value="com.watu" />
<option name="basePath" value="src/main/java" />
<option name="classNameStrategy" value="camel" />
<option name="encoding" value="UTF-8" />
<option name="extraClassSuffix" value="" />
<option name="ignoreFieldPrefix" value="" />
<option name="ignoreFieldSuffix" value="" />
<option name="ignoreTablePrefix" value="" />
<option name="ignoreTableSuffix" value="" />
<option name="moduleName" value="SY-saverecord" />
<option name="modulePath" value="$PROJECT_DIR$" />
<option name="moduleUIInfoList">
<list>
<ModuleInfoGo>
<option name="basePath" value="src/main/java" />
<option name="configFileName" value="domain.ftl" />
<option name="configName" value="domain" />
<option name="encoding" value="UTF-8" />
<option name="fileName" value="${domain.fileName}" />
<option name="fileNameWithSuffix" value="${domain.fileName}.java" />
<option name="modulePath" value="$PROJECT_DIR$" />
<option name="packageName" value="com.watu.pojo" />
</ModuleInfoGo>
</list>
</option>
<option name="needsComment" value="true" />
<option name="needsModel" value="false" />
<option name="relativePackage" value="pojo" />
<option name="superClass" value="" />
<option name="tableUIInfoList">
<list>
<TableUIInfo>
<option name="className" value="TbLayerInfo" />
<option name="tableName" value="tb_layer_info" />
</TableUIInfo>
<TableUIInfo>
<option name="className" value="TbDeviceInfo" />
<option name="tableName" value="tb_device_info" />
</TableUIInfo>
<TableUIInfo>
<option name="className" value="TbBuildInfo" />
<option name="tableName" value="tb_build_info" />
</TableUIInfo>
<TableUIInfo>
<option name="className" value="TransitDoorRecord" />
<option name="tableName" value="transit_door_record" />
</TableUIInfo>
<TableUIInfo>
<option name="className" value="TransitUserRecord" />
<option name="tableName" value="transit_user_record" />
</TableUIInfo>
<TableUIInfo>
<option name="className" value="TbPlaceInfo" />
<option name="tableName" value="tb_place_info" />
</TableUIInfo>
</list>
</option>
<option name="templatesName" value="custom-model-swagger" />
<option name="useLombokPlugin" value="true" />
</GenerateConfig>
</option>
<option name="moduleName" value="SY-saverecord" />
<option name="projectPath" value="$PROJECT_DIR$" />
<option name="templateName" value="custom-model-swagger" />
</TemplateContext>
</option>
</component>
</project>

@ -0,0 +1,124 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
</item>
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
<preferred-size width="-1" height="20" />
</default-constraints>
</item>
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
</item>
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
</item>
</group>
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

@ -0,0 +1,116 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>spring-boot-starter-parent</artifactId>
<groupId>org.springframework.boot</groupId>
<version>2.3.9.RELEASE</version>
</parent>
<groupId>com.watu</groupId>
<artifactId>SY-saverecord</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.80</version>
</dependency>
<!--引入监听器-->
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.11.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.15.2</version>
</dependency>
<!--mybatis-plus-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus</artifactId>
<version>3.4.1</version>
</dependency>
<!--springboot 整合mybatis-plus-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.4.1</version>
</dependency>
<!--mysql驱动-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.47</version>
</dependency>
<!--web-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!--配置注解依赖-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<!--test-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!--redis依赖-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<version>2.4.0</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.28</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.8.18</version>
</dependency>
<!--本地缓存-->
<dependency>
<groupId>com.github.ben-manes.caffeine</groupId>
<artifactId>caffeine</artifactId>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.6</version>
</dependency>
</dependencies>
</project>

@ -0,0 +1,18 @@
package com.watu;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
/*
* @User $USER
* @Time $DATE $TIME
*
*/
@SpringBootApplication
@EnableScheduling
public class SySaveRecordApplication {
public static void main(String[] args) {
SpringApplication.run(SySaveRecordApplication.class, args);
}
}

@ -0,0 +1,26 @@
package com.watu.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
* @Author
* @Date 2023/12/22 17:46
* @Version 1.0
*/
@Data
@Component
@ConfigurationProperties(prefix = "root")
public class RootConfig {
private String path;
private String nephropathic;
private String base64path;
private String lyypath;
private String ip;
private String port;
private String cron;
private String ftpflag;
private String twoeyflag;
private String scmsflag;
}

@ -0,0 +1,115 @@
package com.watu.config;
import com.alibaba.fastjson.JSON;
import com.watu.service.FileProcessor;
import com.watu.service.TbDeviceInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.stream.Collectors;
/**
* @Author
* @Date 2023/12/22 17:46
* @Version 1.0
*/
@Component
public class SchuedingConfig {
@Autowired
private StringRedisTemplate redisTemplate;
@Autowired
private FileProcessor fileProcessor;
@Autowired
private RootConfig rootConfig;
@Autowired
private TbDeviceInfoService tbDeviceInfoService;
private final ExecutorService executorService = Executors.newFixedThreadPool(10);
private final ConcurrentHashMap<String, Boolean> processedFiles = new ConcurrentHashMap<>();
/**
* @description
* @author
* @param[1] null
* @throws
* @time 2024/10/23 11:03
*
*/
@Scheduled(initialDelay = 1000, fixedRate = 30000)
public void updateDeviceInfo() {
//TODO
String redisKey = "deviceChannels";
List<TbDeviceInfo> list = tbDeviceInfoService.list();
Map<String, String> devicemap = list.stream()
.collect(Collectors.toMap(
TbDeviceInfo::getGbsChannelNo,
JSON::toJSONString,
(existing, replacement) -> {
return existing;
}
));
redisTemplate.opsForHash().putAll(redisKey, devicemap);
System.out.println("定时更新设备信息成功");
}
/**
* @description
* @author
* @param[1] null
* @throws
* @time 2024/10/22 11:30
* bcpbcpmysql
*/
@Scheduled(cron = "0 0/5 * * * ?")
public void checkFaceOrBcp(){
//TODO
System.out.println("定时检测指定文件夹下的人脸或者bcp文件判断是否符合规范解析bcp存入mysql数据库");
File dir = new File(rootConfig.getPath());
List<File> newFiles = new ArrayList<>();
findFilesRecursively(dir, newFiles);
if (!newFiles.isEmpty()) {
executorService.submit(() -> fileProcessor.processV4Files(newFiles));
} else {
// log.info("没有新文件");
}
}
private void findFilesRecursively(File dir, List<File> newFiles) {
File[] files = dir.listFiles();
if (files != null) {
for (File file : files) {
if (file.isDirectory()) {
findFilesRecursively(file, newFiles);
} else {
String filePath = file.getAbsolutePath();
if (file.getName().endsWith(".bcp") || processedFiles.putIfAbsent(filePath, true) == null){
String fileName = file.getName();
String[] parts = fileName.split("_");
if (parts.length > 1) {
if ("WT".equals(parts[1])) {
newFiles.add(file);
}
}
}
}
}
}
}
}

@ -0,0 +1,18 @@
package com.watu.mapper;
import com.watu.pojo.TbBuildInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @author
* @description tb_build_info()Mapper
* @createDate 2024-10-23 11:43:32
* @Entity com.watu.pojo.TbBuildInfo
*/
public interface TbBuildInfoMapper extends BaseMapper<TbBuildInfo> {
}

@ -0,0 +1,18 @@
package com.watu.mapper;
import com.watu.pojo.TbDeviceInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @author
* @description tb_device_info()Mapper
* @createDate 2024-10-23 11:43:32
* @Entity com.watu.pojo.TbDeviceInfo
*/
public interface TbDeviceInfoMapper extends BaseMapper<TbDeviceInfo> {
}

@ -0,0 +1,18 @@
package com.watu.mapper;
import com.watu.pojo.TbLayerInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @author
* @description tb_layer_info()Mapper
* @createDate 2024-10-23 11:43:32
* @Entity com.watu.pojo.TbLayerInfo
*/
public interface TbLayerInfoMapper extends BaseMapper<TbLayerInfo> {
}

@ -0,0 +1,18 @@
package com.watu.mapper;
import com.watu.pojo.TbPlaceInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @author
* @description tb_place_info()Mapper
* @createDate 2024-10-23 11:43:32
* @Entity com.watu.pojo.TbPlaceInfo
*/
public interface TbPlaceInfoMapper extends BaseMapper<TbPlaceInfo> {
}

@ -0,0 +1,18 @@
package com.watu.mapper;
import com.watu.pojo.TransitDoorRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @author
* @description transit_door_record()Mapper
* @createDate 2024-10-23 11:43:32
* @Entity com.watu.pojo.TransitDoorRecord
*/
public interface TransitDoorRecordMapper extends BaseMapper<TransitDoorRecord> {
}

@ -0,0 +1,18 @@
package com.watu.mapper;
import com.watu.pojo.TransitUserRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @author
* @description transit_user_record()Mapper
* @createDate 2024-10-23 11:43:32
* @Entity com.watu.pojo.TransitUserRecord
*/
public interface TransitUserRecordMapper extends BaseMapper<TransitUserRecord> {
}

@ -0,0 +1,119 @@
package com.watu.pojo;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
*
* @TableName tb_build_info
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value="tb_build_info")
public class TbBuildInfo implements Serializable {
/**
*
*/
private Long id;
/**
*
*/
private String placeCode;
/**
*
*/
private String placeName;
/**
*
*/
private String buildingCode;
/**
*
*/
private String buildingName;
/**
*
*/
private Integer buildingType;
/**
*
*/
private BigDecimal longitude;
/**
*
*/
private BigDecimal latitude;
/**
*
*/
private String floorAcreage;
/**
*
*/
private String buildingAddress;
/**
*
*/
private Integer layerNum;
/**
*
*/
private Integer homeNum;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date createTime;
/**
*
*/
private Integer createBy;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date updateTime;
/**
*
*/
private Integer updateBy;
/**
* 0:,1:
*/
private Integer isActive;
/**
*
*/
private String c1;
/**
*
*/
private String c2;
/**
*
*/
private String c3;
/**
*
*/
private String c4;
/**
*
*/
private String c5;
}

@ -0,0 +1,193 @@
package com.watu.pojo;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
*
* @TableName tb_device_info
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value="tb_device_info")
public class TbDeviceInfo implements Serializable {
/**
*
*/
private Long id;
/**
*
*/
private String gbsChannelNo;
/**
*
*/
private String placeCode;
/**
*
*/
private String placeName;
/**
*
*/
private String buildingCode;
/**
*
*/
private String buildingName;
/**
*
*/
private String layerCode;
/**
*
*/
private String layerName;
/**
*
*/
private String deviceCode;
/**
*
*/
private String deviceName;
/**
*
*/
private Integer deviceType;
/**
*
*/
private String deviceAddress;
/**
*
*/
private Integer orientation;
/**
* SN
*/
private String deviceSn;
/**
*
*/
private String deviceBrand;
/**
* ip
*/
private String deviceIp;
/**
*
*/
private Integer devicePort;
/**
* MAC
*/
private String deviceMac;
/**
* IMEI
*/
private String deviceImei;
/**
*
*/
private BigDecimal longitude;
/**
*
*/
private BigDecimal latitude;
/**
* U3D
*/
private BigDecimal u3dLongitude;
/**
* U3D
*/
private BigDecimal u3dLatitude;
/**
*
*/
private String deviceHeight;
/**
*
*/
private String manufactor;
/**
*
*/
private String account;
/**
*
*/
private String password;
/**
*
*/
private Integer direction;
/**
* RTSP
*/
private String rtspAddress;
/**
*
*/
private Integer isDoorwayVideo;
/**
*
*/
private Integer channelNo;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date createTime;
/**
*
*/
private Integer createBy;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date updateTime;
/**
*
*/
private Integer updateBy;
/**
* 0:,1:
*/
private Integer isActive;
/**
*
*/
private String c1;
/**
*
*/
private String c2;
/**
*
*/
private String c3;
/**
*
*/
private String c4;
/**
*
*/
private String c5;
}

@ -0,0 +1,99 @@
package com.watu.pojo;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
/**
*
* @TableName tb_layer_info
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value="tb_layer_info")
public class TbLayerInfo implements Serializable {
/**
*
*/
private Integer id;
/**
*
*/
private String placeCode;
/**
*
*/
private String placeName;
/**
*
*/
private String buildingCode;
/**
*
*/
private String buildingName;
/**
*
*/
private String layerCode;
/**
*
*/
private String layerName;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date createTime;
/**
*
*/
private Integer createBy;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date updateTime;
/**
*
*/
private Integer updateBy;
/**
* 0:,1:
*/
private Integer isActive;
/**
*
*/
private String c1;
/**
*
*/
private String c2;
/**
*
*/
private String c3;
/**
*
*/
private String c4;
/**
*
*/
private String c5;
}

@ -0,0 +1,203 @@
package com.watu.pojo;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
*
* @TableName tb_place_info
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value="tb_place_info")
public class TbPlaceInfo implements Serializable {
/**
*
*/
private Long id;
/**
*
*/
private String placeCode;
/**
*
*/
private String placeName;
/**
*
*/
private String placePic;
/**
*
*/
private String placeMap;
/**
*
*/
private Integer placeCategory;
/**
*
*/
private Integer placeType;
/**
*
*/
private Integer placeNature;
/**
*
*/
private String coversAcreage;
/**
*
*/
private String structureAcreage;
/**
*
*/
private String neighBulitTime;
/**
*
*/
private String activeuseTime;
/**
*
*/
private Integer accessType;
/**
* 绿
*/
private String afforestationRate;
/**
*
*/
private String plotRate;
/**
*
*/
private BigDecimal longitude;
/**
*
*/
private BigDecimal latitude;
/**
*
*/
private String placeAddress;
/**
*
*/
private String provinceCode;
/**
*
*/
private String provinceName;
/**
*
*/
private String cityCode;
/**
*
*/
private String cityName;
/**
*
*/
private String areaCode;
/**
*
*/
private String areaName;
/**
* /
*/
private String streetCode;
/**
* /
*/
private String streetName;
/**
* /
*/
private String blockCode;
/**
* /
*/
private String blockName;
/**
*
*/
private String policeDistrictCode;
/**
*
*/
private String policeName;
/**
*
*/
private String policeNo;
/**
*
*/
private String policePhone;
/**
*
*/
private String policePic;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date createTime;
/**
*
*/
private Integer createBy;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date updateTime;
/**
*
*/
private Integer updateBy;
/**
* 0:,1:
*/
private Integer isActive;
/**
*
*/
private String c1;
/**
*
*/
private String c2;
/**
*
*/
private String c3;
/**
*
*/
private String c4;
/**
*
*/
private String c5;
}

@ -0,0 +1,174 @@
package com.watu.pojo;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
/**
*
* @TableName transit_door_record
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value="transit_door_record")
public class TransitDoorRecord implements Serializable {
/**
*
*/
private Long id;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date partitionField;
/**
*
*/
private String placeCode;
/**
*
*/
private String placeName;
/**
*
*/
private String buildingCode;
/**
*
*/
private String buildingName;
/**
*
*/
private String layerCode;
/**
*
*/
private String layerName;
/**
*
*/
private String deviceName;
/**
*
*/
private String deviceCode;
/**
*
*/
private String gbsChannelNo;
/**
*
*/
private String deviceAddress;
/**
* ip
*/
private String deviceIp;
/**
*
*/
private String userName;
/**
*
*/
private String phone;
/**
*
*/
private String idcard;
/**
*
*/
private Integer direction;
/**
*
*/
private String personPic;
/**
*
*/
private String recordId;
/**
* ID
*/
private String sourceId;
/**
* ID
*/
private String personImageId;
/**
* /
*/
private String cardNo;
/**
*
*/
private String cardType;
/**
*
*/
private String openResult;
/**
*
*/
private Long passTime;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date createTime;
/**
*
*/
private Integer createBy;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date updateTime;
/**
*
*/
private Integer updateBy;
/**
* 0:,1:
*/
private Integer isActive;
/**
*
*/
private String c1;
/**
*
*/
private String c2;
/**
*
*/
private String c3;
/**
*
*/
private String c4;
/**
*
*/
private String c5;
/**
*
*/
private String c6;
}

@ -0,0 +1,194 @@
package com.watu.pojo;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
/**
*
* @TableName transit_user_record
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value="transit_user_record")
public class TransitUserRecord implements Serializable {
/**
*
*/
private Long id;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date partitionField;
/**
*
*/
private String placeCode;
/**
*
*/
private String placeName;
/**
*
*/
private String buildingCode;
/**
*
*/
private String buildingName;
/**
*
*/
private String layerCode;
/**
*
*/
private String layerName;
/**
*
*/
private String deviceCode;
/**
*
*/
private String deviceName;
/**
*
*/
private String gbsChannelNo;
/**
*
*/
private String deviceAddress;
/**
* ip
*/
private String deviceIp;
/**
*
*/
private String globalPic;
/**
*
*/
private String personPic;
/**
*
*/
private String userStandardPic;
/**
*
*/
private String userName;
/**
*
*/
private String dossierCode;
/**
*
*/
private String idCard;
/**
*
*/
private String phone;
/**
*
*/
private String recordId;
/**
* ID
*/
private String userVehicleBodyRecordId;
/**
* ID
*/
private String sourceId;
/**
* ID
*/
private String personImageId;
/**
* ID
*/
private String globalImageId;
/**
*
*/
private String similarity;
/**
*
*/
private Integer isCompare;
/**
*
*/
private Integer direction;
/**
*
*/
private Long passTime;
/**
*
*/
private String axis;
/**
*
*/
private Integer dataSrc;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date createTime;
/**
*
*/
private Integer createBy;
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date updateTime;
/**
*
*/
private Integer updateBy;
/**
* 0:,1:
*/
private Integer isActive;
/**
*
*/
private String c1;
/**
*
*/
private String c2;
/**
*
*/
private String c3;
/**
*
*/
private String c4;
/**
*
*/
private String c5;
}

@ -0,0 +1,182 @@
package com.watu.service;
import com.alibaba.fastjson.JSON;
import com.watu.pojo.TbDeviceInfo;
import com.watu.pojo.TransitDoorRecord;
import com.watu.pojo.TransitUserRecord;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;
import java.io.File;
import java.io.FileInputStream;
import java.nio.charset.StandardCharsets;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
/**
* @Author
* @Date 2024/10/22 11:34
* @Version 1.0
*/
@Log4j2
@Service
public class FileProcessor {
@Autowired
private TransitDoorRecordService transitDoorRecordService;
@Autowired
private TransitUserRecordService transitUserRecordService;
@Autowired
private StringRedisTemplate redisTemplate;
private static final SimpleDateFormat ymd = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
public void processV4Files(List<File> files) {
log.info("检测到4.0版本文件: {}", files.size());
files.forEach(file -> {
try {
String name = file.getName();
FileInputStream inputStream = new FileInputStream(file);
byte[] buffer = new byte[(int) file.length()];
inputStream.read(buffer);
String data = new String(buffer, StandardCharsets.UTF_8);
if (name.contains("DoorEvent")) {
savedoorrecord(data);
}else if (name.contains("FaceCapture")) {
saveuserrecord(data);
}
log.info("处理4.0版本文件成功: {}", file.getName());
} catch (Exception e) {
log.error("处理4.0版本文件失败: {}", file.getName(), e);
}
});
}
/**
* @description
* @author
* @param[1] null
* @throws
* @time 2024/10/22 14:22
*
*/
public void savedoorrecord(String data){
//TODO
TransitDoorRecord transitDoorRecord = new TransitDoorRecord();
String[] split = data.split(",");
long nowtime = System.currentTimeMillis();
//通过bcp的内容填充字段
//根据国标编码查询设备
String deviceinfostring= (String) redisTemplate.opsForHash().get("deviceChannels", split[1]);
TbDeviceInfo deviceInfo = JSON.parseObject(deviceinfostring, TbDeviceInfo.class);
transitDoorRecord.setDeviceCode(deviceInfo.getDeviceCode());
transitDoorRecord.setDeviceName(deviceInfo.getDeviceName());
transitDoorRecord.setPlaceCode(deviceInfo.getPlaceCode());
transitDoorRecord.setPlaceName(deviceInfo.getPlaceName());
transitDoorRecord.setBuildingCode(deviceInfo.getBuildingCode());
transitDoorRecord.setBuildingName(deviceInfo.getBuildingName());
transitDoorRecord.setLayerCode(deviceInfo.getLayerCode());
transitDoorRecord.setLayerName(deviceInfo.getLayerName());
transitDoorRecord.setGbsChannelNo(deviceInfo.getGbsChannelNo());
transitDoorRecord.setDeviceAddress(deviceInfo.getDeviceAddress());
transitDoorRecord.setDeviceIp(deviceInfo.getDeviceIp());
transitDoorRecord.setDirection(deviceInfo.getDirection());
//从报文中获取
Long sendtime = Long.parseLong(split[2]);
transitDoorRecord.setPersonPic(split[14]);
transitDoorRecord.setUserName(split[7]);
transitDoorRecord.setOpenResult(split[12]);
transitDoorRecord.setCardType(split[19]);
transitDoorRecord.setPassTime(sendtime);
transitDoorRecord.setPartitionField(new Date(sendtime * 1000));
transitDoorRecord.setCreateTime(new Date(nowtime));
transitDoorRecord.setUpdateTime(new Date(nowtime));
transitDoorRecord.setIsActive(1);
}
/**
* @description
* @author
* @param[1] null
* @throws
* @time 2024/10/22 14:23
*
*/
public void saveuserrecord(String data){
//TODO
TransitUserRecord transitUserRecord = new TransitUserRecord();
try {
String[] split = data.split(",");
long nowtime = System.currentTimeMillis();
//通过bcp的内容填充字段
//根据国标编码查询设备
String deviceinfostring= (String) redisTemplate.opsForHash().get("deviceChannels", split[1]);
TbDeviceInfo deviceInfo = JSON.parseObject(deviceinfostring, TbDeviceInfo.class);
transitUserRecord.setDeviceCode(deviceInfo.getDeviceCode());
transitUserRecord.setDeviceName(deviceInfo.getDeviceName());
transitUserRecord.setPlaceCode(deviceInfo.getPlaceCode());
transitUserRecord.setPlaceName(deviceInfo.getPlaceName());
transitUserRecord.setBuildingCode(deviceInfo.getBuildingCode());
transitUserRecord.setBuildingName(deviceInfo.getBuildingName());
transitUserRecord.setLayerCode(deviceInfo.getLayerCode());
transitUserRecord.setLayerName(deviceInfo.getLayerName());
transitUserRecord.setGbsChannelNo(deviceInfo.getGbsChannelNo());
transitUserRecord.setDeviceAddress(deviceInfo.getDeviceAddress());
transitUserRecord.setDeviceIp(deviceInfo.getDeviceIp());
transitUserRecord.setDirection(deviceInfo.getDirection());
//从报文中获取
Long sendtime = Long.parseLong(split[2]);
transitUserRecord.setGlobalPic(split[5]);
transitUserRecord.setPersonPic(split[6]);
transitUserRecord.setIdCard(split[7]);
transitUserRecord.setUserName(split[8]);
transitUserRecord.setPassTime(sendtime);
transitUserRecord.setPartitionField(new Date(sendtime * 1000));
transitUserRecord.setCreateTime(new Date(nowtime));
transitUserRecord.setUpdateTime(new Date(nowtime));
transitUserRecord.setIsActive(1);
//添加数据库
transitUserRecordService.save(transitUserRecord);
log.info("处理人脸通行记录成功: {}", data);
} catch (Exception e) {
log.error("处理人脸通行记录失败", e);
}
}
/**
* @description
* @author
* @param[1] null
* @throws
* @time 2024/10/23 14:59
* base64
*/
public String creatpic(String base64){
//TODO
return null;
}
/**
* @description
* @author
* @param[1] null
* @throws
* @time 2024/10/23 15:13
* yyyy-MM-dd HH:mm:ss
*/
public String getDateStr(long sendTime){
Long time = sendTime * 1000;
Date date = new Date(time);
return ymd.format(date);
}
}

@ -0,0 +1,13 @@
package com.watu.service;
import com.watu.pojo.TbBuildInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @author
* @description tb_build_info()Service
* @createDate 2024-10-23 11:43:32
*/
public interface TbBuildInfoService extends IService<TbBuildInfo> {
}

@ -0,0 +1,13 @@
package com.watu.service;
import com.watu.pojo.TbDeviceInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @author
* @description tb_device_info()Service
* @createDate 2024-10-23 11:43:32
*/
public interface TbDeviceInfoService extends IService<TbDeviceInfo> {
}

@ -0,0 +1,13 @@
package com.watu.service;
import com.watu.pojo.TbLayerInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @author
* @description tb_layer_info()Service
* @createDate 2024-10-23 11:43:32
*/
public interface TbLayerInfoService extends IService<TbLayerInfo> {
}

@ -0,0 +1,13 @@
package com.watu.service;
import com.watu.pojo.TbPlaceInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @author
* @description tb_place_info()Service
* @createDate 2024-10-23 11:43:32
*/
public interface TbPlaceInfoService extends IService<TbPlaceInfo> {
}

@ -0,0 +1,13 @@
package com.watu.service;
import com.watu.pojo.TransitDoorRecord;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @author
* @description transit_door_record()Service
* @createDate 2024-10-23 11:43:32
*/
public interface TransitDoorRecordService extends IService<TransitDoorRecord> {
}

@ -0,0 +1,13 @@
package com.watu.service;
import com.watu.pojo.TransitUserRecord;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @author
* @description transit_user_record()Service
* @createDate 2024-10-23 11:43:32
*/
public interface TransitUserRecordService extends IService<TransitUserRecord> {
}

@ -0,0 +1,22 @@
package com.watu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.watu.pojo.TbBuildInfo;
import com.watu.service.TbBuildInfoService;
import com.watu.mapper.TbBuildInfoMapper;
import org.springframework.stereotype.Service;
/**
* @author
* @description tb_build_info()Service
* @createDate 2024-10-23 11:43:32
*/
@Service
public class TbBuildInfoServiceImpl extends ServiceImpl<TbBuildInfoMapper, TbBuildInfo>
implements TbBuildInfoService{
}

@ -0,0 +1,22 @@
package com.watu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.watu.pojo.TbDeviceInfo;
import com.watu.service.TbDeviceInfoService;
import com.watu.mapper.TbDeviceInfoMapper;
import org.springframework.stereotype.Service;
/**
* @author
* @description tb_device_info()Service
* @createDate 2024-10-23 11:43:32
*/
@Service
public class TbDeviceInfoServiceImpl extends ServiceImpl<TbDeviceInfoMapper, TbDeviceInfo>
implements TbDeviceInfoService{
}

@ -0,0 +1,22 @@
package com.watu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.watu.pojo.TbLayerInfo;
import com.watu.service.TbLayerInfoService;
import com.watu.mapper.TbLayerInfoMapper;
import org.springframework.stereotype.Service;
/**
* @author
* @description tb_layer_info()Service
* @createDate 2024-10-23 11:43:32
*/
@Service
public class TbLayerInfoServiceImpl extends ServiceImpl<TbLayerInfoMapper, TbLayerInfo>
implements TbLayerInfoService{
}

@ -0,0 +1,22 @@
package com.watu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.watu.pojo.TbPlaceInfo;
import com.watu.service.TbPlaceInfoService;
import com.watu.mapper.TbPlaceInfoMapper;
import org.springframework.stereotype.Service;
/**
* @author
* @description tb_place_info()Service
* @createDate 2024-10-23 11:43:32
*/
@Service
public class TbPlaceInfoServiceImpl extends ServiceImpl<TbPlaceInfoMapper, TbPlaceInfo>
implements TbPlaceInfoService{
}

@ -0,0 +1,22 @@
package com.watu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.watu.pojo.TransitDoorRecord;
import com.watu.service.TransitDoorRecordService;
import com.watu.mapper.TransitDoorRecordMapper;
import org.springframework.stereotype.Service;
/**
* @author
* @description transit_door_record()Service
* @createDate 2024-10-23 11:43:32
*/
@Service
public class TransitDoorRecordServiceImpl extends ServiceImpl<TransitDoorRecordMapper, TransitDoorRecord>
implements TransitDoorRecordService{
}

@ -0,0 +1,22 @@
package com.watu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.watu.pojo.TransitUserRecord;
import com.watu.service.TransitUserRecordService;
import com.watu.mapper.TransitUserRecordMapper;
import org.springframework.stereotype.Service;
/**
* @author
* @description transit_user_record()Service
* @createDate 2024-10-23 11:43:32
*/
@Service
public class TransitUserRecordServiceImpl extends ServiceImpl<TransitUserRecordMapper, TransitUserRecord>
implements TransitUserRecordService{
}

@ -0,0 +1,39 @@
server:
port: 7987
spring:
profiles:
include: pro
active: test
application:
name: packetpars-service
main:
banner-mode: off
datasource:
driverClassName: com.mysql.jdbc.Driver
# url: jdbc:mysql://1.94.45.26:10007/watu4?serverTimezone=GMT%2B8&useSSL=false&useUnicode=true&characterEncoding=utf8&max_allowed_packet=1048576
# url: jdbc:mysql://127.0.0.1:55306/watu4?serverTimezone=GMT%2B8&useSSL=false&useUnicode=true&characterEncoding=utf8&max_allowed_packet=1048576
# url: jdbc:mysql://192.168.0.11:55306/watu4?serverTimezone=GMT%2B8&useSSL=false&useUnicode=true&characterEncoding=utf8&max_allowed_packet=1048576
url: jdbc:mysql://192.168.0.38:55306/watu4?serverTimezone=GMT%2B8&useSSL=false&useUnicode=true&characterEncoding=utf8&max_allowed_packet=1048576
username: root
password: '!QAZ1qaz'
redis:
database: 15
# host: 1.94.45.26
host: 192.168.0.38
# host: 127.0.0.1
# port: 10052
port: 26379
password: livegbs@2019
mybatis-plus:
type-aliases-package: com.hikvsion.pojo #别名
configuration:
map-underscore-to-camel-case: true #驼峰映射
global-config:
db-config:
id-type: auto #id生成策略
banner: off
logging:
config: classpath:logback-spring.xml
level:
root: info
org.apache.kafka: error

@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<!--彩色日志解析-->
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
<springProperty scope="context" name="LOG_PATH" source="logback.path" />
<springProperty scope="context" name="MAX_HISTORY" source="logback.max-history" defaultValue="7"/>
<!--输出到控制台-->
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
<!-- 设置字符集 -->
<charset>UTF-8</charset>
</encoder>
</appender>
<!--输出到文件-->
<appender name="FILE_INFO" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${LOG_PATH}/info/info.%d{yyyy-MM-dd}.log</fileNamePattern>
<MaxHistory>2</MaxHistory>
<!-- <MaxHistory>${MAX_HISTORY}</MaxHistory>-->
</rollingPolicy>
<encoder>
<pattern>${FILE_LOG_PATTERN}</pattern>
<charset>UTF-8</charset>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>INFO</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<appender name="FILE_ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${LOG_PATH}/error/error.%d{yyyy-MM-dd}.log</fileNamePattern>
<MaxHistory>2</MaxHistory>
<!-- <MaxHistory>${MAX_HISTORY}</MaxHistory>-->
</rollingPolicy>
<encoder>
<pattern>${FILE_LOG_PATTERN}</pattern>
<charset>UTF-8</charset>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>ERROR</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<logger name="com.hikvsion"/>
<logger name="org.springframework" level="warn"/>
<springProfile name="dev">
<root>
<appender-ref ref="CONSOLE"/>
</root>
</springProfile>
<springProfile name="test">
<root>
<appender-ref ref="CONSOLE"/>
<appender-ref ref="FILE_INFO"/>
<appender-ref ref="FILE_ERROR"/>
</root>
</springProfile>
<springProfile name="prod">
<root level="INFO">
<appender-ref ref="FILE_INFO"/>
<appender-ref ref="FILE_ERROR"/>
</root>
</springProfile>
</configuration>

@ -0,0 +1,42 @@
<?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.watu.mapper.TbBuildInfoMapper">
<resultMap id="BaseResultMap" type="com.watu.pojo.TbBuildInfo">
<id property="id" column="id" jdbcType="BIGINT"/>
<result property="placeCode" column="place_code" jdbcType="VARCHAR"/>
<result property="placeName" column="place_name" jdbcType="VARCHAR"/>
<result property="buildingCode" column="building_code" jdbcType="VARCHAR"/>
<result property="buildingName" column="building_name" jdbcType="VARCHAR"/>
<result property="buildingType" column="building_type" jdbcType="TINYINT"/>
<result property="longitude" column="longitude" jdbcType="DECIMAL"/>
<result property="latitude" column="latitude" jdbcType="DECIMAL"/>
<result property="floorAcreage" column="floor_acreage" jdbcType="VARCHAR"/>
<result property="buildingAddress" column="building_address" jdbcType="VARCHAR"/>
<result property="layerNum" column="layer_num" jdbcType="INTEGER"/>
<result property="homeNum" column="home_num" jdbcType="INTEGER"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="createBy" column="create_by" jdbcType="INTEGER"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
<result property="updateBy" column="update_by" jdbcType="INTEGER"/>
<result property="isActive" column="is_active" jdbcType="TINYINT"/>
<result property="c1" column="c1" jdbcType="VARCHAR"/>
<result property="c2" column="c2" jdbcType="VARCHAR"/>
<result property="c3" column="c3" jdbcType="VARCHAR"/>
<result property="c4" column="c4" jdbcType="VARCHAR"/>
<result property="c5" column="c5" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
id,place_code,place_name,
building_code,building_name,building_type,
longitude,latitude,floor_acreage,
building_address,layer_num,home_num,
create_time,create_by,update_time,
update_by,is_active,c1,
c2,c3,c4,
c5
</sql>
</mapper>

@ -0,0 +1,67 @@
<?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.watu.mapper.TbDeviceInfoMapper">
<resultMap id="BaseResultMap" type="com.watu.pojo.TbDeviceInfo">
<id property="id" column="id" jdbcType="BIGINT"/>
<id property="gbsChannelNo" column="gbs_channel_no" jdbcType="VARCHAR"/>
<result property="placeCode" column="place_code" jdbcType="VARCHAR"/>
<result property="placeName" column="place_name" jdbcType="VARCHAR"/>
<result property="buildingCode" column="building_code" jdbcType="VARCHAR"/>
<result property="buildingName" column="building_name" jdbcType="VARCHAR"/>
<result property="layerCode" column="layer_code" jdbcType="VARCHAR"/>
<result property="layerName" column="layer_name" jdbcType="VARCHAR"/>
<result property="deviceCode" column="device_code" jdbcType="VARCHAR"/>
<result property="deviceName" column="device_name" jdbcType="VARCHAR"/>
<result property="deviceType" column="device_type" jdbcType="TINYINT"/>
<result property="deviceAddress" column="device_address" jdbcType="VARCHAR"/>
<result property="orientation" column="orientation" jdbcType="TINYINT"/>
<result property="deviceSn" column="device_sn" jdbcType="VARCHAR"/>
<result property="deviceBrand" column="device_brand" jdbcType="VARCHAR"/>
<result property="deviceIp" column="device_ip" jdbcType="VARCHAR"/>
<result property="devicePort" column="device_port" jdbcType="INTEGER"/>
<result property="deviceMac" column="device_mac" jdbcType="VARCHAR"/>
<result property="deviceImei" column="device_imei" jdbcType="VARCHAR"/>
<result property="longitude" column="longitude" jdbcType="DECIMAL"/>
<result property="latitude" column="latitude" jdbcType="DECIMAL"/>
<result property="u3dLongitude" column="u3d_longitude" jdbcType="DECIMAL"/>
<result property="u3dLatitude" column="u3d_latitude" jdbcType="DECIMAL"/>
<result property="deviceHeight" column="device_height" jdbcType="VARCHAR"/>
<result property="manufactor" column="manufactor" jdbcType="VARCHAR"/>
<result property="account" column="account" jdbcType="VARCHAR"/>
<result property="password" column="password" jdbcType="VARCHAR"/>
<result property="direction" column="direction" jdbcType="TINYINT"/>
<result property="rtspAddress" column="rtsp_address" jdbcType="VARCHAR"/>
<result property="isDoorwayVideo" column="is_doorway_video" jdbcType="TINYINT"/>
<result property="channelNo" column="channel_no" jdbcType="INTEGER"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="createBy" column="create_by" jdbcType="INTEGER"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
<result property="updateBy" column="update_by" jdbcType="INTEGER"/>
<result property="isActive" column="is_active" jdbcType="TINYINT"/>
<result property="c1" column="c1" jdbcType="VARCHAR"/>
<result property="c2" column="c2" jdbcType="VARCHAR"/>
<result property="c3" column="c3" jdbcType="VARCHAR"/>
<result property="c4" column="c4" jdbcType="VARCHAR"/>
<result property="c5" column="c5" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
id,gbs_channel_no,place_code,
place_name,building_code,building_name,
layer_code,layer_name,device_code,
device_name,device_type,device_address,
orientation,device_sn,device_brand,
device_ip,device_port,device_mac,
device_imei,longitude,latitude,
u3d_longitude,u3d_latitude,device_height,
manufactor,account,password,
direction,rtsp_address,is_doorway_video,
channel_no,create_time,create_by,
update_time,update_by,is_active,
c1,c2,c3,
c4,c5
</sql>
</mapper>

@ -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.watu.mapper.TbLayerInfoMapper">
<resultMap id="BaseResultMap" type="com.watu.pojo.TbLayerInfo">
<id property="id" column="id" jdbcType="INTEGER"/>
<result property="placeCode" column="place_code" jdbcType="VARCHAR"/>
<result property="placeName" column="place_name" jdbcType="VARCHAR"/>
<result property="buildingCode" column="building_code" jdbcType="VARCHAR"/>
<result property="buildingName" column="building_name" jdbcType="VARCHAR"/>
<result property="layerCode" column="layer_code" jdbcType="VARCHAR"/>
<result property="layerName" column="layer_name" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="createBy" column="create_by" jdbcType="INTEGER"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
<result property="updateBy" column="update_by" jdbcType="INTEGER"/>
<result property="isActive" column="is_active" jdbcType="TINYINT"/>
<result property="c1" column="c1" jdbcType="VARCHAR"/>
<result property="c2" column="c2" jdbcType="VARCHAR"/>
<result property="c3" column="c3" jdbcType="VARCHAR"/>
<result property="c4" column="c4" jdbcType="VARCHAR"/>
<result property="c5" column="c5" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
id,place_code,place_name,
building_code,building_name,layer_code,
layer_name,create_time,create_by,
update_time,update_by,is_active,
c1,c2,c3,
c4,c5
</sql>
</mapper>

@ -0,0 +1,70 @@
<?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.watu.mapper.TbPlaceInfoMapper">
<resultMap id="BaseResultMap" type="com.watu.pojo.TbPlaceInfo">
<id property="id" column="id" jdbcType="BIGINT"/>
<result property="placeCode" column="place_code" jdbcType="VARCHAR"/>
<result property="placeName" column="place_name" jdbcType="VARCHAR"/>
<result property="placePic" column="place_pic" jdbcType="VARCHAR"/>
<result property="placeMap" column="place_map" jdbcType="VARCHAR"/>
<result property="placeCategory" column="place_category" jdbcType="TINYINT"/>
<result property="placeType" column="place_type" jdbcType="TINYINT"/>
<result property="placeNature" column="place_nature" jdbcType="TINYINT"/>
<result property="coversAcreage" column="covers_acreage" jdbcType="VARCHAR"/>
<result property="structureAcreage" column="structure_acreage" jdbcType="VARCHAR"/>
<result property="neighBulitTime" column="neigh_bulit_time" jdbcType="VARCHAR"/>
<result property="activeuseTime" column="activeuse_time" jdbcType="VARCHAR"/>
<result property="accessType" column="access_type" jdbcType="TINYINT"/>
<result property="afforestationRate" column="afforestation_rate" jdbcType="VARCHAR"/>
<result property="plotRate" column="plot_rate" jdbcType="VARCHAR"/>
<result property="longitude" column="longitude" jdbcType="DECIMAL"/>
<result property="latitude" column="latitude" jdbcType="DECIMAL"/>
<result property="placeAddress" column="place_address" jdbcType="VARCHAR"/>
<result property="provinceCode" column="province_code" jdbcType="VARCHAR"/>
<result property="provinceName" column="province_name" jdbcType="VARCHAR"/>
<result property="cityCode" column="city_code" jdbcType="VARCHAR"/>
<result property="cityName" column="city_name" jdbcType="VARCHAR"/>
<result property="areaCode" column="area_code" jdbcType="VARCHAR"/>
<result property="areaName" column="area_name" jdbcType="VARCHAR"/>
<result property="streetCode" column="street_code" jdbcType="VARCHAR"/>
<result property="streetName" column="street_name" jdbcType="VARCHAR"/>
<result property="blockCode" column="block_code" jdbcType="VARCHAR"/>
<result property="blockName" column="block_name" jdbcType="VARCHAR"/>
<result property="policeDistrictCode" column="police_district_code" jdbcType="VARCHAR"/>
<result property="policeName" column="police_name" jdbcType="VARCHAR"/>
<result property="policeNo" column="police_no" jdbcType="VARCHAR"/>
<result property="policePhone" column="police_phone" jdbcType="VARCHAR"/>
<result property="policePic" column="police_pic" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="createBy" column="create_by" jdbcType="INTEGER"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
<result property="updateBy" column="update_by" jdbcType="INTEGER"/>
<result property="isActive" column="is_active" jdbcType="TINYINT"/>
<result property="c1" column="c1" jdbcType="VARCHAR"/>
<result property="c2" column="c2" jdbcType="VARCHAR"/>
<result property="c3" column="c3" jdbcType="VARCHAR"/>
<result property="c4" column="c4" jdbcType="VARCHAR"/>
<result property="c5" column="c5" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
id,place_code,place_name,
place_pic,place_map,place_category,
place_type,place_nature,covers_acreage,
structure_acreage,neigh_bulit_time,activeuse_time,
access_type,afforestation_rate,plot_rate,
longitude,latitude,place_address,
province_code,province_name,city_code,
city_name,area_code,area_name,
street_code,street_name,block_code,
block_name,police_district_code,police_name,
police_no,police_phone,police_pic,
create_time,create_by,update_time,
update_by,is_active,c1,
c2,c3,c4,
c5
</sql>
</mapper>

@ -0,0 +1,60 @@
<?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.watu.mapper.TransitDoorRecordMapper">
<resultMap id="BaseResultMap" type="com.watu.pojo.TransitDoorRecord">
<id property="id" column="id" jdbcType="BIGINT"/>
<id property="partitionField" column="partition_field" jdbcType="TIMESTAMP"/>
<result property="placeCode" column="place_code" jdbcType="VARCHAR"/>
<result property="placeName" column="place_name" jdbcType="VARCHAR"/>
<result property="buildingCode" column="building_code" jdbcType="VARCHAR"/>
<result property="buildingName" column="building_name" jdbcType="VARCHAR"/>
<result property="layerCode" column="layer_code" jdbcType="VARCHAR"/>
<result property="layerName" column="layer_name" jdbcType="VARCHAR"/>
<result property="deviceName" column="device_name" jdbcType="VARCHAR"/>
<result property="deviceCode" column="device_code" jdbcType="VARCHAR"/>
<result property="gbsChannelNo" column="gbs_channel_no" jdbcType="VARCHAR"/>
<result property="deviceAddress" column="device_address" jdbcType="VARCHAR"/>
<result property="deviceIp" column="device_ip" jdbcType="VARCHAR"/>
<result property="userName" column="user_name" jdbcType="VARCHAR"/>
<result property="phone" column="phone" jdbcType="VARCHAR"/>
<result property="idcard" column="idcard" jdbcType="VARCHAR"/>
<result property="direction" column="direction" jdbcType="TINYINT"/>
<result property="personPic" column="person_pic" jdbcType="VARCHAR"/>
<result property="recordId" column="record_id" jdbcType="VARCHAR"/>
<result property="sourceId" column="source_id" jdbcType="VARCHAR"/>
<result property="personImageId" column="person_image_id" jdbcType="VARCHAR"/>
<result property="cardNo" column="card_no" jdbcType="VARCHAR"/>
<result property="cardType" column="card_type" jdbcType="TINYINT"/>
<result property="openResult" column="open_result" jdbcType="TINYINT"/>
<result property="passTime" column="pass_time" jdbcType="BIGINT"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="createBy" column="create_by" jdbcType="INTEGER"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
<result property="updateBy" column="update_by" jdbcType="INTEGER"/>
<result property="isActive" column="is_active" jdbcType="TINYINT"/>
<result property="c1" column="c1" jdbcType="VARCHAR"/>
<result property="c2" column="c2" jdbcType="VARCHAR"/>
<result property="c3" column="c3" jdbcType="VARCHAR"/>
<result property="c4" column="c4" jdbcType="VARCHAR"/>
<result property="c5" column="c5" jdbcType="VARCHAR"/>
<result property="c6" column="c6" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
id,partition_field,place_code,
place_name,building_code,building_name,
layer_code,layer_name,device_name,
device_code,gbs_channel_no,device_address,
device_ip,user_name,phone,
idcard,direction,person_pic,
record_id,source_id,person_image_id,
card_no,card_type,open_result,
pass_time,create_time,create_by,
update_time,update_by,is_active,
c1,c2,c3,
c4,c5,c6
</sql>
</mapper>

@ -0,0 +1,67 @@
<?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.watu.mapper.TransitUserRecordMapper">
<resultMap id="BaseResultMap" type="com.watu.pojo.TransitUserRecord">
<id property="id" column="id" jdbcType="BIGINT"/>
<id property="partitionField" column="partition_field" jdbcType="TIMESTAMP"/>
<result property="placeCode" column="place_code" jdbcType="VARCHAR"/>
<result property="placeName" column="place_name" jdbcType="VARCHAR"/>
<result property="buildingCode" column="building_code" jdbcType="VARCHAR"/>
<result property="buildingName" column="building_name" jdbcType="VARCHAR"/>
<result property="layerCode" column="layer_code" jdbcType="VARCHAR"/>
<result property="layerName" column="layer_name" jdbcType="VARCHAR"/>
<result property="deviceCode" column="device_code" jdbcType="VARCHAR"/>
<result property="deviceName" column="device_name" jdbcType="VARCHAR"/>
<result property="gbsChannelNo" column="gbs_channel_no" jdbcType="VARCHAR"/>
<result property="deviceAddress" column="device_address" jdbcType="VARCHAR"/>
<result property="deviceIp" column="device_ip" jdbcType="VARCHAR"/>
<result property="globalPic" column="global_pic" jdbcType="VARCHAR"/>
<result property="personPic" column="person_pic" jdbcType="VARCHAR"/>
<result property="userStandardPic" column="user_standard_pic" jdbcType="VARCHAR"/>
<result property="userName" column="user_name" jdbcType="VARCHAR"/>
<result property="dossierCode" column="dossier_code" jdbcType="VARCHAR"/>
<result property="idCard" column="id_card" jdbcType="VARCHAR"/>
<result property="phone" column="phone" jdbcType="VARCHAR"/>
<result property="recordId" column="record_id" jdbcType="VARCHAR"/>
<result property="userVehicleBodyRecordId" column="user_vehicle_body_record_id" jdbcType="VARCHAR"/>
<result property="sourceId" column="source_id" jdbcType="VARCHAR"/>
<result property="personImageId" column="person_image_id" jdbcType="VARCHAR"/>
<result property="globalImageId" column="global_image_id" jdbcType="VARCHAR"/>
<result property="similarity" column="similarity" jdbcType="VARCHAR"/>
<result property="isCompare" column="is_compare" jdbcType="TINYINT"/>
<result property="direction" column="direction" jdbcType="TINYINT"/>
<result property="passTime" column="pass_time" jdbcType="BIGINT"/>
<result property="axis" column="axis" jdbcType="VARCHAR"/>
<result property="dataSrc" column="data_src" jdbcType="TINYINT"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="createBy" column="create_by" jdbcType="INTEGER"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
<result property="updateBy" column="update_by" jdbcType="INTEGER"/>
<result property="isActive" column="is_active" jdbcType="TINYINT"/>
<result property="c1" column="c1" jdbcType="VARCHAR"/>
<result property="c2" column="c2" jdbcType="VARCHAR"/>
<result property="c3" column="c3" jdbcType="VARCHAR"/>
<result property="c4" column="c4" jdbcType="VARCHAR"/>
<result property="c5" column="c5" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
id,partition_field,place_code,
place_name,building_code,building_name,
layer_code,layer_name,device_code,
device_name,gbs_channel_no,device_address,
device_ip,global_pic,person_pic,
user_standard_pic,user_name,dossier_code,
id_card,phone,record_id,
user_vehicle_body_record_id,source_id,person_image_id,
global_image_id,similarity,is_compare,
direction,pass_time,axis,
data_src,create_time,create_by,
update_time,update_by,is_active,
c1,c2,c3,
c4,c5
</sql>
</mapper>
Loading…
Cancel
Save