Commit 17873d9f authored by 军师中郎将's avatar 军师中郎将

target 文件删除 及 地图中心点位置调整

parent 15a4b8d8
...@@ -6,7 +6,7 @@ spring: ...@@ -6,7 +6,7 @@ spring:
druid: druid:
# 主库数据源 # 主库数据源
master: master:
url: jdbc:mysql://localhost:3306/gas_progress_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 url: jdbc:mysql://61.240.141.137:3306/gas_progress_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root username: root
password: ME3A3aWytZKASGJn password: ME3A3aWytZKASGJn
# 从库数据源 # 从库数据源
......
...@@ -26,7 +26,7 @@ spring: ...@@ -26,7 +26,7 @@ spring:
# 国际化资源文件路径 # 国际化资源文件路径
basename: i18n/messages basename: i18n/messages
profiles: profiles:
active: test active: prd
# 文件上传 # 文件上传
servlet: servlet:
multipart: multipart:
......
restart.include.json=/com.alibaba.fastjson.*.jar
\ No newline at end of file
# 数据源配置
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
druid:
# 主库数据源
master:
url: jdbc:mysql://27.128.233.145:33060/gas_progress_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: gas_progress_db
password: RMtiC6YCzdLxeJJL
# 从库数据源
slave:
# 从数据源开关/默认关闭
enabled: false
url:
username:
password:
# 初始连接数
initialSize: 5
# 最小连接池数量
minIdle: 10
# 最大连接池数量
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
# 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis: 900000
# 配置检测连接是否有效
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
webStatFilter:
enabled: true
statViewServlet:
enabled: true
# 设置白名单,不填则允许所有访问
allow:
url-pattern: /druid/*
# 控制台管理用户名和密码
login-username: ruoyi
login-password: 123456
filter:
stat:
enabled: true
# 慢SQL记录
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: true
wall:
config:
multi-statement-allow: true
# redis 配置
redis:
# 地址
host: 27.128.233.145
# 端口,默认为6379
port: 6379
# 数据库索引
database: 0
# 密码
password: 1qaz2wsx3edc
# 连接超时时间
timeout: 10s
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 0
# 连接池中的最大空闲连接
max-idle: 8
# 连接池的最大数据库连接数
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
# 项目相关配置
zehong:
# 名称
name: Zehong
# 版本
version: 3.5.0
# 版权年份
copyrightYear: 2021
# 实例演示开关
demoEnabled: true
# 文件路径 示例( Windows配置D:/zehong/uploadPath,Linux配置 /home/zehong/uploadPath)
profile: D:/zehong/uploadPath
# 获取ip地址开关
addressEnabled: false
# 验证码类型 math 数组计算 char 字符验证
captchaType: math
# 数据源配置
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
druid:
# 主库数据源
master:
url: jdbc:mysql://localhost:3306/gas_progress_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: 123456
# 从库数据源
slave:
# 从数据源开关/默认关闭
enabled: false
url:
username:
password:
# 初始连接数
initialSize: 5
# 最小连接池数量
minIdle: 10
# 最大连接池数量
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
# 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis: 900000
# 配置检测连接是否有效
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
webStatFilter:
enabled: true
statViewServlet:
enabled: true
# 设置白名单,不填则允许所有访问
allow:
url-pattern: /druid/*
# 控制台管理用户名和密码
login-username: ruoyi
login-password: 123456
filter:
stat:
enabled: true
# 慢SQL记录
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: true
wall:
config:
multi-statement-allow: true
# redis 配置
redis:
# 地址
host: 27.128.233.145
# 端口,默认为6379
port: 6379
# 数据库索引
database: 0
# 密码
password: 1qaz2wsx3edc
# 连接超时时间
timeout: 10s
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 0
# 连接池中的最大空闲连接
max-idle: 8
# 连接池的最大数据库连接数
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
# 项目相关配置
zehong:
# 名称
name: Zehong
# 版本
version: 3.5.0
# 版权年份
copyrightYear: 2021
# 实例演示开关
demoEnabled: true
# 文件路径 示例( Windows配置D:/zehong/uploadPath,Linux配置 /home/zehong/uploadPath)
profile: D:/zehong/uploadPath
# 获取ip地址开关
addressEnabled: false
# 验证码类型 math 数组计算 char 字符验证
captchaType: math
# 数据源配置
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
druid:
# 主库数据源
master:
url: jdbc:mysql://localhost:3306/tsfrrq-gas_progress_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: 123456
# 从库数据源
slave:
# 从数据源开关/默认关闭
enabled: false
url:
username:
password:
# 初始连接数
initialSize: 5
# 最小连接池数量
minIdle: 10
# 最大连接池数量
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
# 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis: 900000
# 配置检测连接是否有效
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
webStatFilter:
enabled: true
statViewServlet:
enabled: true
# 设置白名单,不填则允许所有访问
allow:
url-pattern: /druid/*
# 控制台管理用户名和密码
login-username: ruoyi
login-password: 123456
filter:
stat:
enabled: true
# 慢SQL记录
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: true
wall:
config:
multi-statement-allow: true
# redis 配置
redis:
# 地址
# host: 36.139.41.10
host: 27.128.239.197
# host: 36.139.125.48
# host: 36.139.41.83
#host: 121.29.1.158
# 端口,默认为6379
# port: 6379
port: 8903
# port: 6380
# 数据库索引
database: 0
# 密码
password: 1qaz2wsx3edc
# 连接超时时间
timeout: 10s
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 0
# 连接池中的最大空闲连接
max-idle: 8
# 连接池的最大数据库连接数
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
# 项目相关配置
zehong:
# 名称
name: Zehong
# 版本
version: 3.5.0
# 版权年份
copyrightYear: 2021
# 实例演示开关
demoEnabled: true
# 文件路径 示例( Windows配置D:/zehong/uploadPath,Linux配置 /home/zehong/uploadPath)
profile: /home/zehong/uploadPath
# 获取ip地址开关
addressEnabled: false
# 验证码类型 math 数组计算 char 字符验证
captchaType: math
# 开发环境配置
server:
# 服务器的HTTP端口,默认为8080
port: 8905
servlet:
# 应用的访问路径
context-path: /gassafety
tomcat:
# tomcat的URI编码
uri-encoding: UTF-8
# tomcat最大线程数,默认为200
max-threads: 800
# Tomcat启动初始化的线程数,默认值25
min-spare-threads: 30
# 日志配置
logging:
level:
com.zehong: debug
org.springframework: warn
# Spring配置
spring:
# 资源信息
messages:
# 国际化资源文件路径
basename: i18n/messages
profiles:
active: test
# 文件上传
servlet:
multipart:
# 单个文件大小
max-file-size: 10MB
# 设置总上传的文件大小
max-request-size: 20MB
# 服务模块
devtools:
restart:
# 热部署开关
enabled: true
# token配置
token:
# 令牌自定义标识
header: Authorization
# 令牌密钥
secret: abcdefghijklmnopqrstuvwxyz
# 令牌有效期(默认30分钟)
expireTime: 30
# MyBatis配置
mybatis:
# 搜索指定包别名
typeAliasesPackage: com.zehong.**.domain
# 配置mapper的扫描,找到所有的mapper.xml映射文件
mapperLocations: classpath*:mapper/**/*Mapper.xml
# 加载全局的配置文件
configLocation: classpath:mybatis/mybatis-config.xml
# PageHelper分页插件
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
params: count=countSql
# Swagger配置
swagger:
# 是否开启swagger
enabled: true
# 请求前缀
pathMapping: /dev-api
# 防止XSS攻击
xss:
# 过滤开关
enabled: true
# 排除链接(多个用逗号分隔)
excludes: /system/notice/*
# 匹配链接
urlPatterns: /system/*,/monitor/*,/tool/*
Application Version: ${zehong.version}
Spring Boot Version: ${spring-boot.version}
////////////////////////////////////////////////////////////////////
// _ooOoo_ //
// o8888888o //
// 88" . "88 //
// (| ^_^ |) //
// O\ = /O //
// ____/`---'\____ //
// .' \\| |// `. //
// / \\||| : |||// \ //
// / _||||| -:- |||||- \ //
// | | \\\ - /// | | //
// | \_| ''\---/'' | | //
// \ .-\__ `-` ___/-. / //
// ___`. .' /--.--\ `. . ___ //
// ."" '< `.___\_<|>_/___.' >'"". //
// | | : `- \`.;`\ _ /`;.`/ - ` : | | //
// \ \ `-. \_ __\ /__ _/ .-` / / //
// ========`-.____`-.___\_____/___.-`____.-'======== //
// `=---=' //
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //
// 佛祖保佑 永不宕机 永无BUG //
////////////////////////////////////////////////////////////////////
\ No newline at end of file
#错误消息
not.null=* 必须填写
user.jcaptcha.error=验证码错误
user.jcaptcha.expire=验证码已失效
user.not.exists=用户不存在/密码错误
user.password.not.match=用户不存在/密码错误
user.password.retry.limit.count=密码输入错误{0}次
user.password.retry.limit.exceed=密码输入错误{0}次,帐户锁定10分钟
user.password.delete=对不起,您的账号已被删除
user.blocked=用户已封禁,请联系管理员
role.blocked=角色已封禁,请联系管理员
user.logout.success=退出成功
length.not.valid=长度必须在{min}到{max}个字符之间
user.username.not.valid=* 2到20个汉字、字母、数字或下划线组成,且必须以非数字开头
user.password.not.valid=* 5-50个字符
user.email.not.valid=邮箱格式错误
user.mobile.phone.number.not.valid=手机号格式错误
user.login.success=登录成功
user.notfound=请重新登录
user.forcelogout=管理员强制退出,请重新登录
user.unknown.error=未知错误,请重新登录
##文件上传消息
upload.exceed.maxSize=上传的文件大小超出限制的文件大小!<br/>允许的文件最大大小是:{0}MB!
upload.filename.exceed.length=上传的文件名最长{0}个字符
##权限
no.permission=您没有数据的权限,请联系管理员添加权限 [{0}]
no.create.permission=您没有创建数据的权限,请联系管理员添加权限 [{0}]
no.update.permission=您没有修改数据的权限,请联系管理员添加权限 [{0}]
no.delete.permission=您没有删除数据的权限,请联系管理员添加权限 [{0}]
no.export.permission=您没有导出数据的权限,请联系管理员添加权限 [{0}]
no.view.permission=您没有查看数据的权限,请联系管理员添加权限 [{0}]
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- 日志存放路径 -->
<property name="root" value="${log.path}" />
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
<!-- 控制台输出 -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 按照每天生成日志文件 -->
<appender name="logfile" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${root}/gassafety-progress.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!--日志文件输出的文件名-->
<fileNamePattern>${root}/log%d{yyyy-MM-dd}-%i.log.zip
</fileNamePattern>
<maxHistory>60</maxHistory>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>50 MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 系统日志输出 -->
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${root}/sys-info.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${root}/sys-info.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</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">
<file>${root}/sys-error.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${root}/sys-error.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>ERROR</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 用户访问日志输出 -->
<appender name="sys-user" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${root}/sys-user.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 按天回滚 daily -->
<fileNamePattern>${root}/sys-user.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 全部系统日志 -->
<root level="DEBUG">
<appender-ref ref="logfile" />
</root>
<!-- 系统模块日志级别控制 -->
<logger name="com.zehong" level="info" />
<!-- Spring日志级别控制 -->
<logger name="org.springframework" level="warn" />
<root level="info">
<appender-ref ref="console" />
</root>
<!--系统操作日志-->
<root level="info">
<appender-ref ref="file_info" />
<appender-ref ref="file_error" />
</root>
<!--系统用户操作日志-->
<logger name="sys-user" level="info">
<appender-ref ref="sys-user"/>
</logger>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<settings>
<setting name="cacheEnabled" value="true" /> <!-- 全局映射器启用缓存 -->
<setting name="useGeneratedKeys" value="true" /> <!-- 允许 JDBC 支持自动生成主键 -->
<setting name="defaultExecutorType" value="REUSE" /> <!-- 配置默认的执行器 -->
<setting name="logImpl" value="SLF4J" /> <!-- 指定 MyBatis 所用日志的具体实现 -->
<!-- <setting name="mapUnderscoreToCamelCase" value="true"/> 驼峰式命名 -->
</settings>
</configuration>
#!/bin/bash
cd `dirname $0`
cd ..
DEPLOY_DIR=`pwd`
CONF_DIR=$DEPLOY_DIR/conf
LOGS_DIR=$DEPLOY_DIR/logs
#部署需修改
APP_MAINCLASS=com.zehong.GassafetyProgressApplication
PIDS=`ps -ef | grep -v grep | grep "$CONF_DIR" |awk '{print $2}'`
if [ -n "$PIDS" ]; then
echo "ERROR: already started!"
echo "PID: $PIDS"
exit 1
fi
if [ ! -d $LOGS_DIR ]; then
mkdir $LOGS_DIR
fi
STDOUT_FILE=$LOGS_DIR/stdout.log
CLOG_FILE=$LOGS_DIR/gc.logli
#SYS_FILE=$LOGS_DIR/communication.log
LIB_DIR=$DEPLOY_DIR/lib
LIB_JARS=`ls $LIB_DIR|grep .jar|awk '{print "'$LIB_DIR'/"$0}'| xargs | sed "s/ /:/g"`
JAVA_OPTS=" -Djava.awt.headless=true"
JAVA_DEBUG_OPTS=""
if [ "$1" = "debug" ]; then
JAVA_DEBUG_OPTS=" -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n "
fi
JAVA_JMX_OPTS=""
if [ "$1" = "jmx" ]; then
JAVA_JMX_OPTS=" -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false "
fi
JAVA_MEM_OPTS="-server -Xms2048M -Xmx2048M -Xmn1024M"
#JAVA_MEM_OPTS="-server -Xms5120M -Xmx5120M -Xmn1024M -Xnoclassgc -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSParallelRemarkEnabled -XX:CMSInitiatingOccupancyFraction=80 -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+PrintClassHistogram -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -Xloggc:$CLOG_FILE"
echo -e "Starting the GassafetyProgressApplication ...\c"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DEPLOY_DIR/libs/linux_64
nohup java -Dlog.path=$LOGS_DIR -Dapp.home=$DEPLOY_DIR $JAVA_OPTS $JAVA_MEM_OPTS $JAVA_DEBUG_OPTS $JAVA_JMX_OPTS -classpath $CONF_DIR:$LIB_JARS $APP_MAINCLASS >/dev/null 2>&1 &
sleep 1
echo "started"
PIDS=`ps -ef | grep java | grep "$DEPLOY_DIR" | awk '{print $2}'`
echo "PID: $PIDS"
#!/bin/bash
cd `dirname $0`
BIN_DIR=`pwd`
cd ..
DEPLOY_DIR=`pwd`
LOGS_DIR=$DEPLOY_DIR/logs
if [ ! -d $LOGS_DIR ]; then
mkdir $LOGS_DIR
fi
STDOUT_FILE=$LOGS_DIR/stdout.log
PID=`ps -ef | grep -v grep | grep "$DEPLOY_DIR/conf" | awk '{print $2}'`
echo "PID: $PID"
if [ -z "$PID" ]; then
echo "ERROR: The Application does not started!"
exit 1
fi
echo -e "Stopping the Application ...\c"
kill $PID > $STDOUT_FILE 2>&1
COUNT=0
while [ $COUNT -lt 1 ]; do
echo -e ".\c"
sleep 1
COUNT=1
PID_EXIST=`ps -f -p $PID | grep java`
if [ -n "$PID_EXIST" ]; then
COUNT=0
fi
done
echo "stopped"
echo "PID: $PID"
# 数据源配置
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
druid:
# 主库数据源
master:
url: jdbc:mysql://27.128.233.145:33060/gas_progress_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: gas_progress_db
password: RMtiC6YCzdLxeJJL
# 从库数据源
slave:
# 从数据源开关/默认关闭
enabled: false
url:
username:
password:
# 初始连接数
initialSize: 5
# 最小连接池数量
minIdle: 10
# 最大连接池数量
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
# 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis: 900000
# 配置检测连接是否有效
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
webStatFilter:
enabled: true
statViewServlet:
enabled: true
# 设置白名单,不填则允许所有访问
allow:
url-pattern: /druid/*
# 控制台管理用户名和密码
login-username: ruoyi
login-password: 123456
filter:
stat:
enabled: true
# 慢SQL记录
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: true
wall:
config:
multi-statement-allow: true
# redis 配置
redis:
# 地址
host: 27.128.233.145
# 端口,默认为6379
port: 6379
# 数据库索引
database: 0
# 密码
password: 1qaz2wsx3edc
# 连接超时时间
timeout: 10s
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 0
# 连接池中的最大空闲连接
max-idle: 8
# 连接池的最大数据库连接数
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
# 项目相关配置
zehong:
# 名称
name: Zehong
# 版本
version: 3.5.0
# 版权年份
copyrightYear: 2021
# 实例演示开关
demoEnabled: true
# 文件路径 示例( Windows配置D:/zehong/uploadPath,Linux配置 /home/zehong/uploadPath)
profile: D:/zehong/uploadPath
# 获取ip地址开关
addressEnabled: false
# 验证码类型 math 数组计算 char 字符验证
captchaType: math
# 数据源配置
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
druid:
# 主库数据源
master:
url: jdbc:mysql://localhost:3306/gas_progress_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: 123456
# 从库数据源
slave:
# 从数据源开关/默认关闭
enabled: false
url:
username:
password:
# 初始连接数
initialSize: 5
# 最小连接池数量
minIdle: 10
# 最大连接池数量
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
# 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis: 900000
# 配置检测连接是否有效
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
webStatFilter:
enabled: true
statViewServlet:
enabled: true
# 设置白名单,不填则允许所有访问
allow:
url-pattern: /druid/*
# 控制台管理用户名和密码
login-username: ruoyi
login-password: 123456
filter:
stat:
enabled: true
# 慢SQL记录
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: true
wall:
config:
multi-statement-allow: true
# redis 配置
redis:
# 地址
host: 27.128.233.145
# 端口,默认为6379
port: 6379
# 数据库索引
database: 0
# 密码
password: 1qaz2wsx3edc
# 连接超时时间
timeout: 10s
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 0
# 连接池中的最大空闲连接
max-idle: 8
# 连接池的最大数据库连接数
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
# 项目相关配置
zehong:
# 名称
name: Zehong
# 版本
version: 3.5.0
# 版权年份
copyrightYear: 2021
# 实例演示开关
demoEnabled: true
# 文件路径 示例( Windows配置D:/zehong/uploadPath,Linux配置 /home/zehong/uploadPath)
profile: D:/zehong/uploadPath
# 获取ip地址开关
addressEnabled: false
# 验证码类型 math 数组计算 char 字符验证
captchaType: math
# 数据源配置
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
druid:
# 主库数据源
master:
url: jdbc:mysql://27.128.239.197:8902/gas_progress_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: gas_progress_db
password: RMtiC6YCzdLxeJL
# 从库数据源
slave:
# 从数据源开关/默认关闭
enabled: false
url:
username:
password:
# 初始连接数
initialSize: 5
# 最小连接池数量
minIdle: 10
# 最大连接池数量
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
# 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis: 900000
# 配置检测连接是否有效
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
webStatFilter:
enabled: true
statViewServlet:
enabled: true
# 设置白名单,不填则允许所有访问
allow:
url-pattern: /druid/*
# 控制台管理用户名和密码
login-username: ruoyi
login-password: 123456
filter:
stat:
enabled: true
# 慢SQL记录
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: true
wall:
config:
multi-statement-allow: true
# redis 配置
redis:
# 地址
# host: 36.139.41.10
host: 27.128.239.197
# host: 36.139.125.48
# host: 36.139.41.83
#host: 121.29.1.158
# 端口,默认为6379
# port: 6379
port: 8903
# port: 6380
# 数据库索引
database: 0
# 密码
password: 1qaz2wsx3edc
# 连接超时时间
timeout: 10s
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 0
# 连接池中的最大空闲连接
max-idle: 8
# 连接池的最大数据库连接数
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
# 项目相关配置
zehong:
# 名称
name: Zehong
# 版本
version: 3.5.0
# 版权年份
copyrightYear: 2021
# 实例演示开关
demoEnabled: true
# 文件路径 示例( Windows配置D:/zehong/uploadPath,Linux配置 /home/zehong/uploadPath)
profile: /home/zehong/uploadPath
# 获取ip地址开关
addressEnabled: false
# 验证码类型 math 数组计算 char 字符验证
captchaType: math
# 开发环境配置
server:
# 服务器的HTTP端口,默认为8080
port: 8905
servlet:
# 应用的访问路径
context-path: /gassafety
tomcat:
# tomcat的URI编码
uri-encoding: UTF-8
# tomcat最大线程数,默认为200
max-threads: 800
# Tomcat启动初始化的线程数,默认值25
min-spare-threads: 30
# 日志配置
logging:
level:
com.zehong: debug
org.springframework: warn
# Spring配置
spring:
# 资源信息
messages:
# 国际化资源文件路径
basename: i18n/messages
profiles:
active: test
# 文件上传
servlet:
multipart:
# 单个文件大小
max-file-size: 10MB
# 设置总上传的文件大小
max-request-size: 20MB
# 服务模块
devtools:
restart:
# 热部署开关
enabled: true
# token配置
token:
# 令牌自定义标识
header: Authorization
# 令牌密钥
secret: abcdefghijklmnopqrstuvwxyz
# 令牌有效期(默认30分钟)
expireTime: 30
# MyBatis配置
mybatis:
# 搜索指定包别名
typeAliasesPackage: com.zehong.**.domain
# 配置mapper的扫描,找到所有的mapper.xml映射文件
mapperLocations: classpath*:mapper/**/*Mapper.xml
# 加载全局的配置文件
configLocation: classpath:mybatis/mybatis-config.xml
# PageHelper分页插件
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
params: count=countSql
# Swagger配置
swagger:
# 是否开启swagger
enabled: true
# 请求前缀
pathMapping: /dev-api
# 防止XSS攻击
xss:
# 过滤开关
enabled: true
# 排除链接(多个用逗号分隔)
excludes: /system/notice/*
# 匹配链接
urlPatterns: /system/*,/monitor/*,/tool/*
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- 日志存放路径 -->
<property name="root" value="${log.path}" />
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
<!-- 控制台输出 -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 按照每天生成日志文件 -->
<appender name="logfile" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${root}/gassafety-progress.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!--日志文件输出的文件名-->
<fileNamePattern>${root}/log%d{yyyy-MM-dd}-%i.log.zip
</fileNamePattern>
<maxHistory>60</maxHistory>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>50 MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 系统日志输出 -->
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${root}/sys-info.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${root}/sys-info.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</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">
<file>${root}/sys-error.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${root}/sys-error.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>ERROR</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 用户访问日志输出 -->
<appender name="sys-user" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${root}/sys-user.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 按天回滚 daily -->
<fileNamePattern>${root}/sys-user.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 全部系统日志 -->
<root level="DEBUG">
<appender-ref ref="logfile" />
</root>
<!-- 系统模块日志级别控制 -->
<logger name="com.zehong" level="info" />
<!-- Spring日志级别控制 -->
<logger name="org.springframework" level="warn" />
<root level="info">
<appender-ref ref="console" />
</root>
<!--系统操作日志-->
<root level="info">
<appender-ref ref="file_info" />
<appender-ref ref="file_error" />
</root>
<!--系统用户操作日志-->
<logger name="sys-user" level="info">
<appender-ref ref="sys-user"/>
</logger>
</configuration>
\ No newline at end of file
#Generated by Maven
#Wed Apr 10 15:45:36 CST 2024
version=3.5.0
groupId=com.zehong
artifactId=zh-hengshuianping-admin
com\main\util\Base64_2$Coder.class
com\zehong\web\controller\task\TUserLocationController.class
com\zehong\web\controller\operationMonitor\TWorkOrderController.class
com\zehong\web\controller\operationMonitor\TVehicleInfoController.class
com\zehong\web\controller\transferPostRecord\TTransferPostRecordController.class
com\zehong\web\controller\supervise\TDetectorUserController.class
com\zehong\web\controller\task\TWorkTaskPatrolCardController.class
com\zehong\web\controller\monitor\SysOperlogController.class
com\zehong\web\controller\statistic\StatisticController.class
com\zehong\web\controller\video\ArtemisController$2.class
com\zehong\GassafetyProgressApplication.class
com\zehong\web\controller\trainmanage\TTrainManageController.class
com\zehong\web\controller\system\TYehuaqiUserController.class
com\zehong\web\controller\monitor\CacheController.class
com\zehong\web\controller\supervise\TProjectInfoController.class
com\zehong\web\controller\trainmanage\TTrainPersonController.class
com\zehong\web\controller\test\RsaToClient.class
com\zehong\web\controller\operationMonitor\TVehicleLocationInfoController.class
com\zehong\web\controller\api\test.class
com\zehong\web\controller\tool\DESEncoder.class
com\zehong\web\controller\decrypt\DecryptController.class
com\zehong\web\controller\standingBook\TTroubleStandingBookController.class
com\zehong\web\controller\system\SysSettingController.class
com\zehong\web\controller\system\SysConfigController.class
com\zehong\web\controller\video\ArtemisController$3.class
com\zehong\web\controller\supervise\TDeviceInfoController.class
com\zehong\web\controller\supervise\TEmployedPeopleInfoController.class
com\zehong\web\controller\system\SysDeptController.class
com\zehong\web\controller\message\TMessageDetailInfoController.class
com\zehong\web\controller\api\APIController.class
com\main\util\Base64_2$Decoder.class
com\zehong\web\controller\monitor\ServerController.class
com\main\util\Base64_2.class
com\zehong\web\controller\supervise\TSiteStationInfoController.class
com\zehong\web\controller\trainmanage\TTrainStatController.class
com\zehong\web\controller\supervise\TDetectorReportController.class
com\zehong\web\controller\video\ArtemisController.class
com\zehong\web\controller\supervise\TLinePatrolPersonController.class
com\zehong\web\controller\system\SysLoginController.class
com\zehong\web\controller\system\SysUserController.class
com\zehong\web\controller\standingBook\THiddenDangerStandingBookController.class
com\zehong\web\controller\operationMonitor\TSupervisorInfoController.class
com\zehong\web\controller\task\TWorkTaskInspectController.class
com\zehong\web\controller\tool\UserEntity.class
com\zehong\web\controller\monitor\SysUserOnlineController.class
com\zehong\web\controller\task\TWorkTaskPatrolController.class
com\zehong\web\controller\system\TDeviceUserController.class
com\zehong\web\controller\system\TPatrolPositionController.class
com\zehong\web\controller\api\SSLClient.class
com\zehong\web\controller\supervise\TEnterpriseInfoController.class
com\zehong\web\controller\operationMonitor\TDeviceReportDataController.class
com\zehong\GassafetyProgressServletInitializer.class
com\zehong\web\controller\system\SysDictTypeController.class
com\zehong\web\codeconfig\CodeConFig.class
com\zehong\web\controller\system\SysDictDataController.class
com\zehong\web\controller\monitor\SysLogininforController.class
com\zehong\web\controller\operationMonitor\TDetectorReportDataController.class
com\zehong\web\controller\message\TMessageInfoController.class
com\zehong\web\controller\supervise\PipeInterfaceController.class
com\zehong\web\controller\tool\SwaggerController.class
com\zehong\web\controller\common\CaptchaController.class
com\zehong\web\controller\api\SSLClient$1.class
com\zehong\web\controller\complainDeal\TComplainDealController.class
com\zehong\web\controller\supervise\THiddenTroubleInfoSController.class
com\zehong\web\controller\system\TYehuaqiDeviceController.class
com\zehong\web\controller\tool\TestController.class
com\zehong\web\controller\system\TPatrolWorkInfoController.class
com\zehong\web\controller\api\ManageSpringBeans.class
com\zehong\web\controller\system\SysMenuController.class
com\zehong\web\controller\tool\TimeConfig.class
com\zehong\web\controller\system\SysProfileController.class
com\zehong\web\controller\task\TWorkTaskMemberController.class
com\zehong\web\controller\common\CommonController.class
com\zehong\web\controller\supervise\TPipeInfoController.class
com\zehong\web\controller\task\TWorkTaskController.class
com\zehong\web\controller\supervise\TDetectorInfoController.class
com\zehong\web\controller\system\SysPostController.class
com\zehong\web\controller\common\TSuperviseController.class
com\zehong\web\controller\standingBook\TSafeEquipmentStandingBookController.class
com\zehong\web\controller\api\RsaToClient.class
com\zehong\web\controller\api\HttpClient.class
com\zehong\web\core\config\SwaggerConfig.class
com\zehong\web\controller\operationMonitor\THiddenTroubleInfoController.class
com\zehong\web\controller\video\ArtemisController$1.class
com\zehong\web\controller\system\SysNoticeController.class
com\zehong\web\controller\system\SysRoleController.class
com\zehong\web\controller\video\TVideoManagerController.class
com\main\util\Base64_2$Encoder.class
com\zehong\web\timeconfig\TimeConFig.class
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\supervise\TDetectorReportController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\video\TVideoManagerController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\tool\TimeConfig.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\operationMonitor\TVehicleInfoController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\api\ManageSpringBeans.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\supervise\TPipeInfoController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\common\TSuperviseController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\complainDeal\TComplainDealController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\task\TWorkTaskPatrolController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\tool\DESEncoder.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\system\SysNoticeController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\task\TWorkTaskPatrolCardController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\system\SysConfigController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\common\CommonController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\system\SysProfileController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\supervise\TLinePatrolPersonController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\monitor\SysUserOnlineController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\trainmanage\TTrainStatController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\transferPostRecord\TTransferPostRecordController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\operationMonitor\TDetectorReportDataController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\operationMonitor\THiddenTroubleInfoController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\GassafetyProgressServletInitializer.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\standingBook\TTroubleStandingBookController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\task\TUserLocationController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\supervise\TEmployedPeopleInfoController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\timeconfig\TimeConFig.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\common\CaptchaController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\statistic\StatisticController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\operationMonitor\TVehicleLocationInfoController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\system\TPatrolPositionController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\monitor\ServerController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\system\SysRoleController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\api\SSLClient.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\monitor\SysLogininforController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\system\TDeviceUserController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\decrypt\DecryptController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\standingBook\THiddenDangerStandingBookController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\supervise\THiddenTroubleInfoSController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\system\SysUserController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\video\ArtemisController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\trainmanage\TTrainPersonController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\message\TMessageInfoController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\system\SysLoginController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\system\TYehuaqiUserController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\system\TYehuaqiDeviceController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\api\test.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\supervise\TDetectorUserController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\system\SysDeptController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\monitor\CacheController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\task\TWorkTaskMemberController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\operationMonitor\TWorkOrderController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\api\RsaToClient.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\supervise\PipeInterfaceController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\supervise\TSiteStationInfoController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\system\SysDictDataController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\supervise\TProjectInfoController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\operationMonitor\TDeviceReportDataController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\system\SysPostController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\system\SysSettingController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\api\HttpClient.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\system\TPatrolWorkInfoController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\standingBook\TSafeEquipmentStandingBookController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\task\TWorkTaskInspectController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\supervise\TEnterpriseInfoController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\trainmanage\TTrainManageController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\tool\Base64_2.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\api\APIController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\tool\SwaggerController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\task\TWorkTaskController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\test\RsaToClient.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\system\SysMenuController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\monitor\SysOperlogController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\supervise\TDetectorInfoController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\system\SysDictTypeController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\message\TMessageDetailInfoController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\tool\TestController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\codeconfig\CodeConFig.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\core\config\SwaggerConfig.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\GassafetyProgressApplication.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\operationMonitor\TSupervisorInfoController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-admin\src\main\java\com\zehong\web\controller\supervise\TDeviceInfoController.java
#Generated by Maven
#Wed Apr 10 15:45:14 CST 2024
version=3.5.0
groupId=com.zehong
artifactId=zh-hengshuianping-common
com\zehong\common\utils\http\HttpUtils$TrustAnyHostnameVerifier.class
com\zehong\common\annotation\Excel$ColumnType.class
com\zehong\common\exception\job\TaskException$Code.class
com\zehong\common\utils\ExceptionUtil.class
com\zehong\common\utils\file\FileTypeUtils.class
com\zehong\common\core\domain\TreeSelect.class
com\zehong\common\utils\Arith.class
com\zehong\common\exception\user\CaptchaException.class
com\zehong\common\core\domain\entity\SysDictType.class
com\zehong\common\utils\sign\Md5Utils.class
com\zehong\common\exception\file\InvalidExtensionException$InvalidVideoExtensionException.class
com\zehong\common\annotation\DataScope.class
com\zehong\common\utils\LogUtils.class
com\zehong\common\annotation\Excel.class
com\zehong\common\enums\BusinessStatus.class
com\zehong\common\utils\spring\SpringUtils.class
com\zehong\common\exception\file\FileNameLengthLimitExceededException.class
com\zehong\common\filter\XssHttpServletRequestWrapper.class
com\zehong\common\exception\file\InvalidExtensionException$InvalidImageExtensionException.class
com\zehong\common\exception\user\CaptchaExpireException.class
com\zehong\common\core\domain\model\LoginBody.class
com\zehong\common\filter\RepeatedlyRequestWrapper.class
com\zehong\common\filter\RepeatableFilter.class
com\zehong\common\constant\UserConstants.class
com\zehong\common\core\redis\RedisCache.class
com\zehong\common\utils\sign\Base64.class
com\zehong\common\core\domain\entity\SysDept.class
com\zehong\common\utils\html\HTMLFilter.class
com\zehong\common\enums\HttpMethod.class
com\zehong\common\exception\file\InvalidExtensionException$InvalidMediaExtensionException.class
com\zehong\common\utils\http\HttpUtils.class
com\zehong\common\utils\html\EscapeUtil.class
com\zehong\common\annotation\Excel$Align.class
com\zehong\common\utils\http\HttpUtils$TrustAnyTrustManager.class
com\zehong\common\utils\MessageUtils.class
com\zehong\common\core\domain\entity\SysUser.class
com\zehong\common\core\domain\entity\SysRole.class
com\zehong\common\utils\StringUtils.class
com\zehong\common\utils\DictUtils.class
com\zehong\common\core\controller\BaseController.class
com\zehong\common\config\WebSocketConfig.class
com\zehong\common\utils\file\FileUtils.class
com\zehong\common\exception\CustomException.class
com\zehong\common\exception\file\FileException.class
com\zehong\common\core\domain\entity\SysMenu.class
com\zehong\common\enums\BusinessType.class
com\zehong\common\exception\BaseException.class
com\zehong\common\constant\ScheduleConstants.class
com\zehong\common\utils\http\HttpUtils$1.class
com\zehong\common\exception\job\TaskException.class
com\zehong\common\exception\IOCException.class
com\zehong\common\utils\ip\AddressUtils.class
com\zehong\common\filter\RepeatedlyRequestWrapper$1.class
com\zehong\common\core\domain\entity\SysDictData.class
com\zehong\common\constant\GenConstants.class
com\zehong\common\exception\DemoModeException.class
com\zehong\common\utils\SecurityUtils.class
com\zehong\common\utils\reflect\ReflectUtils.class
com\zehong\common\core\controller\BaseController$1.class
com\zehong\common\utils\bean\BeanUtils.class
com\zehong\common\annotation\Excels.class
com\zehong\common\exception\file\InvalidExtensionException$InvalidFlashExtensionException.class
com\zehong\common\exception\user\UserException.class
com\zehong\common\constant\ScheduleConstants$Status.class
com\zehong\common\utils\file\ImageUtils.class
com\zehong\common\core\text\CharsetKit.class
com\zehong\common\core\domain\model\LoginUser.class
com\zehong\common\exception\user\UserPasswordNotMatchException.class
com\zehong\common\utils\uuid\UUID.class
com\zehong\common\utils\sql\SqlUtil.class
com\zehong\common\utils\DateUtils.class
com\zehong\common\core\text\Convert.class
com\zehong\common\annotation\Excel$Type.class
com\zehong\common\enums\ResultEnum.class
com\zehong\common\core\domain\AjaxResult.class
com\zehong\common\exception\file\InvalidExtensionException.class
com\zehong\common\utils\Threads.class
com\zehong\common\enums\UserStatus.class
com\zehong\common\config\GassafetyProgressConfig.class
com\zehong\common\core\text\StrFormatter.class
com\zehong\common\utils\poi\ExcelUtil.class
com\zehong\common\utils\uuid\UUID$Holder.class
com\zehong\common\utils\VerifyCodeUtils.class
com\zehong\common\annotation\Log.class
com\zehong\common\core\page\TableDataInfo.class
com\zehong\common\filter\XssHttpServletRequestWrapper$1.class
com\zehong\common\exception\file\FileSizeLimitExceededException.class
com\zehong\common\filter\XssFilter.class
com\zehong\common\enums\DataSourceType.class
com\zehong\common\exception\UtilException.class
com\zehong\common\utils\ip\IpUtils.class
com\zehong\common\enums\OperatorType.class
com\zehong\common\utils\file\FileUploadUtils.class
com\zehong\common\utils\http\HttpHelper.class
com\zehong\common\utils\uuid\IdUtils.class
com\zehong\common\core\page\TableSupport.class
com\zehong\common\utils\file\MimeTypeUtils.class
com\zehong\common\constant\Constants.class
com\zehong\common\core\page\PageDomain.class
com\zehong\common\constant\HttpStatus.class
com\zehong\common\core\domain\BaseEntity.class
com\zehong\common\utils\ServletUtils.class
com\zehong\common\annotation\DataSource.class
com\zehong\common\annotation\RepeatSubmit.class
com\zehong\common\core\domain\TreeEntity.class
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\ServletUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\core\controller\BaseController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\enums\HttpMethod.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\core\domain\BaseEntity.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\sign\Md5Utils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\core\text\CharsetKit.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\core\domain\entity\SysDictType.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\core\redis\RedisCache.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\exception\UtilException.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\exception\file\FileException.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\filter\XssFilter.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\filter\RepeatedlyRequestWrapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\filter\RepeatableFilter.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\annotation\Excels.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\DateUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\enums\ResultEnum.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\annotation\Excel.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\exception\file\InvalidExtensionException.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\file\MimeTypeUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\enums\BusinessType.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\StringUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\annotation\DataSource.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\VerifyCodeUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\core\domain\model\LoginUser.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\reflect\ReflectUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\html\EscapeUtil.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\constant\UserConstants.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\Threads.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\core\domain\model\LoginBody.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\enums\DataSourceType.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\filter\XssHttpServletRequestWrapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\core\page\TableDataInfo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\sql\SqlUtil.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\core\text\StrFormatter.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\uuid\UUID.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\file\ImageUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\poi\ExcelUtil.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\exception\CustomException.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\Arith.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\uuid\IdUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\core\domain\entity\SysMenu.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\exception\user\UserPasswordNotMatchException.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\ip\AddressUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\constant\ScheduleConstants.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\constant\HttpStatus.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\core\text\Convert.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\file\FileUploadUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\enums\OperatorType.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\annotation\RepeatSubmit.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\file\FileTypeUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\core\domain\entity\SysDept.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\exception\BaseException.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\enums\UserStatus.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\ip\IpUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\constant\GenConstants.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\core\domain\entity\SysDictData.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\spring\SpringUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\core\domain\entity\SysRole.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\core\domain\TreeSelect.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\bean\BeanUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\SecurityUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\exception\file\FileSizeLimitExceededException.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\core\domain\AjaxResult.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\exception\DemoModeException.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\exception\IOCException.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\MessageUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\core\page\TableSupport.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\http\HttpHelper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\LogUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\annotation\Log.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\core\domain\TreeEntity.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\exception\user\CaptchaException.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\config\GassafetyProgressConfig.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\exception\user\CaptchaExpireException.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\exception\user\UserException.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\core\page\PageDomain.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\constant\Constants.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\enums\BusinessStatus.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\exception\file\FileNameLengthLimitExceededException.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\html\HTMLFilter.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\config\WebSocketConfig.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\core\domain\entity\SysUser.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\DictUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\file\FileUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\annotation\DataScope.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\http\HttpUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\sign\Base64.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\exception\job\TaskException.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-common\src\main\java\com\zehong\common\utils\ExceptionUtil.java
#Generated by Maven
#Wed Apr 10 15:45:27 CST 2024
version=3.5.0
groupId=com.zehong
artifactId=zh-hengshuianping-framework
com\zehong\framework\config\ThreadPoolConfig$1.class
com\zehong\framework\web\service\SysLoginService.class
com\zehong\framework\web\exception\GlobalExceptionHandler.class
com\zehong\framework\manager\AsyncManager.class
com\zehong\framework\config\MyBatisConfig.class
com\zehong\framework\manager\factory\AsyncFactory.class
com\zehong\framework\web\service\PermissionService.class
com\zehong\framework\config\ServerConfig.class
com\zehong\framework\config\DruidConfig$1.class
com\zehong\framework\config\DruidConfig.class
com\zehong\framework\config\SecurityConfig.class
com\zehong\framework\web\domain\Server.class
com\zehong\framework\web\service\SysPermissionService.class
com\zehong\framework\aspectj\DataSourceAspect.class
com\zehong\framework\security\filter\JwtAuthenticationTokenFilter.class
com\zehong\framework\security\handle\LogoutSuccessHandlerImpl.class
com\zehong\framework\config\KaptchaTextCreator.class
com\zehong\framework\config\properties\DruidProperties.class
com\zehong\framework\datasource\DynamicDataSourceContextHolder.class
com\zehong\framework\config\CaptchaConfig.class
com\zehong\framework\manager\factory\AsyncFactory$2.class
com\zehong\framework\web\service\TokenService.class
com\zehong\framework\aspectj\LogAspect.class
com\zehong\framework\systemsetting\SystemSetting.class
com\zehong\framework\web\domain\server\SysFile.class
com\zehong\framework\web\domain\server\Sys.class
com\zehong\framework\interceptor\impl\SameUrlDataInterceptor.class
com\zehong\framework\config\FastJson2JsonRedisSerializer.class
com\zehong\framework\config\ThreadPoolConfig.class
com\zehong\framework\manager\ShutdownManager.class
com\zehong\framework\web\domain\server\Jvm.class
com\zehong\framework\config\FilterConfig.class
com\zehong\framework\config\ResourcesConfig.class
com\zehong\framework\interceptor\RepeatSubmitInterceptor.class
com\zehong\framework\config\ApplicationConfig.class
com\zehong\framework\datasource\DynamicDataSource.class
com\zehong\framework\web\domain\server\Mem.class
com\zehong\framework\web\domain\server\Cpu.class
com\zehong\framework\manager\factory\AsyncFactory$1.class
com\zehong\framework\aspectj\DataScopeAspect.class
com\zehong\framework\web\service\UserDetailsServiceImpl.class
com\zehong\framework\config\RedisConfig.class
com\zehong\framework\security\handle\AuthenticationEntryPointImpl.class
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\security\filter\JwtAuthenticationTokenFilter.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\web\domain\server\Sys.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\config\MyBatisConfig.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\manager\factory\AsyncFactory.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\aspectj\DataScopeAspect.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\web\service\TokenService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\interceptor\impl\SameUrlDataInterceptor.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\config\ServerConfig.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\web\domain\server\Cpu.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\web\domain\server\Jvm.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\config\RedisConfig.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\manager\AsyncManager.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\web\domain\Server.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\config\FilterConfig.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\security\handle\AuthenticationEntryPointImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\web\domain\server\Mem.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\config\DruidConfig.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\security\handle\LogoutSuccessHandlerImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\interceptor\RepeatSubmitInterceptor.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\aspectj\DataSourceAspect.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\web\service\SysLoginService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\config\properties\DruidProperties.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\config\ResourcesConfig.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\aspectj\LogAspect.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\manager\ShutdownManager.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\web\exception\GlobalExceptionHandler.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\web\service\PermissionService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\web\service\UserDetailsServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\config\FastJson2JsonRedisSerializer.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\config\CaptchaConfig.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\config\SecurityConfig.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\web\domain\server\SysFile.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\web\service\SysPermissionService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\datasource\DynamicDataSourceContextHolder.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\config\ApplicationConfig.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\config\ThreadPoolConfig.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\config\KaptchaTextCreator.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\systemsetting\SystemSetting.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-framework\src\main\java\com\zehong\framework\datasource\DynamicDataSource.java
# 代码生成
gen:
# 作者
author: zehong
# 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
packageName: com.zehong.system
# 自动去除表前缀,默认是false
autoRemovePre: false
# 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
tablePrefix: sys_
\ No newline at end of file
<?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.zehong.generator.mapper.GenTableColumnMapper">
<resultMap type="GenTableColumn" id="GenTableColumnResult">
<id property="columnId" column="column_id" />
<result property="tableId" column="table_id" />
<result property="columnName" column="column_name" />
<result property="columnComment" column="column_comment" />
<result property="columnType" column="column_type" />
<result property="javaType" column="java_type" />
<result property="javaField" column="java_field" />
<result property="isPk" column="is_pk" />
<result property="isIncrement" column="is_increment" />
<result property="isRequired" column="is_required" />
<result property="isInsert" column="is_insert" />
<result property="isEdit" column="is_edit" />
<result property="isList" column="is_list" />
<result property="isQuery" column="is_query" />
<result property="queryType" column="query_type" />
<result property="htmlType" column="html_type" />
<result property="dictType" column="dict_type" />
<result property="sort" column="sort" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectGenTableColumnVo">
select column_id, table_id, column_name, column_comment, column_type, java_type, java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list, is_query, query_type, html_type, dict_type, sort, create_by, create_time, update_by, update_time from gen_table_column
</sql>
<select id="selectGenTableColumnListByTableId" parameterType="Long" resultMap="GenTableColumnResult">
<include refid="selectGenTableColumnVo"/>
where table_id = #{tableId}
order by sort
</select>
<select id="selectDbTableColumnsByName" parameterType="String" resultMap="GenTableColumnResult">
select column_name, (case when (is_nullable = 'no' <![CDATA[ && ]]> column_key != 'PRI') then '1' else null end) as is_required, (case when column_key = 'PRI' then '1' else '0' end) as is_pk, ordinal_position as sort, column_comment, (case when extra = 'auto_increment' then '1' else '0' end) as is_increment, column_type
from information_schema.columns where table_schema = (select database()) and table_name = (#{tableName})
order by ordinal_position
</select>
<insert id="insertGenTableColumn" parameterType="GenTableColumn" useGeneratedKeys="true" keyProperty="columnId">
insert into gen_table_column (
<if test="tableId != null and tableId != ''">table_id,</if>
<if test="columnName != null and columnName != ''">column_name,</if>
<if test="columnComment != null and columnComment != ''">column_comment,</if>
<if test="columnType != null and columnType != ''">column_type,</if>
<if test="javaType != null and javaType != ''">java_type,</if>
<if test="javaField != null and javaField != ''">java_field,</if>
<if test="isPk != null and isPk != ''">is_pk,</if>
<if test="isIncrement != null and isIncrement != ''">is_increment,</if>
<if test="isRequired != null and isRequired != ''">is_required,</if>
<if test="isInsert != null and isInsert != ''">is_insert,</if>
<if test="isEdit != null and isEdit != ''">is_edit,</if>
<if test="isList != null and isList != ''">is_list,</if>
<if test="isQuery != null and isQuery != ''">is_query,</if>
<if test="queryType != null and queryType != ''">query_type,</if>
<if test="htmlType != null and htmlType != ''">html_type,</if>
<if test="dictType != null and dictType != ''">dict_type,</if>
<if test="sort != null">sort,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
create_time
)values(
<if test="tableId != null and tableId != ''">#{tableId},</if>
<if test="columnName != null and columnName != ''">#{columnName},</if>
<if test="columnComment != null and columnComment != ''">#{columnComment},</if>
<if test="columnType != null and columnType != ''">#{columnType},</if>
<if test="javaType != null and javaType != ''">#{javaType},</if>
<if test="javaField != null and javaField != ''">#{javaField},</if>
<if test="isPk != null and isPk != ''">#{isPk},</if>
<if test="isIncrement != null and isIncrement != ''">#{isIncrement},</if>
<if test="isRequired != null and isRequired != ''">#{isRequired},</if>
<if test="isInsert != null and isInsert != ''">#{isInsert},</if>
<if test="isEdit != null and isEdit != ''">#{isEdit},</if>
<if test="isList != null and isList != ''">#{isList},</if>
<if test="isQuery != null and isQuery != ''">#{isQuery},</if>
<if test="queryType != null and queryType != ''">#{queryType},</if>
<if test="htmlType != null and htmlType != ''">#{htmlType},</if>
<if test="dictType != null and dictType != ''">#{dictType},</if>
<if test="sort != null">#{sort},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
sysdate()
)
</insert>
<update id="updateGenTableColumn" parameterType="GenTableColumn">
update gen_table_column
<set>
column_comment = #{columnComment},
java_type = #{javaType},
java_field = #{javaField},
is_insert = #{isInsert},
is_edit = #{isEdit},
is_list = #{isList},
is_query = #{isQuery},
is_required = #{isRequired},
query_type = #{queryType},
html_type = #{htmlType},
dict_type = #{dictType},
sort = #{sort},
update_by = #{updateBy},
update_time = sysdate()
</set>
where column_id = #{columnId}
</update>
<delete id="deleteGenTableColumnByIds" parameterType="Long">
delete from gen_table_column where table_id in
<foreach collection="array" item="tableId" open="(" separator="," close=")">
#{tableId}
</foreach>
</delete>
<delete id="deleteGenTableColumns">
delete from gen_table_column where column_id in
<foreach collection="list" item="item" open="(" separator="," close=")">
#{item.columnId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.generator.mapper.GenTableMapper">
<resultMap type="GenTable" id="GenTableResult">
<id property="tableId" column="table_id" />
<result property="tableName" column="table_name" />
<result property="tableComment" column="table_comment" />
<result property="subTableName" column="sub_table_name" />
<result property="subTableFkName" column="sub_table_fk_name" />
<result property="className" column="class_name" />
<result property="tplCategory" column="tpl_category" />
<result property="packageName" column="package_name" />
<result property="moduleName" column="module_name" />
<result property="businessName" column="business_name" />
<result property="functionName" column="function_name" />
<result property="functionAuthor" column="function_author" />
<result property="genType" column="gen_type" />
<result property="genPath" column="gen_path" />
<result property="options" column="options" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<collection property="columns" javaType="java.util.List" resultMap="GenTableColumnResult" />
</resultMap>
<resultMap type="GenTableColumn" id="GenTableColumnResult">
<id property="columnId" column="column_id" />
<result property="tableId" column="table_id" />
<result property="columnName" column="column_name" />
<result property="columnComment" column="column_comment" />
<result property="columnType" column="column_type" />
<result property="javaType" column="java_type" />
<result property="javaField" column="java_field" />
<result property="isPk" column="is_pk" />
<result property="isIncrement" column="is_increment" />
<result property="isRequired" column="is_required" />
<result property="isInsert" column="is_insert" />
<result property="isEdit" column="is_edit" />
<result property="isList" column="is_list" />
<result property="isQuery" column="is_query" />
<result property="queryType" column="query_type" />
<result property="htmlType" column="html_type" />
<result property="dictType" column="dict_type" />
<result property="sort" column="sort" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectGenTableVo">
select table_id, table_name, table_comment, sub_table_name, sub_table_fk_name, class_name, tpl_category, package_name, module_name, business_name, function_name, function_author, gen_type, gen_path, options, create_by, create_time, update_by, update_time, remark from gen_table
</sql>
<select id="selectGenTableList" parameterType="GenTable" resultMap="GenTableResult">
<include refid="selectGenTableVo"/>
<where>
<if test="tableName != null and tableName != ''">
AND lower(table_name) like lower(concat('%', #{tableName}, '%'))
</if>
<if test="tableComment != null and tableComment != ''">
AND lower(table_comment) like lower(concat('%', #{tableComment}, '%'))
</if>
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
AND date_format(create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
</if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
AND date_format(create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
</if>
</where>
</select>
<select id="selectDbTableList" parameterType="GenTable" resultMap="GenTableResult">
select table_name, table_comment, create_time, update_time from information_schema.tables
where table_schema = (select database())
AND table_name NOT LIKE 'qrtz_%' AND table_name NOT LIKE 'gen_%'
AND table_name NOT IN (select table_name from gen_table)
<if test="tableName != null and tableName != ''">
AND lower(table_name) like lower(concat('%', #{tableName}, '%'))
</if>
<if test="tableComment != null and tableComment != ''">
AND lower(table_comment) like lower(concat('%', #{tableComment}, '%'))
</if>
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
AND date_format(create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
</if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
AND date_format(create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
</if>
</select>
<select id="selectDbTableListByNames" resultMap="GenTableResult">
select table_name, table_comment, create_time, update_time from information_schema.tables
where table_name NOT LIKE 'qrtz_%' and table_name NOT LIKE 'gen_%' and table_schema = (select database())
and table_name in
<foreach collection="array" item="name" open="(" separator="," close=")">
#{name}
</foreach>
</select>
<select id="selectTableByName" parameterType="String" resultMap="GenTableResult">
select table_name, table_comment, create_time, update_time from information_schema.tables
where table_comment <![CDATA[ <> ]]> '' and table_schema = (select database())
and table_name = #{tableName}
</select>
<select id="selectGenTableById" parameterType="Long" resultMap="GenTableResult">
SELECT t.table_id, t.table_name, t.table_comment, t.sub_table_name, t.sub_table_fk_name, t.class_name, t.tpl_category, t.package_name, t.module_name, t.business_name, t.function_name, t.function_author, t.gen_type, t.gen_path, t.options, t.remark,
c.column_id, c.column_name, c.column_comment, c.column_type, c.java_type, c.java_field, c.is_pk, c.is_increment, c.is_required, c.is_insert, c.is_edit, c.is_list, c.is_query, c.query_type, c.html_type, c.dict_type, c.sort
FROM gen_table t
LEFT JOIN gen_table_column c ON t.table_id = c.table_id
where t.table_id = #{tableId} order by c.sort
</select>
<select id="selectGenTableByName" parameterType="String" resultMap="GenTableResult">
SELECT t.table_id, t.table_name, t.table_comment, t.sub_table_name, t.sub_table_fk_name, t.class_name, t.tpl_category, t.package_name, t.module_name, t.business_name, t.function_name, t.function_author, t.gen_type, t.gen_path, t.options, t.remark,
c.column_id, c.column_name, c.column_comment, c.column_type, c.java_type, c.java_field, c.is_pk, c.is_increment, c.is_required, c.is_insert, c.is_edit, c.is_list, c.is_query, c.query_type, c.html_type, c.dict_type, c.sort
FROM gen_table t
LEFT JOIN gen_table_column c ON t.table_id = c.table_id
where t.table_name = #{tableName} order by c.sort
</select>
<select id="selectGenTableAll" parameterType="String" resultMap="GenTableResult">
SELECT t.table_id, t.table_name, t.table_comment, t.sub_table_name, t.sub_table_fk_name, t.class_name, t.tpl_category, t.package_name, t.module_name, t.business_name, t.function_name, t.function_author, t.options, t.remark,
c.column_id, c.column_name, c.column_comment, c.column_type, c.java_type, c.java_field, c.is_pk, c.is_increment, c.is_required, c.is_insert, c.is_edit, c.is_list, c.is_query, c.query_type, c.html_type, c.dict_type, c.sort
FROM gen_table t
LEFT JOIN gen_table_column c ON t.table_id = c.table_id
order by c.sort
</select>
<insert id="insertGenTable" parameterType="GenTable" useGeneratedKeys="true" keyProperty="tableId">
insert into gen_table (
<if test="tableName != null">table_name,</if>
<if test="tableComment != null and tableComment != ''">table_comment,</if>
<if test="className != null and className != ''">class_name,</if>
<if test="tplCategory != null and tplCategory != ''">tpl_category,</if>
<if test="packageName != null and packageName != ''">package_name,</if>
<if test="moduleName != null and moduleName != ''">module_name,</if>
<if test="businessName != null and businessName != ''">business_name,</if>
<if test="functionName != null and functionName != ''">function_name,</if>
<if test="functionAuthor != null and functionAuthor != ''">function_author,</if>
<if test="genType != null and genType != ''">gen_type,</if>
<if test="genPath != null and genPath != ''">gen_path,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
create_time
)values(
<if test="tableName != null">#{tableName},</if>
<if test="tableComment != null and tableComment != ''">#{tableComment},</if>
<if test="className != null and className != ''">#{className},</if>
<if test="tplCategory != null and tplCategory != ''">#{tplCategory},</if>
<if test="packageName != null and packageName != ''">#{packageName},</if>
<if test="moduleName != null and moduleName != ''">#{moduleName},</if>
<if test="businessName != null and businessName != ''">#{businessName},</if>
<if test="functionName != null and functionName != ''">#{functionName},</if>
<if test="functionAuthor != null and functionAuthor != ''">#{functionAuthor},</if>
<if test="genType != null and genType != ''">#{genType},</if>
<if test="genPath != null and genPath != ''">#{genPath},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
sysdate()
)
</insert>
<update id="updateGenTable" parameterType="GenTable">
update gen_table
<set>
<if test="tableName != null">table_name = #{tableName},</if>
<if test="tableComment != null and tableComment != ''">table_comment = #{tableComment},</if>
<if test="subTableName != null">sub_table_name = #{subTableName},</if>
<if test="subTableFkName != null">sub_table_fk_name = #{subTableFkName},</if>
<if test="className != null and className != ''">class_name = #{className},</if>
<if test="functionAuthor != null and functionAuthor != ''">function_author = #{functionAuthor},</if>
<if test="genType != null and genType != ''">gen_type = #{genType},</if>
<if test="genPath != null and genPath != ''">gen_path = #{genPath},</if>
<if test="tplCategory != null and tplCategory != ''">tpl_category = #{tplCategory},</if>
<if test="packageName != null and packageName != ''">package_name = #{packageName},</if>
<if test="moduleName != null and moduleName != ''">module_name = #{moduleName},</if>
<if test="businessName != null and businessName != ''">business_name = #{businessName},</if>
<if test="functionName != null and functionName != ''">function_name = #{functionName},</if>
<if test="options != null and options != ''">options = #{options},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="remark != null">remark = #{remark},</if>
update_time = sysdate()
</set>
where table_id = #{tableId}
</update>
<delete id="deleteGenTableByIds" parameterType="Long">
delete from gen_table where table_id in
<foreach collection="array" item="tableId" open="(" separator="," close=")">
#{tableId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
package ${packageName}.controller;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zehong.common.annotation.Log;
import com.zehong.common.core.controller.BaseController;
import com.zehong.common.core.domain.AjaxResult;
import com.zehong.common.enums.BusinessType;
import ${packageName}.domain.${ClassName};
import ${packageName}.service.I${ClassName}Service;
import com.zehong.common.utils.poi.ExcelUtil;
#if($table.crud || $table.sub)
import com.zehong.common.core.page.TableDataInfo;
#elseif($table.tree)
#end
/**
* ${functionName}Controller
*
* @author ${author}
* @date ${datetime}
*/
@RestController
@RequestMapping("/${moduleName}/${businessName}")
public class ${ClassName}Controller extends BaseController
{
@Autowired
private I${ClassName}Service ${className}Service;
/**
* 查询${functionName}列表
*/
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:list')")
@GetMapping("/list")
#if($table.crud || $table.sub)
public TableDataInfo list(${ClassName} ${className})
{
startPage();
List<${ClassName}> list = ${className}Service.select${ClassName}List(${className});
return getDataTable(list);
}
#elseif($table.tree)
public AjaxResult list(${ClassName} ${className})
{
List<${ClassName}> list = ${className}Service.select${ClassName}List(${className});
return AjaxResult.success(list);
}
#end
/**
* 导出${functionName}列表
*/
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:export')")
@Log(title = "${functionName}", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(${ClassName} ${className})
{
List<${ClassName}> list = ${className}Service.select${ClassName}List(${className});
ExcelUtil<${ClassName}> util = new ExcelUtil<${ClassName}>(${ClassName}.class);
return util.exportExcel(list, "${functionName}数据");
}
/**
* 获取${functionName}详细信息
*/
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:query')")
@GetMapping(value = "/{${pkColumn.javaField}}")
public AjaxResult getInfo(@PathVariable("${pkColumn.javaField}") ${pkColumn.javaType} ${pkColumn.javaField})
{
return AjaxResult.success(${className}Service.select${ClassName}ById(${pkColumn.javaField}));
}
/**
* 新增${functionName}
*/
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:add')")
@Log(title = "${functionName}", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ${ClassName} ${className})
{
return toAjax(${className}Service.insert${ClassName}(${className}));
}
/**
* 修改${functionName}
*/
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:edit')")
@Log(title = "${functionName}", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody ${ClassName} ${className})
{
return toAjax(${className}Service.update${ClassName}(${className}));
}
/**
* 删除${functionName}
*/
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:remove')")
@Log(title = "${functionName}", businessType = BusinessType.DELETE)
@DeleteMapping("/{${pkColumn.javaField}s}")
public AjaxResult remove(@PathVariable ${pkColumn.javaType}[] ${pkColumn.javaField}s)
{
return toAjax(${className}Service.delete${ClassName}ByIds(${pkColumn.javaField}s));
}
}
package ${packageName}.domain;
#foreach ($import in $importList)
import ${import};
#end
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zehong.common.annotation.Excel;
#if($table.crud || $table.sub)
import com.zehong.common.core.domain.BaseEntity;
#elseif($table.tree)
import com.zehong.common.core.domain.TreeEntity;
#end
/**
* ${functionName}对象 ${tableName}
*
* @author ${author}
* @date ${datetime}
*/
#if($table.crud || $table.sub)
#set($Entity="BaseEntity")
#elseif($table.tree)
#set($Entity="TreeEntity")
#end
public class ${ClassName} extends ${Entity}
{
private static final long serialVersionUID = 1L;
#foreach ($column in $columns)
#if(!$table.isSuperColumn($column.javaField))
/** $column.columnComment */
#if($column.list)
#set($parentheseIndex=$column.columnComment.indexOf("("))
#if($parentheseIndex != -1)
#set($comment=$column.columnComment.substring(0, $parentheseIndex))
#else
#set($comment=$column.columnComment)
#end
#if($parentheseIndex != -1)
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
#elseif($column.javaType == 'Date')
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd")
#else
@Excel(name = "${comment}")
#end
#end
private $column.javaType $column.javaField;
#end
#end
#if($table.sub)
/** $table.subTable.functionName信息 */
private List<${subClassName}> ${subclassName}List;
#end
#foreach ($column in $columns)
#if(!$table.isSuperColumn($column.javaField))
#if($column.javaField.length() > 2 && $column.javaField.substring(1,2).matches("[A-Z]"))
#set($AttrName=$column.javaField)
#else
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
#end
public void set${AttrName}($column.javaType $column.javaField)
{
this.$column.javaField = $column.javaField;
}
public $column.javaType get${AttrName}()
{
return $column.javaField;
}
#end
#end
#if($table.sub)
public List<${subClassName}> get${subClassName}List()
{
return ${subclassName}List;
}
public void set${subClassName}List(List<${subClassName}> ${subclassName}List)
{
this.${subclassName}List = ${subclassName}List;
}
#end
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
#foreach ($column in $columns)
#if($column.javaField.length() > 2 && $column.javaField.substring(1,2).matches("[A-Z]"))
#set($AttrName=$column.javaField)
#else
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
#end
.append("${column.javaField}", get${AttrName}())
#end
#if($table.sub)
.append("${subclassName}List", get${subClassName}List())
#end
.toString();
}
}
package ${packageName}.mapper;
import java.util.List;
import ${packageName}.domain.${ClassName};
#if($table.sub)
import ${packageName}.domain.${subClassName};
#end
/**
* ${functionName}Mapper接口
*
* @author ${author}
* @date ${datetime}
*/
public interface ${ClassName}Mapper
{
/**
* 查询${functionName}
*
* @param ${pkColumn.javaField} ${functionName}ID
* @return ${functionName}
*/
public ${ClassName} select${ClassName}ById(${pkColumn.javaType} ${pkColumn.javaField});
/**
* 查询${functionName}列表
*
* @param ${className} ${functionName}
* @return ${functionName}集合
*/
public List<${ClassName}> select${ClassName}List(${ClassName} ${className});
/**
* 新增${functionName}
*
* @param ${className} ${functionName}
* @return 结果
*/
public int insert${ClassName}(${ClassName} ${className});
/**
* 修改${functionName}
*
* @param ${className} ${functionName}
* @return 结果
*/
public int update${ClassName}(${ClassName} ${className});
/**
* 删除${functionName}
*
* @param ${pkColumn.javaField} ${functionName}ID
* @return 结果
*/
public int delete${ClassName}ById(${pkColumn.javaType} ${pkColumn.javaField});
/**
* 批量删除${functionName}
*
* @param ${pkColumn.javaField}s 需要删除的数据ID
* @return 结果
*/
public int delete${ClassName}ByIds(${pkColumn.javaType}[] ${pkColumn.javaField}s);
#if($table.sub)
/**
* 批量删除${subTable.functionName}
*
* @param customerIds 需要删除的数据ID
* @return 结果
*/
public int delete${subClassName}By${subTableFkClassName}s(${pkColumn.javaType}[] ${pkColumn.javaField}s);
/**
* 批量新增${subTable.functionName}
*
* @param ${subclassName}List ${subTable.functionName}列表
* @return 结果
*/
public int batch${subClassName}(List<${subClassName}> ${subclassName}List);
/**
* 通过${functionName}ID删除${subTable.functionName}信息
*
* @param ${pkColumn.javaField} ${functionName}ID
* @return 结果
*/
public int delete${subClassName}By${subTableFkClassName}(${pkColumn.javaType} ${pkColumn.javaField});
#end
}
package ${packageName}.service;
import java.util.List;
import ${packageName}.domain.${ClassName};
/**
* ${functionName}Service接口
*
* @author ${author}
* @date ${datetime}
*/
public interface I${ClassName}Service
{
/**
* 查询${functionName}
*
* @param ${pkColumn.javaField} ${functionName}ID
* @return ${functionName}
*/
public ${ClassName} select${ClassName}ById(${pkColumn.javaType} ${pkColumn.javaField});
/**
* 查询${functionName}列表
*
* @param ${className} ${functionName}
* @return ${functionName}集合
*/
public List<${ClassName}> select${ClassName}List(${ClassName} ${className});
/**
* 新增${functionName}
*
* @param ${className} ${functionName}
* @return 结果
*/
public int insert${ClassName}(${ClassName} ${className});
/**
* 修改${functionName}
*
* @param ${className} ${functionName}
* @return 结果
*/
public int update${ClassName}(${ClassName} ${className});
/**
* 批量删除${functionName}
*
* @param ${pkColumn.javaField}s 需要删除的${functionName}ID
* @return 结果
*/
public int delete${ClassName}ByIds(${pkColumn.javaType}[] ${pkColumn.javaField}s);
/**
* 删除${functionName}信息
*
* @param ${pkColumn.javaField} ${functionName}ID
* @return 结果
*/
public int delete${ClassName}ById(${pkColumn.javaType} ${pkColumn.javaField});
}
package ${packageName}.service.impl;
import java.util.List;
#foreach ($column in $columns)
#if($column.javaField == 'createTime' || $column.javaField == 'updateTime')
import com.zehong.common.utils.DateUtils;
#break
#end
#end
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
#if($table.sub)
import java.util.ArrayList;
import com.zehong.common.utils.StringUtils;
import org.springframework.transaction.annotation.Transactional;
import ${packageName}.domain.${subClassName};
#end
import ${packageName}.mapper.${ClassName}Mapper;
import ${packageName}.domain.${ClassName};
import ${packageName}.service.I${ClassName}Service;
/**
* ${functionName}Service业务层处理
*
* @author ${author}
* @date ${datetime}
*/
@Service
public class ${ClassName}ServiceImpl implements I${ClassName}Service
{
@Autowired
private ${ClassName}Mapper ${className}Mapper;
/**
* 查询${functionName}
*
* @param ${pkColumn.javaField} ${functionName}ID
* @return ${functionName}
*/
@Override
public ${ClassName} select${ClassName}ById(${pkColumn.javaType} ${pkColumn.javaField})
{
return ${className}Mapper.select${ClassName}ById(${pkColumn.javaField});
}
/**
* 查询${functionName}列表
*
* @param ${className} ${functionName}
* @return ${functionName}
*/
@Override
public List<${ClassName}> select${ClassName}List(${ClassName} ${className})
{
return ${className}Mapper.select${ClassName}List(${className});
}
/**
* 新增${functionName}
*
* @param ${className} ${functionName}
* @return 结果
*/
#if($table.sub)
@Transactional
#end
@Override
public int insert${ClassName}(${ClassName} ${className})
{
#foreach ($column in $columns)
#if($column.javaField == 'createTime')
${className}.setCreateTime(DateUtils.getNowDate());
#end
#end
#if($table.sub)
int rows = ${className}Mapper.insert${ClassName}(${className});
insert${subClassName}(${className});
return rows;
#else
return ${className}Mapper.insert${ClassName}(${className});
#end
}
/**
* 修改${functionName}
*
* @param ${className} ${functionName}
* @return 结果
*/
#if($table.sub)
@Transactional
#end
@Override
public int update${ClassName}(${ClassName} ${className})
{
#foreach ($column in $columns)
#if($column.javaField == 'updateTime')
${className}.setUpdateTime(DateUtils.getNowDate());
#end
#end
#if($table.sub)
${className}Mapper.delete${subClassName}By${subTableFkClassName}(${className}.get${pkColumn.capJavaField}());
insert${subClassName}(${className});
#end
return ${className}Mapper.update${ClassName}(${className});
}
/**
* 批量删除${functionName}
*
* @param ${pkColumn.javaField}s 需要删除的${functionName}ID
* @return 结果
*/
#if($table.sub)
@Transactional
#end
@Override
public int delete${ClassName}ByIds(${pkColumn.javaType}[] ${pkColumn.javaField}s)
{
#if($table.sub)
${className}Mapper.delete${subClassName}By${subTableFkClassName}s(${pkColumn.javaField}s);
#end
return ${className}Mapper.delete${ClassName}ByIds(${pkColumn.javaField}s);
}
/**
* 删除${functionName}信息
*
* @param ${pkColumn.javaField} ${functionName}ID
* @return 结果
*/
@Override
public int delete${ClassName}ById(${pkColumn.javaType} ${pkColumn.javaField})
{
#if($table.sub)
${className}Mapper.delete${subClassName}By${subTableFkClassName}(${pkColumn.javaField});
#end
return ${className}Mapper.delete${ClassName}ById(${pkColumn.javaField});
}
#if($table.sub)
/**
* 新增${subTable.functionName}信息
*
* @param ${className} ${functionName}对象
*/
public void insert${subClassName}(${ClassName} ${className})
{
List<${subClassName}> ${subclassName}List = ${className}.get${subClassName}List();
Long ${pkColumn.javaField} = ${className}.get${pkColumn.capJavaField}();
if (StringUtils.isNotNull(${subclassName}List))
{
List<${subClassName}> list = new ArrayList<${subClassName}>();
for (${subClassName} ${subclassName} : ${subclassName}List)
{
${subclassName}.set${subTableFkClassName}(${pkColumn.javaField});
list.add(${subclassName});
}
if (list.size() > 0)
{
${className}Mapper.batch${subClassName}(list);
}
}
}
#end
}
package ${packageName}.domain;
#foreach ($import in $subImportList)
import ${import};
#end
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zehong.common.annotation.Excel;
import com.zehong.common.core.domain.BaseEntity;
/**
* ${subTable.functionName}对象 ${subTableName}
*
* @author ${author}
* @date ${datetime}
*/
public class ${subClassName} extends BaseEntity
{
private static final long serialVersionUID = 1L;
#foreach ($column in $subTable.columns)
#if(!$table.isSuperColumn($column.javaField))
/** $column.columnComment */
#if($column.list)
#set($parentheseIndex=$column.columnComment.indexOf("("))
#if($parentheseIndex != -1)
#set($comment=$column.columnComment.substring(0, $parentheseIndex))
#else
#set($comment=$column.columnComment)
#end
#if($parentheseIndex != -1)
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
#elseif($column.javaType == 'Date')
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd")
#else
@Excel(name = "${comment}")
#end
#end
private $column.javaType $column.javaField;
#end
#end
#foreach ($column in $subTable.columns)
#if(!$table.isSuperColumn($column.javaField))
#if($column.javaField.length() > 2 && $column.javaField.substring(1,2).matches("[A-Z]"))
#set($AttrName=$column.javaField)
#else
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
#end
public void set${AttrName}($column.javaType $column.javaField)
{
this.$column.javaField = $column.javaField;
}
public $column.javaType get${AttrName}()
{
return $column.javaField;
}
#end
#end
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
#foreach ($column in $subTable.columns)
#if($column.javaField.length() > 2 && $column.javaField.substring(1,2).matches("[A-Z]"))
#set($AttrName=$column.javaField)
#else
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
#end
.append("${column.javaField}", get${AttrName}())
#end
.toString();
}
}
import request from '@/utils/request'
// 查询${functionName}列表
export function list${BusinessName}(query) {
return request({
url: '/${moduleName}/${businessName}/list',
method: 'get',
params: query
})
}
// 查询${functionName}详细
export function get${BusinessName}(${pkColumn.javaField}) {
return request({
url: '/${moduleName}/${businessName}/' + ${pkColumn.javaField},
method: 'get'
})
}
// 新增${functionName}
export function add${BusinessName}(data) {
return request({
url: '/${moduleName}/${businessName}',
method: 'post',
data: data
})
}
// 修改${functionName}
export function update${BusinessName}(data) {
return request({
url: '/${moduleName}/${businessName}',
method: 'put',
data: data
})
}
// 删除${functionName}
export function del${BusinessName}(${pkColumn.javaField}) {
return request({
url: '/${moduleName}/${businessName}/' + ${pkColumn.javaField},
method: 'delete'
})
}
// 导出${functionName}
export function export${BusinessName}(query) {
return request({
url: '/${moduleName}/${businessName}/export',
method: 'get',
params: query
})
}
\ No newline at end of file
-- 菜单 SQL
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('${functionName}', '${parentMenuId}', '1', '${businessName}', '${moduleName}/${businessName}/index', 1, 0, 'C', '0', '0', '${permissionPrefix}:list', '#', 'admin', sysdate(), '', null, '${functionName}菜单');
-- 按钮父菜单ID
SELECT @parentId := LAST_INSERT_ID();
-- 按钮 SQL
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('${functionName}查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:query', '#', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('${functionName}新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:add', '#', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('${functionName}修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:edit', '#', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('${functionName}删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:remove', '#', 'admin', sysdate(), '', null, '');
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('${functionName}导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:export', '#', 'admin', sysdate(), '', null, '');
\ No newline at end of file
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
#foreach($column in $columns)
#if($column.query)
#set($dictType=$column.dictType)
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
#set($parentheseIndex=$column.columnComment.indexOf("("))
#if($parentheseIndex != -1)
#set($comment=$column.columnComment.substring(0, $parentheseIndex))
#else
#set($comment=$column.columnComment)
#end
#if($column.htmlType == "input")
<el-form-item label="${comment}" prop="${column.javaField}">
<el-input
v-model="queryParams.${column.javaField}"
placeholder="请输入${comment}"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && "" != $dictType)
<el-form-item label="${comment}" prop="${column.javaField}">
<el-select v-model="queryParams.${column.javaField}" placeholder="请选择${comment}" clearable size="small">
<el-option
v-for="dict in ${column.javaField}Options"
:key="dict.dictValue"
:label="dict.dictLabel"
:value="dict.dictValue"
/>
</el-select>
</el-form-item>
#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && $dictType)
<el-form-item label="${comment}" prop="${column.javaField}">
<el-select v-model="queryParams.${column.javaField}" placeholder="请选择${comment}" clearable size="small">
<el-option label="请选择字典生成" value="" />
</el-select>
</el-form-item>
#elseif($column.htmlType == "datetime" && $column.queryType != "BETWEEN")
<el-form-item label="${comment}" prop="${column.javaField}">
<el-date-picker clearable size="small"
v-model="queryParams.${column.javaField}"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择${comment}">
</el-date-picker>
</el-form-item>
#elseif($column.htmlType == "datetime" && $column.queryType == "BETWEEN")
<el-form-item label="${comment}">
<el-date-picker
v-model="daterange${AttrName}"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
#end
#end
#end
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['${moduleName}:${businessName}:add']"
>新增</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table
v-loading="loading"
:data="${businessName}List"
row-key="${treeCode}"
default-expand-all
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
>
#foreach($column in $columns)
#set($javaField=$column.javaField)
#set($parentheseIndex=$column.columnComment.indexOf("("))
#if($parentheseIndex != -1)
#set($comment=$column.columnComment.substring(0, $parentheseIndex))
#else
#set($comment=$column.columnComment)
#end
#if($column.pk)
#elseif($column.list && $column.htmlType == "datetime")
<el-table-column label="${comment}" align="center" prop="${javaField}" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.${javaField}, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
#elseif($column.list && "" != $column.dictType)
<el-table-column label="${comment}" align="center" prop="${javaField}" :formatter="${javaField}Format" />
#elseif($column.list && "" != $javaField)
#if(${foreach.index} == 1)
<el-table-column label="${comment}" prop="${javaField}" />
#else
<el-table-column label="${comment}" align="center" prop="${javaField}" />
#end
#end
#end
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['${moduleName}:${businessName}:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-plus"
@click="handleAdd(scope.row)"
v-hasPermi="['${moduleName}:${businessName}:add']"
>新增</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['${moduleName}:${businessName}:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<!-- 添加或修改${functionName}对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
#foreach($column in $columns)
#set($field=$column.javaField)
#if($column.insert && !$column.pk)
#if(($column.usableColumn) || (!$column.superColumn))
#set($parentheseIndex=$column.columnComment.indexOf("("))
#if($parentheseIndex != -1)
#set($comment=$column.columnComment.substring(0, $parentheseIndex))
#else
#set($comment=$column.columnComment)
#end
#set($dictType=$column.dictType)
#if("" != $treeParentCode && $column.javaField == $treeParentCode)
<el-form-item label="${comment}" prop="${treeParentCode}">
<treeselect v-model="form.${treeParentCode}" :options="${businessName}Options" :normalizer="normalizer" placeholder="请选择${comment}" />
</el-form-item>
#elseif($column.htmlType == "input")
<el-form-item label="${comment}" prop="${field}">
<el-input v-model="form.${field}" placeholder="请输入${comment}" />
</el-form-item>
#elseif($column.htmlType == "imageUpload")
<el-form-item label="${comment}">
<imageUpload v-model="form.${field}"/>
</el-form-item>
#elseif($column.htmlType == "fileUpload")
<el-form-item label="${comment}">
<fileUpload v-model="form.${field}"/>
</el-form-item>
#elseif($column.htmlType == "editor")
<el-form-item label="${comment}">
<editor v-model="form.${field}" :min-height="192"/>
</el-form-item>
#elseif($column.htmlType == "select" && "" != $dictType)
<el-form-item label="${comment}" prop="${field}">
<el-select v-model="form.${field}" placeholder="请选择${comment}">
<el-option
v-for="dict in ${field}Options"
:key="dict.dictValue"
:label="dict.dictLabel"
#if($column.javaType == "Integer" || $column.javaType == "Long"):value="parseInt(dict.dictValue)"#else:value="dict.dictValue"#end
></el-option>
</el-select>
</el-form-item>
#elseif($column.htmlType == "select" && $dictType)
<el-form-item label="${comment}" prop="${field}">
<el-select v-model="form.${field}" placeholder="请选择${comment}">
<el-option label="请选择字典生成" value="" />
</el-select>
</el-form-item>
#elseif($column.htmlType == "checkbox" && "" != $dictType)
<el-form-item label="${comment}">
<el-checkbox-group v-model="form.${field}">
<el-checkbox
v-for="dict in ${field}Options"
:key="dict.dictValue"
:label="dict.dictValue">
{{dict.dictLabel}}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
#elseif($column.htmlType == "checkbox" && $dictType)
<el-form-item label="${comment}">
<el-checkbox-group v-model="form.${field}">
<el-checkbox>请选择字典生成</el-checkbox>
</el-checkbox-group>
</el-form-item>
#elseif($column.htmlType == "radio" && "" != $dictType)
<el-form-item label="${comment}">
<el-radio-group v-model="form.${field}">
<el-radio
v-for="dict in ${field}Options"
:key="dict.dictValue"
#if($column.javaType == "Integer" || $column.javaType == "Long"):label="parseInt(dict.dictValue)"#else:label="dict.dictValue"#end
>{{dict.dictLabel}}</el-radio>
</el-radio-group>
</el-form-item>
#elseif($column.htmlType == "radio" && $dictType)
<el-form-item label="${comment}">
<el-radio-group v-model="form.${field}">
<el-radio label="1">请选择字典生成</el-radio>
</el-radio-group>
</el-form-item>
#elseif($column.htmlType == "datetime")
<el-form-item label="${comment}" prop="${field}">
<el-date-picker clearable size="small"
v-model="form.${field}"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择${comment}">
</el-date-picker>
</el-form-item>
#elseif($column.htmlType == "textarea")
<el-form-item label="${comment}" prop="${field}">
<el-input v-model="form.${field}" type="textarea" placeholder="请输入内容" />
</el-form-item>
#end
#end
#end
#end
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm">确 定</el-button>
<el-button @click="cancel">取 消</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { list${BusinessName}, get${BusinessName}, del${BusinessName}, add${BusinessName}, update${BusinessName}, export${BusinessName} } from "@/api/${moduleName}/${businessName}";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
#foreach($column in $columns)
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "imageUpload")
import ImageUpload from '@/components/ImageUpload';
#break
#end
#end
#foreach($column in $columns)
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "fileUpload")
import FileUpload from '@/components/FileUpload';
#break
#end
#end
#foreach($column in $columns)
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "editor")
import Editor from '@/components/Editor';
#break
#end
#end
export default {
name: "${BusinessName}",
components: {
#foreach($column in $columns)
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "imageUpload")
ImageUpload,
#break
#end
#end
#foreach($column in $columns)
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "fileUpload")
FileUpload,
#break
#end
#end
#foreach($column in $columns)
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "editor")
Editor,
#break
#end
#end
Treeselect
},
data() {
return {
// 遮罩层
loading: true,
// 显示搜索条件
showSearch: true,
// ${functionName}表格数据
${businessName}List: [],
// ${functionName}树选项
${businessName}Options: [],
// 弹出层标题
title: "",
// 是否显示弹出层
open: false,
#foreach ($column in $columns)
#set($parentheseIndex=$column.columnComment.indexOf("("))
#if($parentheseIndex != -1)
#set($comment=$column.columnComment.substring(0, $parentheseIndex))
#else
#set($comment=$column.columnComment)
#end
#if(${column.dictType} != '')
// $comment字典
${column.javaField}Options: [],
#elseif($column.htmlType == "datetime" && $column.queryType == "BETWEEN")
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
// $comment时间范围
daterange${AttrName}: [],
#end
#end
// 查询参数
queryParams: {
#foreach ($column in $columns)
#if($column.query)
$column.javaField: null#if($velocityCount != $columns.size()),#end
#end
#end
},
// 表单参数
form: {},
// 表单校验
rules: {
#foreach ($column in $columns)
#if($column.required)
#set($parentheseIndex=$column.columnComment.indexOf("("))
#if($parentheseIndex != -1)
#set($comment=$column.columnComment.substring(0, $parentheseIndex))
#else
#set($comment=$column.columnComment)
#end
$column.javaField: [
{ required: true, message: "$comment不能为空", trigger: #if($column.htmlType == "select")"change"#else"blur"#end }
]#if($velocityCount != $columns.size()),#end
#end
#end
}
};
},
created() {
this.getList();
#foreach ($column in $columns)
#if(${column.dictType} != '')
this.getDicts("${column.dictType}").then(response => {
this.${column.javaField}Options = response.data;
});
#end
#end
},
methods: {
/** 查询${functionName}列表 */
getList() {
this.loading = true;
#foreach ($column in $columns)
#if($column.htmlType == "datetime" && $column.queryType == "BETWEEN")
this.queryParams.params = {};
#break
#end
#end
#foreach ($column in $columns)
#if($column.htmlType == "datetime" && $column.queryType == "BETWEEN")
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
if (null != this.daterange${AttrName} && '' != this.daterange${AttrName}) {
this.queryParams.params["begin${AttrName}"] = this.daterange${AttrName}[0];
this.queryParams.params["end${AttrName}"] = this.daterange${AttrName}[1];
}
#end
#end
list${BusinessName}(this.queryParams).then(response => {
this.${businessName}List = this.handleTree(response.data, "${treeCode}", "${treeParentCode}");
this.loading = false;
});
},
/** 转换${functionName}数据结构 */
normalizer(node) {
if (node.children && !node.children.length) {
delete node.children;
}
return {
id: node.${treeCode},
label: node.${treeName},
children: node.children
};
},
/** 查询${functionName}下拉树结构 */
getTreeselect() {
list${BusinessName}().then(response => {
this.${businessName}Options = [];
const data = { ${treeCode}: 0, ${treeName}: '顶级节点', children: [] };
data.children = this.handleTree(response.data, "${treeCode}", "${treeParentCode}");
this.${businessName}Options.push(data);
});
},
#foreach ($column in $columns)
#if(${column.dictType} != '')
#set($parentheseIndex=$column.columnComment.indexOf("("))
#if($parentheseIndex != -1)
#set($comment=$column.columnComment.substring(0, $parentheseIndex))
#else
#set($comment=$column.columnComment)
#end
// $comment字典翻译
${column.javaField}Format(row, column) {
return this.selectDictLabel#if($column.htmlType == "checkbox")s#end(this.${column.javaField}Options, row.${column.javaField});
},
#end
#end
// 取消按钮
cancel() {
this.open = false;
this.reset();
},
// 表单重置
reset() {
this.form = {
#foreach ($column in $columns)
#if($column.htmlType == "radio")
$column.javaField: #if($column.javaType == "Integer" || $column.javaType == "Long")0#else"0"#end#if($velocityCount != $columns.size()),#end
#elseif($column.htmlType == "checkbox")
$column.javaField: []#if($velocityCount != $columns.size()),#end
#else
$column.javaField: null#if($velocityCount != $columns.size()),#end
#end
#end
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
#foreach ($column in $columns)
#if($column.htmlType == "datetime" && $column.queryType == "BETWEEN")
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
this.daterange${AttrName} = [];
#end
#end
this.resetForm("queryForm");
this.handleQuery();
},
/** 新增按钮操作 */
handleAdd(row) {
this.reset();
this.getTreeselect();
if (row != null && row.${treeCode}) {
this.form.${treeParentCode} = row.${treeCode};
} else {
this.form.${treeParentCode} = 0;
}
this.open = true;
this.title = "添加${functionName}";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
this.getTreeselect();
if (row != null) {
this.form.${treeParentCode} = row.${treeCode};
}
get${BusinessName}(row.${pkColumn.javaField}).then(response => {
this.form = response.data;
#foreach ($column in $columns)
#if($column.htmlType == "checkbox")
this.form.$column.javaField = this.form.${column.javaField}.split(",");
#end
#end
this.open = true;
this.title = "修改${functionName}";
});
},
/** 提交按钮 */
submitForm() {
this.#[[$]]#refs["form"].validate(valid => {
if (valid) {
#foreach ($column in $columns)
#if($column.htmlType == "checkbox")
this.form.$column.javaField = this.form.${column.javaField}.join(",");
#end
#end
if (this.form.${pkColumn.javaField} != null) {
update${BusinessName}(this.form).then(response => {
this.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
add${BusinessName}(this.form).then(response => {
this.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
this.$confirm('是否确认删除${functionName}编号为"' + row.${pkColumn.javaField} + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
return del${BusinessName}(row.${pkColumn.javaField});
}).then(() => {
this.getList();
this.msgSuccess("删除成功");
}).catch(() => {});
}
}
};
</script>
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
#foreach($column in $columns)
#if($column.query)
#set($dictType=$column.dictType)
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
#set($parentheseIndex=$column.columnComment.indexOf("("))
#if($parentheseIndex != -1)
#set($comment=$column.columnComment.substring(0, $parentheseIndex))
#else
#set($comment=$column.columnComment)
#end
#if($column.htmlType == "input")
<el-form-item label="${comment}" prop="${column.javaField}">
<el-input
v-model="queryParams.${column.javaField}"
placeholder="请输入${comment}"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && "" != $dictType)
<el-form-item label="${comment}" prop="${column.javaField}">
<el-select v-model="queryParams.${column.javaField}" placeholder="请选择${comment}" clearable size="small">
<el-option
v-for="dict in ${column.javaField}Options"
:key="dict.dictValue"
:label="dict.dictLabel"
:value="dict.dictValue"
/>
</el-select>
</el-form-item>
#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && $dictType)
<el-form-item label="${comment}" prop="${column.javaField}">
<el-select v-model="queryParams.${column.javaField}" placeholder="请选择${comment}" clearable size="small">
<el-option label="请选择字典生成" value="" />
</el-select>
</el-form-item>
#elseif($column.htmlType == "datetime" && $column.queryType != "BETWEEN")
<el-form-item label="${comment}" prop="${column.javaField}">
<el-date-picker clearable size="small"
v-model="queryParams.${column.javaField}"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择${comment}">
</el-date-picker>
</el-form-item>
#elseif($column.htmlType == "datetime" && $column.queryType == "BETWEEN")
<el-form-item label="${comment}">
<el-date-picker
v-model="daterange${AttrName}"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
#end
#end
#end
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['${moduleName}:${businessName}:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['${moduleName}:${businessName}:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['${moduleName}:${businessName}:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
:loading="exportLoading"
@click="handleExport"
v-hasPermi="['${moduleName}:${businessName}:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="${businessName}List" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
#foreach($column in $columns)
#set($javaField=$column.javaField)
#set($parentheseIndex=$column.columnComment.indexOf("("))
#if($parentheseIndex != -1)
#set($comment=$column.columnComment.substring(0, $parentheseIndex))
#else
#set($comment=$column.columnComment)
#end
#if($column.pk)
<el-table-column label="${comment}" align="center" prop="${javaField}" />
#elseif($column.list && $column.htmlType == "datetime")
<el-table-column label="${comment}" align="center" prop="${javaField}" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.${javaField}, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
#elseif($column.list && "" != $column.dictType)
<el-table-column label="${comment}" align="center" prop="${javaField}" :formatter="${javaField}Format" />
#elseif($column.list && "" != $javaField)
<el-table-column label="${comment}" align="center" prop="${javaField}" />
#end
#end
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['${moduleName}:${businessName}:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['${moduleName}:${businessName}:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改${functionName}对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
#foreach($column in $columns)
#set($field=$column.javaField)
#if($column.insert && !$column.pk)
#if(($column.usableColumn) || (!$column.superColumn))
#set($parentheseIndex=$column.columnComment.indexOf("("))
#if($parentheseIndex != -1)
#set($comment=$column.columnComment.substring(0, $parentheseIndex))
#else
#set($comment=$column.columnComment)
#end
#set($dictType=$column.dictType)
#if($column.htmlType == "input")
<el-form-item label="${comment}" prop="${field}">
<el-input v-model="form.${field}" placeholder="请输入${comment}" />
</el-form-item>
#elseif($column.htmlType == "imageUpload")
<el-form-item label="${comment}">
<imageUpload v-model="form.${field}"/>
</el-form-item>
#elseif($column.htmlType == "fileUpload")
<el-form-item label="${comment}">
<fileUpload v-model="form.${field}"/>
</el-form-item>
#elseif($column.htmlType == "editor")
<el-form-item label="${comment}">
<editor v-model="form.${field}" :min-height="192"/>
</el-form-item>
#elseif($column.htmlType == "select" && "" != $dictType)
<el-form-item label="${comment}" prop="${field}">
<el-select v-model="form.${field}" placeholder="请选择${comment}">
<el-option
v-for="dict in ${field}Options"
:key="dict.dictValue"
:label="dict.dictLabel"
#if($column.javaType == "Integer" || $column.javaType == "Long"):value="parseInt(dict.dictValue)"#else:value="dict.dictValue"#end
></el-option>
</el-select>
</el-form-item>
#elseif($column.htmlType == "select" && $dictType)
<el-form-item label="${comment}" prop="${field}">
<el-select v-model="form.${field}" placeholder="请选择${comment}">
<el-option label="请选择字典生成" value="" />
</el-select>
</el-form-item>
#elseif($column.htmlType == "checkbox" && "" != $dictType)
<el-form-item label="${comment}">
<el-checkbox-group v-model="form.${field}">
<el-checkbox
v-for="dict in ${field}Options"
:key="dict.dictValue"
:label="dict.dictValue">
{{dict.dictLabel}}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
#elseif($column.htmlType == "checkbox" && $dictType)
<el-form-item label="${comment}">
<el-checkbox-group v-model="form.${field}">
<el-checkbox>请选择字典生成</el-checkbox>
</el-checkbox-group>
</el-form-item>
#elseif($column.htmlType == "radio" && "" != $dictType)
<el-form-item label="${comment}">
<el-radio-group v-model="form.${field}">
<el-radio
v-for="dict in ${field}Options"
:key="dict.dictValue"
#if($column.javaType == "Integer" || $column.javaType == "Long"):label="parseInt(dict.dictValue)"#else:label="dict.dictValue"#end
>{{dict.dictLabel}}</el-radio>
</el-radio-group>
</el-form-item>
#elseif($column.htmlType == "radio" && $dictType)
<el-form-item label="${comment}">
<el-radio-group v-model="form.${field}">
<el-radio label="1">请选择字典生成</el-radio>
</el-radio-group>
</el-form-item>
#elseif($column.htmlType == "datetime")
<el-form-item label="${comment}" prop="${field}">
<el-date-picker clearable size="small"
v-model="form.${field}"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择${comment}">
</el-date-picker>
</el-form-item>
#elseif($column.htmlType == "textarea")
<el-form-item label="${comment}" prop="${field}">
<el-input v-model="form.${field}" type="textarea" placeholder="请输入内容" />
</el-form-item>
#end
#end
#end
#end
#if($table.sub)
<el-divider content-position="center">${subTable.functionName}信息</el-divider>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd${subClassName}">添加</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="danger" icon="el-icon-delete" size="mini" @click="handleDelete${subClassName}">删除</el-button>
</el-col>
</el-row>
<el-table :data="${subclassName}List" :row-class-name="row${subClassName}Index" @selection-change="handle${subClassName}SelectionChange" ref="${subclassName}">
<el-table-column type="selection" width="50" align="center" />
<el-table-column label="序号" align="center" prop="index" width="50"/>
#foreach($column in $subTable.columns)
#set($javaField=$column.javaField)
#set($parentheseIndex=$column.columnComment.indexOf("("))
#if($parentheseIndex != -1)
#set($comment=$column.columnComment.substring(0, $parentheseIndex))
#else
#set($comment=$column.columnComment)
#end
#if($column.pk || $javaField == ${subTableFkclassName})
#elseif($column.list && "" != $javaField)
<el-table-column label="$comment" prop="${javaField}">
<template slot-scope="scope">
<el-input v-model="scope.row.$javaField" placeholder="请输入$comment" />
</template>
</el-table-column>
#end
#end
</el-table>
#end
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm">确 定</el-button>
<el-button @click="cancel">取 消</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { list${BusinessName}, get${BusinessName}, del${BusinessName}, add${BusinessName}, update${BusinessName}, export${BusinessName} } from "@/api/${moduleName}/${businessName}";
#foreach($column in $columns)
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "imageUpload")
import ImageUpload from '@/components/ImageUpload';
#break
#end
#end
#foreach($column in $columns)
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "fileUpload")
import FileUpload from '@/components/FileUpload';
#break
#end
#end
#foreach($column in $columns)
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "editor")
import Editor from '@/components/Editor';
#break
#end
#end
export default {
name: "${BusinessName}",
components: {
#foreach($column in $columns)
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "imageUpload")
ImageUpload,
#break
#end
#end
#foreach($column in $columns)
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "fileUpload")
FileUpload,
#break
#end
#end
#foreach($column in $columns)
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "editor")
Editor,
#break
#end
#end
},
data() {
return {
// 遮罩层
loading: true,
// 导出遮罩层
exportLoading: false,
// 选中数组
ids: [],
#if($table.sub)
// 子表选中数据
checked${subClassName}: [],
#end
// 非单个禁用
single: true,
// 非多个禁用
multiple: true,
// 显示搜索条件
showSearch: true,
// 总条数
total: 0,
// ${functionName}表格数据
${businessName}List: [],
#if($table.sub)
// ${subTable.functionName}表格数据
${subclassName}List: [],
#end
// 弹出层标题
title: "",
// 是否显示弹出层
open: false,
#foreach ($column in $columns)
#set($parentheseIndex=$column.columnComment.indexOf("("))
#if($parentheseIndex != -1)
#set($comment=$column.columnComment.substring(0, $parentheseIndex))
#else
#set($comment=$column.columnComment)
#end
#if(${column.dictType} != '')
// $comment字典
${column.javaField}Options: [],
#elseif($column.htmlType == "datetime" && $column.queryType == "BETWEEN")
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
// $comment时间范围
daterange${AttrName}: [],
#end
#end
// 查询参数
queryParams: {
pageNum: 1,
pageSize: 10,
#foreach ($column in $columns)
#if($column.query)
$column.javaField: null#if($velocityCount != $columns.size()),#end
#end
#end
},
// 表单参数
form: {},
// 表单校验
rules: {
#foreach ($column in $columns)
#if($column.required)
#set($parentheseIndex=$column.columnComment.indexOf("("))
#if($parentheseIndex != -1)
#set($comment=$column.columnComment.substring(0, $parentheseIndex))
#else
#set($comment=$column.columnComment)
#end
$column.javaField: [
{ required: true, message: "$comment不能为空", trigger: #if($column.htmlType == "select")"change"#else"blur"#end }
]#if($velocityCount != $columns.size()),#end
#end
#end
}
};
},
created() {
this.getList();
#foreach ($column in $columns)
#if(${column.dictType} != '')
this.getDicts("${column.dictType}").then(response => {
this.${column.javaField}Options = response.data;
});
#end
#end
},
methods: {
/** 查询${functionName}列表 */
getList() {
this.loading = true;
#foreach ($column in $columns)
#if($column.htmlType == "datetime" && $column.queryType == "BETWEEN")
this.queryParams.params = {};
#break
#end
#end
#foreach ($column in $columns)
#if($column.htmlType == "datetime" && $column.queryType == "BETWEEN")
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
if (null != this.daterange${AttrName} && '' != this.daterange${AttrName}) {
this.queryParams.params["begin${AttrName}"] = this.daterange${AttrName}[0];
this.queryParams.params["end${AttrName}"] = this.daterange${AttrName}[1];
}
#end
#end
list${BusinessName}(this.queryParams).then(response => {
this.${businessName}List = response.rows;
this.total = response.total;
this.loading = false;
});
},
#foreach ($column in $columns)
#if(${column.dictType} != '')
#set($parentheseIndex=$column.columnComment.indexOf("("))
#if($parentheseIndex != -1)
#set($comment=$column.columnComment.substring(0, $parentheseIndex))
#else
#set($comment=$column.columnComment)
#end
// $comment字典翻译
${column.javaField}Format(row, column) {
return this.selectDictLabel#if($column.htmlType == "checkbox")s#end(this.${column.javaField}Options, row.${column.javaField});
},
#end
#end
// 取消按钮
cancel() {
this.open = false;
this.reset();
},
// 表单重置
reset() {
this.form = {
#foreach ($column in $columns)
#if($column.htmlType == "radio")
$column.javaField: #if($column.javaType == "Integer" || $column.javaType == "Long")0#else"0"#end#if($velocityCount != $columns.size()),#end
#elseif($column.htmlType == "checkbox")
$column.javaField: []#if($velocityCount != $columns.size()),#end
#else
$column.javaField: null#if($velocityCount != $columns.size()),#end
#end
#end
};
#if($table.sub)
this.${subclassName}List = [];
#end
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
#foreach ($column in $columns)
#if($column.htmlType == "datetime" && $column.queryType == "BETWEEN")
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
this.daterange${AttrName} = [];
#end
#end
this.resetForm("queryForm");
this.handleQuery();
},
// 多选框选中数据
handleSelectionChange(selection) {
this.ids = selection.map(item => item.${pkColumn.javaField})
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加${functionName}";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const ${pkColumn.javaField} = row.${pkColumn.javaField} || this.ids
get${BusinessName}(${pkColumn.javaField}).then(response => {
this.form = response.data;
#foreach ($column in $columns)
#if($column.htmlType == "checkbox")
this.form.$column.javaField = this.form.${column.javaField}.split(",");
#end
#end
#if($table.sub)
this.${subclassName}List = response.data.${subclassName}List;
#end
this.open = true;
this.title = "修改${functionName}";
});
},
/** 提交按钮 */
submitForm() {
this.#[[$]]#refs["form"].validate(valid => {
if (valid) {
#foreach ($column in $columns)
#if($column.htmlType == "checkbox")
this.form.$column.javaField = this.form.${column.javaField}.join(",");
#end
#end
#if($table.sub)
this.form.${subclassName}List = this.${subclassName}List;
#end
if (this.form.${pkColumn.javaField} != null) {
update${BusinessName}(this.form).then(response => {
this.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
add${BusinessName}(this.form).then(response => {
this.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ${pkColumn.javaField}s = row.${pkColumn.javaField} || this.ids;
this.$confirm('是否确认删除${functionName}编号为"' + ${pkColumn.javaField}s + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
return del${BusinessName}(${pkColumn.javaField}s);
}).then(() => {
this.getList();
this.msgSuccess("删除成功");
}).catch(() => {});
},
#if($table.sub)
/** ${subTable.functionName}序号 */
row${subClassName}Index({ row, rowIndex }) {
row.index = rowIndex + 1;
},
/** ${subTable.functionName}添加按钮操作 */
handleAdd${subClassName}() {
let obj = {};
#foreach($column in $subTable.columns)
#if($column.pk || $column.javaField == ${subTableFkclassName})
#elseif($column.list && "" != $javaField)
obj.$column.javaField = "";
#end
#end
this.${subclassName}List.push(obj);
},
/** ${subTable.functionName}删除按钮操作 */
handleDelete${subClassName}() {
if (this.checked${subClassName}.length == 0) {
this.$alert("请先选择要删除的${subTable.functionName}数据", "提示", { confirmButtonText: "确定", });
} else {
this.${subclassName}List.splice(this.checked${subClassName}[0].index - 1, 1);
}
},
/** 单选框选中数据 */
handle${subClassName}SelectionChange(selection) {
if (selection.length > 1) {
this.$refs.${subclassName}.clearSelection();
this.$refs.${subclassName}.toggleRowSelection(selection.pop());
} else {
this.checked${subClassName} = selection;
}
},
#end
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm('是否确认导出所有${functionName}数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.exportLoading = true;
return export${BusinessName}(queryParams);
}).then(response => {
this.download(response.msg);
this.exportLoading = false;
}).catch(() => {});
}
}
};
</script>
<?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="${packageName}.mapper.${ClassName}Mapper">
<resultMap type="${ClassName}" id="${ClassName}Result">
#foreach ($column in $columns)
<result property="${column.javaField}" column="${column.columnName}" />
#end
</resultMap>
#if($table.sub)
<resultMap id="${ClassName}${subClassName}Result" type="${ClassName}" extends="${ClassName}Result">
<collection property="${subclassName}List" notNullColumn="sub_${subTable.pkColumn.columnName}" javaType="java.util.List" resultMap="${subClassName}Result" />
</resultMap>
<resultMap type="${subClassName}" id="${subClassName}Result">
#foreach ($column in $subTable.columns)
<result property="${column.javaField}" column="sub_${column.columnName}" />
#end
</resultMap>
#end
<sql id="select${ClassName}Vo">
select#foreach($column in $columns) $column.columnName#if($velocityCount != $columns.size()),#end#end from ${tableName}
</sql>
<select id="select${ClassName}List" parameterType="${ClassName}" resultMap="${ClassName}Result">
<include refid="select${ClassName}Vo"/>
<where>
#foreach($column in $columns)
#set($queryType=$column.queryType)
#set($javaField=$column.javaField)
#set($javaType=$column.javaType)
#set($columnName=$column.columnName)
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
#if($column.query)
#if($column.queryType == "EQ")
<if test="$javaField != null #if($javaType == 'String' ) and $javaField.trim() != ''#end"> and $columnName = #{$javaField}</if>
#elseif($queryType == "NE")
<if test="$javaField != null #if($javaType == 'String' ) and $javaField.trim() != ''#end"> and $columnName != #{$javaField}</if>
#elseif($queryType == "GT")
<if test="$javaField != null #if($javaType == 'String' ) and $javaField.trim() != ''#end"> and $columnName &gt; #{$javaField}</if>
#elseif($queryType == "GTE")
<if test="$javaField != null #if($javaType == 'String' ) and $javaField.trim() != ''#end"> and $columnName &gt;= #{$javaField}</if>
#elseif($queryType == "LT")
<if test="$javaField != null #if($javaType == 'String' ) and $javaField.trim() != ''#end"> and $columnName &lt; #{$javaField}</if>
#elseif($queryType == "LTE")
<if test="$javaField != null #if($javaType == 'String' ) and $javaField.trim() != ''#end"> and $columnName &lt;= #{$javaField}</if>
#elseif($queryType == "LIKE")
<if test="$javaField != null #if($javaType == 'String' ) and $javaField.trim() != ''#end"> and $columnName like concat('%', #{$javaField}, '%')</if>
#elseif($queryType == "BETWEEN")
<if test="params.begin$AttrName != null and params.begin$AttrName != '' and params.end$AttrName != null and params.end$AttrName != ''"> and $columnName between #{params.begin$AttrName} and #{params.end$AttrName}</if>
#end
#end
#end
</where>
</select>
<select id="select${ClassName}ById" parameterType="${pkColumn.javaType}" resultMap="#if($table.sub)${ClassName}${subClassName}Result#else${ClassName}Result#end">
#if($table.crud || $table.tree)
<include refid="select${ClassName}Vo"/>
where ${pkColumn.columnName} = #{${pkColumn.javaField}}
#elseif($table.sub)
select#foreach($column in $columns) a.$column.columnName#if($velocityCount != $columns.size()),#end#end,
#foreach($column in $subTable.columns) b.$column.columnName as sub_$column.columnName#if($velocityCount != $subTable.columns.size()),#end#end
from ${tableName} a
left join ${subTableName} b on b.${subTableFkName} = a.${pkColumn.columnName}
where a.${pkColumn.columnName} = #{${pkColumn.javaField}}
#end
</select>
<insert id="insert${ClassName}" parameterType="${ClassName}"#if($pkColumn.increment) useGeneratedKeys="true" keyProperty="$pkColumn.javaField"#end>
insert into ${tableName}
<trim prefix="(" suffix=")" suffixOverrides=",">
#foreach($column in $columns)
#if($column.columnName != $pkColumn.columnName || !$pkColumn.increment)
<if test="$column.javaField != null#if($column.javaType == 'String' && $column.required) and $column.javaField != ''#end">$column.columnName,</if>
#end
#end
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
#foreach($column in $columns)
#if($column.columnName != $pkColumn.columnName || !$pkColumn.increment)
<if test="$column.javaField != null#if($column.javaType == 'String' && $column.required) and $column.javaField != ''#end">#{$column.javaField},</if>
#end
#end
</trim>
</insert>
<update id="update${ClassName}" parameterType="${ClassName}">
update ${tableName}
<trim prefix="SET" suffixOverrides=",">
#foreach($column in $columns)
#if($column.columnName != $pkColumn.columnName)
<if test="$column.javaField != null#if($column.javaType == 'String' && $column.required) and $column.javaField != ''#end">$column.columnName = #{$column.javaField},</if>
#end
#end
</trim>
where ${pkColumn.columnName} = #{${pkColumn.javaField}}
</update>
<delete id="delete${ClassName}ById" parameterType="${pkColumn.javaType}">
delete from ${tableName} where ${pkColumn.columnName} = #{${pkColumn.javaField}}
</delete>
<delete id="delete${ClassName}ByIds" parameterType="String">
delete from ${tableName} where ${pkColumn.columnName} in
<foreach item="${pkColumn.javaField}" collection="array" open="(" separator="," close=")">
#{${pkColumn.javaField}}
</foreach>
</delete>
#if($table.sub)
<delete id="delete${subClassName}By${subTableFkClassName}s" parameterType="String">
delete from ${subTableName} where ${subTableFkName} in
<foreach item="${subTableFkclassName}" collection="array" open="(" separator="," close=")">
#{${subTableFkclassName}}
</foreach>
</delete>
<delete id="delete${subClassName}By${subTableFkClassName}" parameterType="Long">
delete from ${subTableName} where ${subTableFkName} = #{${subTableFkclassName}}
</delete>
<insert id="batch${subClassName}">
insert into ${subTableName}(#foreach($column in $subTable.columns) $column.columnName#if($velocityCount != $subTable.columns.size()),#end#end) values
<foreach item="item" index="index" collection="list" separator=",">
(#foreach($column in $subTable.columns) #{item.$column.javaField}#if($velocityCount != $subTable.columns.size()),#end#end)
</foreach>
</insert>
#end
</mapper>
\ No newline at end of file
#Generated by Maven
#Wed Apr 10 15:45:31 CST 2024
version=3.5.0
groupId=com.zehong
artifactId=zh-hengshuianping-generator
com\zehong\generator\controller\GenController.class
com\zehong\generator\util\VelocityUtils.class
com\zehong\generator\service\GenTableColumnServiceImpl.class
com\zehong\generator\domain\GenTableColumn.class
com\zehong\generator\mapper\GenTableColumnMapper.class
com\zehong\generator\service\IGenTableService.class
com\zehong\generator\domain\GenTable.class
com\zehong\generator\mapper\GenTableMapper.class
com\zehong\generator\config\GenConfig.class
com\zehong\generator\service\IGenTableColumnService.class
com\zehong\generator\util\VelocityInitializer.class
com\zehong\generator\util\GenUtils.class
com\zehong\generator\service\GenTableServiceImpl.class
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-generator\src\main\java\com\zehong\generator\util\VelocityUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-generator\src\main\java\com\zehong\generator\service\GenTableServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-generator\src\main\java\com\zehong\generator\mapper\GenTableColumnMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-generator\src\main\java\com\zehong\generator\util\GenUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-generator\src\main\java\com\zehong\generator\mapper\GenTableMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-generator\src\main\java\com\zehong\generator\controller\GenController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-generator\src\main\java\com\zehong\generator\domain\GenTableColumn.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-generator\src\main\java\com\zehong\generator\domain\GenTable.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-generator\src\main\java\com\zehong\generator\util\VelocityInitializer.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-generator\src\main\java\com\zehong\generator\service\IGenTableService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-generator\src\main\java\com\zehong\generator\service\GenTableColumnServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-generator\src\main\java\com\zehong\generator\config\GenConfig.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-generator\src\main\java\com\zehong\generator\service\IGenTableColumnService.java
<?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.zehong.quartz.mapper.SysJobLogMapper">
<resultMap type="SysJobLog" id="SysJobLogResult">
<id property="jobLogId" column="job_log_id" />
<result property="jobName" column="job_name" />
<result property="jobGroup" column="job_group" />
<result property="invokeTarget" column="invoke_target" />
<result property="jobMessage" column="job_message" />
<result property="status" column="status" />
<result property="exceptionInfo" column="exception_info" />
<result property="createTime" column="create_time" />
</resultMap>
<sql id="selectJobLogVo">
select job_log_id, job_name, job_group, invoke_target, job_message, status, exception_info, create_time
from sys_job_log
</sql>
<select id="selectJobLogList" parameterType="SysJobLog" resultMap="SysJobLogResult">
<include refid="selectJobLogVo"/>
<where>
<if test="jobName != null and jobName != ''">
AND job_name like concat('%', #{jobName}, '%')
</if>
<if test="jobGroup != null and jobGroup != ''">
AND job_group = #{jobGroup}
</if>
<if test="status != null and status != ''">
AND status = #{status}
</if>
<if test="invokeTarget != null and invokeTarget != ''">
AND invoke_target like concat('%', #{invokeTarget}, '%')
</if>
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
and date_format(create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
</if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
and date_format(create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
</if>
</where>
</select>
<select id="selectJobLogAll" resultMap="SysJobLogResult">
<include refid="selectJobLogVo"/>
</select>
<select id="selectJobLogById" parameterType="Long" resultMap="SysJobLogResult">
<include refid="selectJobLogVo"/>
where job_log_id = #{jobLogId}
</select>
<delete id="deleteJobLogById" parameterType="Long">
delete from sys_job_log where job_log_id = #{jobLogId}
</delete>
<delete id="deleteJobLogByIds" parameterType="Long">
delete from sys_job_log where job_log_id in
<foreach collection="array" item="jobLogId" open="(" separator="," close=")">
#{jobLogId}
</foreach>
</delete>
<update id="cleanJobLog">
truncate table sys_job_log
</update>
<insert id="insertJobLog" parameterType="SysJobLog">
insert into sys_job_log(
<if test="jobLogId != null and jobLogId != 0">job_log_id,</if>
<if test="jobName != null and jobName != ''">job_name,</if>
<if test="jobGroup != null and jobGroup != ''">job_group,</if>
<if test="invokeTarget != null and invokeTarget != ''">invoke_target,</if>
<if test="jobMessage != null and jobMessage != ''">job_message,</if>
<if test="status != null and status != ''">status,</if>
<if test="exceptionInfo != null and exceptionInfo != ''">exception_info,</if>
create_time
)values(
<if test="jobLogId != null and jobLogId != 0">#{jobLogId},</if>
<if test="jobName != null and jobName != ''">#{jobName},</if>
<if test="jobGroup != null and jobGroup != ''">#{jobGroup},</if>
<if test="invokeTarget != null and invokeTarget != ''">#{invokeTarget},</if>
<if test="jobMessage != null and jobMessage != ''">#{jobMessage},</if>
<if test="status != null and status != ''">#{status},</if>
<if test="exceptionInfo != null and exceptionInfo != ''">#{exceptionInfo},</if>
sysdate()
)
</insert>
</mapper>
\ No newline at end of file
<?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.zehong.quartz.mapper.SysJobMapper">
<resultMap type="SysJob" id="SysJobResult">
<id property="jobId" column="job_id" />
<result property="jobName" column="job_name" />
<result property="jobGroup" column="job_group" />
<result property="invokeTarget" column="invoke_target" />
<result property="cronExpression" column="cron_expression" />
<result property="misfirePolicy" column="misfire_policy" />
<result property="concurrent" column="concurrent" />
<result property="status" column="status" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectJobVo">
select job_id, job_name, job_group, invoke_target, cron_expression, misfire_policy, concurrent, status, create_by, create_time, remark
from sys_job
</sql>
<select id="selectJobList" parameterType="SysJob" resultMap="SysJobResult">
<include refid="selectJobVo"/>
<where>
<if test="jobName != null and jobName != ''">
AND job_name like concat('%', #{jobName}, '%')
</if>
<if test="jobGroup != null and jobGroup != ''">
AND job_group = #{jobGroup}
</if>
<if test="status != null and status != ''">
AND status = #{status}
</if>
<if test="invokeTarget != null and invokeTarget != ''">
AND invoke_target like concat('%', #{invokeTarget}, '%')
</if>
</where>
</select>
<select id="selectJobAll" resultMap="SysJobResult">
<include refid="selectJobVo"/>
</select>
<select id="selectJobById" parameterType="Long" resultMap="SysJobResult">
<include refid="selectJobVo"/>
where job_id = #{jobId}
</select>
<delete id="deleteJobById" parameterType="Long">
delete from sys_job where job_id = #{jobId}
</delete>
<delete id="deleteJobByIds" parameterType="Long">
delete from sys_job where job_id in
<foreach collection="array" item="jobId" open="(" separator="," close=")">
#{jobId}
</foreach>
</delete>
<update id="updateJob" parameterType="SysJob">
update sys_job
<set>
<if test="jobName != null and jobName != ''">job_name = #{jobName},</if>
<if test="jobGroup != null and jobGroup != ''">job_group = #{jobGroup},</if>
<if test="invokeTarget != null and invokeTarget != ''">invoke_target = #{invokeTarget},</if>
<if test="cronExpression != null and cronExpression != ''">cron_expression = #{cronExpression},</if>
<if test="misfirePolicy != null and misfirePolicy != ''">misfire_policy = #{misfirePolicy},</if>
<if test="concurrent != null and concurrent != ''">concurrent = #{concurrent},</if>
<if test="status !=null">status = #{status},</if>
<if test="remark != null and remark != ''">remark = #{remark},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
update_time = sysdate()
</set>
where job_id = #{jobId}
</update>
<insert id="insertJob" parameterType="SysJob" useGeneratedKeys="true" keyProperty="jobId">
insert into sys_job(
<if test="jobId != null and jobId != 0">job_id,</if>
<if test="jobName != null and jobName != ''">job_name,</if>
<if test="jobGroup != null and jobGroup != ''">job_group,</if>
<if test="invokeTarget != null and invokeTarget != ''">invoke_target,</if>
<if test="cronExpression != null and cronExpression != ''">cron_expression,</if>
<if test="misfirePolicy != null and misfirePolicy != ''">misfire_policy,</if>
<if test="concurrent != null and concurrent != ''">concurrent,</if>
<if test="status != null and status != ''">status,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
create_time
)values(
<if test="jobId != null and jobId != 0">#{jobId},</if>
<if test="jobName != null and jobName != ''">#{jobName},</if>
<if test="jobGroup != null and jobGroup != ''">#{jobGroup},</if>
<if test="invokeTarget != null and invokeTarget != ''">#{invokeTarget},</if>
<if test="cronExpression != null and cronExpression != ''">#{cronExpression},</if>
<if test="misfirePolicy != null and misfirePolicy != ''">#{misfirePolicy},</if>
<if test="concurrent != null and concurrent != ''">#{concurrent},</if>
<if test="status != null and status != ''">#{status},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
sysdate()
)
</insert>
</mapper>
\ No newline at end of file
#Generated by Maven
#Wed Apr 10 15:45:29 CST 2024
version=3.5.0
groupId=com.zehong
artifactId=zh-hengshuianping-quartz
com\zehong\quartz\util\AbstractQuartzJob.class
com\zehong\quartz\service\ISysJobService.class
com\zehong\quartz\util\JobInvokeUtil.class
com\zehong\quartz\mapper\SysJobMapper.class
com\zehong\quartz\service\impl\SysJobServiceImpl.class
com\zehong\quartz\mapper\SysJobLogMapper.class
com\zehong\quartz\service\impl\SysJobLogServiceImpl.class
com\zehong\quartz\controller\SysJobLogController.class
com\zehong\quartz\domain\SysJobLog.class
com\zehong\quartz\util\QuartzDisallowConcurrentExecution.class
com\zehong\quartz\service\ISysJobLogService.class
com\zehong\quartz\util\QuartzJobExecution.class
com\zehong\quartz\util\ScheduleUtils.class
com\zehong\quartz\task\RyTask.class
com\zehong\quartz\util\CronUtils.class
com\zehong\quartz\controller\SysJobController.class
com\zehong\quartz\domain\SysJob.class
com\zehong\quartz\config\ScheduleConfig.class
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-quartz\src\main\java\com\zehong\quartz\util\JobInvokeUtil.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-quartz\src\main\java\com\zehong\quartz\util\QuartzJobExecution.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-quartz\src\main\java\com\zehong\quartz\util\QuartzDisallowConcurrentExecution.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-quartz\src\main\java\com\zehong\quartz\domain\SysJob.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-quartz\src\main\java\com\zehong\quartz\service\impl\SysJobServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-quartz\src\main\java\com\zehong\quartz\util\AbstractQuartzJob.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-quartz\src\main\java\com\zehong\quartz\config\ScheduleConfig.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-quartz\src\main\java\com\zehong\quartz\controller\SysJobLogController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-quartz\src\main\java\com\zehong\quartz\domain\SysJobLog.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-quartz\src\main\java\com\zehong\quartz\service\ISysJobLogService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-quartz\src\main\java\com\zehong\quartz\service\impl\SysJobLogServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-quartz\src\main\java\com\zehong\quartz\task\RyTask.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-quartz\src\main\java\com\zehong\quartz\util\ScheduleUtils.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-quartz\src\main\java\com\zehong\quartz\controller\SysJobController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-quartz\src\main\java\com\zehong\quartz\mapper\SysJobMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-quartz\src\main\java\com\zehong\quartz\service\ISysJobService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-quartz\src\main\java\com\zehong\quartz\mapper\SysJobLogMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-quartz\src\main\java\com\zehong\quartz\util\CronUtils.java
<?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.zehong.system.mapper.DecryptMapper">
<!--管道-->
<resultMap type="keyInformation" id="keyInformationResult">
<result property="keyId" column="key_id" />
<result property="qybm" column="qybm" />
<result property="secretKey" column="secret_key" />
</resultMap>
<!--查询企业秘钥-->
<select id="selectkey" resultMap="keyInformationResult">
select * from key_information where qybm= #{qybm} limit 0,1
</select>
</mapper>
<?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.zehong.system.mapper.PipeInterfaceMapper">
<!--管道-->
<resultMap type="PipeDate" id="PipeDateResult">
<result property="pipeId" column="pipe_id" />
<result property="pipePressure" column="pipe_pressure" />
<result property="pipeDiameter" column="pipe_diameter" />
<result property="pipeMaterial" column="pipe_material" />
<result property="pipeDepth" column="buried_depth" />
<result property="pipeTrend" column="pipe_trend" />
<result property="buildyear" column="build_date" />
<result property="pipeAddr" column="pipe_addr" />
<result property="path" column="coordinates" />
<result property="buildCompany" column="build_unit" />
<result property="powerCompany" column="beyond_enterprise_name" />
<result property="companyType" column="beyond_enterprise_id" />
<result property="pipeLength" column="pipe_length" />
</resultMap>
<!--调压箱-->
<resultMap type="DeviceData" id="DeviceDateResult">
<result property="deviceId" column="device_id" />
<result property="type" column="device_type" />
<result property="deviceName" column="device_name" />
<result property="deviceCode" column="device_code" />
<result property="deviceAddr" column="device_addr" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="companyType" column="device_id" />
<result property="beyondEnterpriseName" column="beyond_enterprise_name" />
<result property="companyType" column="beyond_enterprise_id" />
<result property="iconUrl" column="icon_url" />
</resultMap>
<!--下级设备数据-->
<resultMap type="PressureFlow" id="PressureFlowResult">
<result property="deviceId" column="relation_device_id" />
<result property="deviceNo" column="device_model" />
<result property="deviceType" column="device_type" />
<result property="reportTime" column="create_time" />
<result property="iotNo" column="iot_no" />
</resultMap>
<!--场站数据-->
<resultMap type="TSiteStationInfoData" id="TSiteStationInfoDataResult">
<result property="siteStationId" column="site_station_id" />
<result property="stationName" column="site_station_name" />
<result property="stationType" column="site_station_type" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="buildyear" column="create_time" />
<result property="buildCompany" column="build_unit" />
<result property="powerCompany" column="beyond_enterprise_name" />
<result property="companyType" column="beyond_enterprise_id" />
<result property="pictureAddress" column="picture_address" />
</resultMap>
<!--监控数据-->
<resultMap type="TvideoManagerData" id="TvideoManagerDataResult">
<result property="companyType" column="video_manager_id" />
<result property="videoManagerId" column="video_manager_id" />
<result property="videoName" column="video_name" />
<result property="resourceId" column="resource_id" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="videoAddress" column="video_address" />
<result property="type" column="type" />
<result property="companyType" column="beyond_enterprise_id" />
</resultMap>
<!--燃气用户数据-->
<resultMap type="TdetectorUserData" id="TdetectorUserDataResult">
<result property="usrName" column="nick_name" />
<result property="usrType" column="user_type" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="phone" column="phone" />
<result property="address" column="address" />
</resultMap>
<!--查询企业名称id-->
<resultMap type="TenterpriseInfoData" id="TenterpriseInfoDataResult">
<result property="enterpriseId" column="enterprise_id" />
<result property="enterpriseName" column="enterprise_name" />
<result property="enterpriseType" column="enterprise_type" />
</resultMap>
<!--感知设备列表-->
<resultMap type="TAssociatedEquipment" id="TAssociatedEquipmentResult">
<result property="deviceCode" column="device_code" />
<result property="deviceName" column="device_name" />
<result property="detectionMedium" column="detection_medium" />
<result property="linkman" column="linkman" />
<result property="phone" column="phone" />
<result property="detectorStatus" column="detector_status" />
<result property="createTime" column="alarm_time" />
</resultMap>
<!--查询管道数据列表-->
<select id="selectPipeData" parameterType="PipeDate" resultMap="PipeDateResult">
select format(pipe_length,2)pipe_length,pipe_pressure,beyond_enterprise_id,pipe_id,pipe_diameter,pipe_material,buried_depth,pipe_trend,build_date,pipe_addr,coordinates,remarks,build_unit,beyond_enterprise_name from t_pipe_info
where is_del='0'
<if test="enterId != null and enterId != 0">
and beyond_enterprise_id=#{enterId}
</if>
</select>
<!--获取分组数据-->
<select id="selectGroupPipeData" parameterType="PipeDate" resultMap="PipeDateResult">
select beyond_enterprise_id,pipe_id,pipe_diameter,pipe_material,buried_depth,pipe_trend,build_date,pipe_addr,coordinates,remarks,build_unit,beyond_enterprise_name from t_pipe_info
where is_del='0'
group by beyond_enterprise_name
</select>
<!--调压箱数据查询方法-->
<select id="selectDeviceData" resultMap="DeviceDateResult">
select beyond_enterprise_id,icon_url,device_id,device_type,device_name,device_code,device_addr,longitude,latitude,beyond_enterprise_name from t_device_info
where device_type='2' and is_del='0'
<if test="enterId != null and enterId != 0">
and beyond_enterprise_id=#{enterId}
</if>
</select>
<!--查询下级设备数据-->
<select id="selectPressureFlow" parameterType="java.util.List" resultMap="PressureFlowResult">
select device_model,device_type,create_time,relation_device_id,iot_no from t_relation_device_detail_info
where relation_device_type='1' and relation_device_id = #{deviceId}
</select>
<!--场站信息查询方法-->
<select id="selectTSiteStationInfoData" resultMap="TSiteStationInfoDataResult">
select beyond_enterprise_id,picture_address,site_station_id,site_station_name,site_station_type,longitude,latitude,address,create_time,build_unit,beyond_enterprise_name
from t_site_station_info where is_del='0'
<if test="enterId != null and enterId != 0">
and beyond_enterprise_id=#{enterId}
</if>
</select>
<!--查询场站下级数据-->
<select id="selecttSiteStationInfoDataList" parameterType="DeviceData" resultMap="PressureFlowResult">
select device_model,device_type,create_time,relation_device_id from t_relation_device_detail_info
where relation_device_type='2' and relation_device_id = #{deviceId}
</select>
<!--监控信息查询-->
<select id="selectTvideoManagerData" resultMap="TvideoManagerDataResult">
select beyond_enterprise_id,video_manager_id,video_name,resource_id,longitude,latitude,video_address,type from t_video_manager
where is_del='0'
</select>
<!--燃气用户信息查询接口-->
<select id="selectTdetectorUser" resultMap="TdetectorUserDataResult">
select nick_name,user_type,longitude,latitude,phone,address from t_detector_user
where is_del='0'
</select>
<!--查询企业名称id方法-->
<select id="selectTenterpriseInfoData" resultMap="TenterpriseInfoDataResult">
select enterprise_id,enterprise_name,enterprise_type from t_enterprise_info where is_del='0'
</select>
<!--查询阀门井数据-->
<select id="selectvalveData" resultMap="DeviceDateResult">
select beyond_enterprise_id,device_id,icon_url,device_type,device_name,device_code,device_addr,longitude,latitude,beyond_enterprise_name from t_device_info
where device_type='1' and is_del='0'
<if test="enterId != null and enterId != 0">
and beyond_enterprise_id=#{enterId}
</if>
</select>
<!--查询在线下级设备数量-->
<select id="selectOnlineQuantity" parameterType="java.util.List" resultType="java.lang.Integer">
select count(detector_id) as id from t_detector_info
where is_del ='0' and detector_status=#{isOnLine} and detector_code in
(
<foreach collection="pressureList" item="item" index="index" separator=",">
#{item.iotNo}
</foreach>
)
</select>
<!--查询历史报警数量-->
<select id="selectHistoricalAlarm" parameterType="java.util.List" resultType="java.lang.Integer">
select count(id) from t_detector_report_data
where detector_code in
<foreach collection="list" item="pressureList" open="(" close=")" index="index" separator=",">
#{pressureList.iotNo}
</foreach>
</select>
<!--查询已处理报警-->
<select id="selectProcessAlarm" parameterType="java.util.List" resultType="java.lang.Integer">
select count(id) from t_detector_report_data
where is_cancel_alarm !='0' and detector_code in
<foreach collection="list" item="item" index="index" open="(" close=")" separator=",">
#{item.iotNo}
</foreach>
</select>
<!--查询报警中-->
<select id="selectInAlarm" parameterType="java.util.List" resultType="java.lang.Integer">
select count(id) from t_detector_report_data
where is_cancel_alarm ='0' and detector_code in
<foreach collection="list" item="item" index="index" open="(" close=")" separator=",">
#{item.iotNo}
</foreach>
</select>
<!--查询 场站/设备 列表信息方法-->
<select id="selectSensingDevice" resultMap="TAssociatedEquipmentResult">
select b.iot_no device_code,b.device_name device_name,b.detection_medium,a.linkman,a.phone,c.detector_status,c.alarm_time
from t_device_info a
left join t_relation_device_detail_info b on a.device_id=b.relation_device_id
left join t_detector_info c on b.iot_no=c.detector_code
where a.device_id=#{devId} and b.relation_device_type=#{relationDeviceType}
</select>
<!--查询上级设备是否有下级设备-->
<select id="selectValveWellIsNUll" resultType="java.lang.Integer">
select count(relation_device_detail_id) from t_relation_device_detail_info where relation_device_id = #{deviceId} and relation_device_type=#{type}
</select>
<!--查询下级全部数据方法-->
<select id="selectPressureFlows" resultMap="PressureFlowResult">
select device_model,device_type,create_time,relation_device_id,iot_no from t_relation_device_detail_info
where relation_device_type=#{type}
</select>
</mapper>
<?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.zehong.system.mapper.SysConfigMapper">
<resultMap type="SysConfig" id="SysConfigResult">
<id property="configId" column="config_id" />
<result property="configName" column="config_name" />
<result property="configKey" column="config_key" />
<result property="configValue" column="config_value" />
<result property="configType" column="config_type" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectConfigVo">
select config_id, config_name, config_key, config_value, config_type, create_by, create_time, update_by, update_time, remark
from sys_config
</sql>
<!-- 查询条件 -->
<sql id="sqlwhereSearch">
<where>
<if test="configId !=null">
and config_id = #{configId}
</if>
<if test="configKey !=null and configKey != ''">
and config_key = #{configKey}
</if>
</where>
</sql>
<select id="selectConfig" parameterType="SysConfig" resultMap="SysConfigResult">
<include refid="selectConfigVo"/>
<include refid="sqlwhereSearch"/>
</select>
<select id="selectConfigList" parameterType="SysConfig" resultMap="SysConfigResult">
<include refid="selectConfigVo"/>
<where>
<if test="configName != null and configName != ''">
AND config_name like concat('%', #{configName}, '%')
</if>
<if test="configType != null and configType != ''">
AND config_type = #{configType}
</if>
<if test="configKey != null and configKey != ''">
AND config_key like concat('%', #{configKey}, '%')
</if>
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
and date_format(create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
</if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
and date_format(create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
</if>
</where>
</select>
<select id="checkConfigKeyUnique" parameterType="String" resultMap="SysConfigResult">
<include refid="selectConfigVo"/>
where config_key = #{configKey} limit 1
</select>
<insert id="insertConfig" parameterType="SysConfig">
insert into sys_config (
<if test="configName != null and configName != '' ">config_name,</if>
<if test="configKey != null and configKey != '' ">config_key,</if>
<if test="configValue != null and configValue != '' ">config_value,</if>
<if test="configType != null and configType != '' ">config_type,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="remark != null and remark != ''">remark,</if>
create_time
)values(
<if test="configName != null and configName != ''">#{configName},</if>
<if test="configKey != null and configKey != ''">#{configKey},</if>
<if test="configValue != null and configValue != ''">#{configValue},</if>
<if test="configType != null and configType != ''">#{configType},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="remark != null and remark != ''">#{remark},</if>
sysdate()
)
</insert>
<update id="updateConfig" parameterType="SysConfig">
update sys_config
<set>
<if test="configName != null and configName != ''">config_name = #{configName},</if>
<if test="configKey != null and configKey != ''">config_key = #{configKey},</if>
<if test="configValue != null and configValue != ''">config_value = #{configValue},</if>
<if test="configType != null and configType != ''">config_type = #{configType},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="remark != null">remark = #{remark},</if>
update_time = sysdate()
</set>
where config_id = #{configId}
</update>
<delete id="deleteConfigById" parameterType="Long">
delete from sys_config where config_id = #{configId}
</delete>
<delete id="deleteConfigByIds" parameterType="Long">
delete from sys_config where config_id in
<foreach item="configId" collection="array" open="(" separator="," close=")">
#{configId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.SysDeptMapper">
<resultMap type="SysDept" id="SysDeptResult">
<id property="deptId" column="dept_id" />
<result property="parentId" column="parent_id" />
<result property="ancestors" column="ancestors" />
<result property="deptName" column="dept_name" />
<result property="orderNum" column="order_num" />
<result property="leader" column="leader" />
<result property="phone" column="phone" />
<result property="email" column="email" />
<result property="status" column="status" />
<result property="delFlag" column="del_flag" />
<result property="parentName" column="parent_name" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectDeptVo">
select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time
from sys_dept d
</sql>
<select id="selectDeptList" parameterType="SysDept" resultMap="SysDeptResult">
<include refid="selectDeptVo"/>
where d.del_flag = '0'
<if test="parentId != null and parentId != 0">
AND parent_id = #{parentId}
</if>
<if test="deptName != null and deptName != ''">
AND dept_name like concat('%', #{deptName}, '%')
</if>
<if test="status != null and status != ''">
AND status = #{status}
</if>
<!-- 数据范围过滤 -->
${params.dataScope}
order by d.parent_id, d.order_num
</select>
<select id="selectDeptListByRoleId" resultType="Integer">
select d.dept_id
from sys_dept d
left join sys_role_dept rd on d.dept_id = rd.dept_id
where rd.role_id = #{roleId}
<if test="deptCheckStrictly">
and d.dept_id not in (select d.parent_id from sys_dept d inner join sys_role_dept rd on d.dept_id = rd.dept_id and rd.role_id = #{roleId})
</if>
order by d.parent_id, d.order_num
</select>
<select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult">
<include refid="selectDeptVo"/>
where dept_id = #{deptId}
</select>
<select id="checkDeptExistUser" parameterType="Long" resultType="int">
select count(1) from sys_user where dept_id = #{deptId} and del_flag = '0'
</select>
<select id="hasChildByDeptId" parameterType="Long" resultType="int">
select count(1) from sys_dept
where del_flag = '0' and parent_id = #{deptId} limit 1
</select>
<select id="selectChildrenDeptById" parameterType="Long" resultMap="SysDeptResult">
select * from sys_dept where find_in_set(#{deptId}, ancestors)
</select>
<select id="selectNormalChildrenDeptById" parameterType="Long" resultType="int">
select count(*) from sys_dept where status = 0 and del_flag = '0' and find_in_set(#{deptId}, ancestors)
</select>
<select id="checkDeptNameUnique" resultMap="SysDeptResult">
<include refid="selectDeptVo"/>
where dept_name=#{deptName} and parent_id = #{parentId} limit 1
</select>
<insert id="insertDept" parameterType="SysDept">
insert into sys_dept(
<if test="deptId != null and deptId != 0">dept_id,</if>
<if test="parentId != null and parentId != 0">parent_id,</if>
<if test="deptName != null and deptName != ''">dept_name,</if>
<if test="ancestors != null and ancestors != ''">ancestors,</if>
<if test="orderNum != null and orderNum != ''">order_num,</if>
<if test="leader != null and leader != ''">leader,</if>
<if test="phone != null and phone != ''">phone,</if>
<if test="email != null and email != ''">email,</if>
<if test="status != null">status,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
create_time
)values(
<if test="deptId != null and deptId != 0">#{deptId},</if>
<if test="parentId != null and parentId != 0">#{parentId},</if>
<if test="deptName != null and deptName != ''">#{deptName},</if>
<if test="ancestors != null and ancestors != ''">#{ancestors},</if>
<if test="orderNum != null and orderNum != ''">#{orderNum},</if>
<if test="leader != null and leader != ''">#{leader},</if>
<if test="phone != null and phone != ''">#{phone},</if>
<if test="email != null and email != ''">#{email},</if>
<if test="status != null">#{status},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
sysdate()
)
</insert>
<update id="updateDept" parameterType="SysDept">
update sys_dept
<set>
<if test="parentId != null and parentId != 0">parent_id = #{parentId},</if>
<if test="deptName != null and deptName != ''">dept_name = #{deptName},</if>
<if test="ancestors != null and ancestors != ''">ancestors = #{ancestors},</if>
<if test="orderNum != null and orderNum != ''">order_num = #{orderNum},</if>
<if test="leader != null">leader = #{leader},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="email != null">email = #{email},</if>
<if test="status != null and status != ''">status = #{status},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
update_time = sysdate()
</set>
where dept_id = #{deptId}
</update>
<update id="updateDeptChildren" parameterType="java.util.List">
update sys_dept set ancestors =
<foreach collection="depts" item="item" index="index"
separator=" " open="case dept_id" close="end">
when #{item.deptId} then #{item.ancestors}
</foreach>
where dept_id in
<foreach collection="depts" item="item" index="index"
separator="," open="(" close=")">
#{item.deptId}
</foreach>
</update>
<update id="updateDeptStatus" parameterType="SysDept">
update sys_dept
<set>
<if test="status != null and status != ''">status = #{status},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
update_time = sysdate()
</set>
where find_in_set(#{deptId}, ancestors)
</update>
<delete id="deleteDeptById" parameterType="Long">
update sys_dept set del_flag = '2' where dept_id = #{deptId}
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.SysDictDataMapper">
<resultMap type="SysDictData" id="SysDictDataResult">
<id property="dictCode" column="dict_code" />
<result property="dictSort" column="dict_sort" />
<result property="dictLabel" column="dict_label" />
<result property="dictValue" column="dict_value" />
<result property="dictType" column="dict_type" />
<result property="cssClass" column="css_class" />
<result property="listClass" column="list_class" />
<result property="isDefault" column="is_default" />
<result property="status" column="status" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectDictDataVo">
select dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark
from sys_dict_data
</sql>
<select id="selectDictDataList" parameterType="SysDictData" resultMap="SysDictDataResult">
<include refid="selectDictDataVo"/>
<where>
<if test="dictType != null and dictType != ''">
AND dict_type = #{dictType}
</if>
<if test="dictLabel != null and dictLabel != ''">
AND dict_label like concat('%', #{dictLabel}, '%')
</if>
<if test="status != null and status != ''">
AND status = #{status}
</if>
</where>
order by dict_sort asc
</select>
<select id="selectDictDataByType" parameterType="SysDictData" resultMap="SysDictDataResult">
<include refid="selectDictDataVo"/>
where status = '0' and dict_type = #{dictType} order by dict_sort asc
</select>
<select id="selectDictLabel" resultType="String">
select dict_label from sys_dict_data
where dict_type = #{dictType} and dict_value = #{dictValue}
</select>
<select id="selectDictDataById" parameterType="Long" resultMap="SysDictDataResult">
<include refid="selectDictDataVo"/>
where dict_code = #{dictCode}
</select>
<select id="countDictDataByType" resultType="Integer">
select count(1) from sys_dict_data where dict_type=#{dictType}
</select>
<delete id="deleteDictDataById" parameterType="Long">
delete from sys_dict_data where dict_code = #{dictCode}
</delete>
<delete id="deleteDictDataByIds" parameterType="Long">
delete from sys_dict_data where dict_code in
<foreach collection="array" item="dictCode" open="(" separator="," close=")">
#{dictCode}
</foreach>
</delete>
<update id="updateDictData" parameterType="SysDictData">
update sys_dict_data
<set>
<if test="dictSort != null">dict_sort = #{dictSort},</if>
<if test="dictLabel != null and dictLabel != ''">dict_label = #{dictLabel},</if>
<if test="dictValue != null and dictValue != ''">dict_value = #{dictValue},</if>
<if test="dictType != null and dictType != ''">dict_type = #{dictType},</if>
<if test="cssClass != null">css_class = #{cssClass},</if>
<if test="listClass != null">list_class = #{listClass},</if>
<if test="isDefault != null and isDefault != ''">is_default = #{isDefault},</if>
<if test="status != null">status = #{status},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
update_time = sysdate()
</set>
where dict_code = #{dictCode}
</update>
<update id="updateDictDataType" parameterType="String">
update sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType}
</update>
<insert id="insertDictData" parameterType="SysDictData">
insert into sys_dict_data(
<if test="dictSort != null">dict_sort,</if>
<if test="dictLabel != null and dictLabel != ''">dict_label,</if>
<if test="dictValue != null and dictValue != ''">dict_value,</if>
<if test="dictType != null and dictType != ''">dict_type,</if>
<if test="cssClass != null and cssClass != ''">css_class,</if>
<if test="listClass != null and listClass != ''">list_class,</if>
<if test="isDefault != null and isDefault != ''">is_default,</if>
<if test="status != null">status,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
create_time
)values(
<if test="dictSort != null">#{dictSort},</if>
<if test="dictLabel != null and dictLabel != ''">#{dictLabel},</if>
<if test="dictValue != null and dictValue != ''">#{dictValue},</if>
<if test="dictType != null and dictType != ''">#{dictType},</if>
<if test="cssClass != null and cssClass != ''">#{cssClass},</if>
<if test="listClass != null and listClass != ''">#{listClass},</if>
<if test="isDefault != null and isDefault != ''">#{isDefault},</if>
<if test="status != null">#{status},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
sysdate()
)
</insert>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.SysDictTypeMapper">
<resultMap type="SysDictType" id="SysDictTypeResult">
<id property="dictId" column="dict_id" />
<result property="dictName" column="dict_name" />
<result property="dictType" column="dict_type" />
<result property="status" column="status" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectDictTypeVo">
select dict_id, dict_name, dict_type, status, create_by, create_time, remark
from sys_dict_type
</sql>
<select id="selectDictTypeList" parameterType="SysDictType" resultMap="SysDictTypeResult">
<include refid="selectDictTypeVo"/>
<where>
<if test="dictName != null and dictName != ''">
AND dict_name like concat('%', #{dictName}, '%')
</if>
<if test="status != null and status != ''">
AND status = #{status}
</if>
<if test="dictType != null and dictType != ''">
AND dict_type like concat('%', #{dictType}, '%')
</if>
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
and date_format(create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
</if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
and date_format(create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
</if>
</where>
</select>
<select id="selectDictTypeAll" resultMap="SysDictTypeResult">
<include refid="selectDictTypeVo"/>
</select>
<select id="selectDictTypeById" parameterType="Long" resultMap="SysDictTypeResult">
<include refid="selectDictTypeVo"/>
where dict_id = #{dictId}
</select>
<select id="selectDictTypeByType" parameterType="String" resultMap="SysDictTypeResult">
<include refid="selectDictTypeVo"/>
where dict_type = #{dictType}
</select>
<select id="checkDictTypeUnique" parameterType="String" resultMap="SysDictTypeResult">
<include refid="selectDictTypeVo"/>
where dict_type = #{dictType} limit 1
</select>
<delete id="deleteDictTypeById" parameterType="Long">
delete from sys_dict_type where dict_id = #{dictId}
</delete>
<delete id="deleteDictTypeByIds" parameterType="Long">
delete from sys_dict_type where dict_id in
<foreach collection="array" item="dictId" open="(" separator="," close=")">
#{dictId}
</foreach>
</delete>
<update id="updateDictType" parameterType="SysDictType">
update sys_dict_type
<set>
<if test="dictName != null and dictName != ''">dict_name = #{dictName},</if>
<if test="dictType != null and dictType != ''">dict_type = #{dictType},</if>
<if test="status != null">status = #{status},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
update_time = sysdate()
</set>
where dict_id = #{dictId}
</update>
<insert id="insertDictType" parameterType="SysDictType">
insert into sys_dict_type(
<if test="dictName != null and dictName != ''">dict_name,</if>
<if test="dictType != null and dictType != ''">dict_type,</if>
<if test="status != null">status,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
create_time
)values(
<if test="dictName != null and dictName != ''">#{dictName},</if>
<if test="dictType != null and dictType != ''">#{dictType},</if>
<if test="status != null">#{status},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
sysdate()
)
</insert>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.SysLogininforMapper">
<resultMap type="SysLogininfor" id="SysLogininforResult">
<id property="infoId" column="info_id" />
<result property="userName" column="user_name" />
<result property="status" column="status" />
<result property="ipaddr" column="ipaddr" />
<result property="loginLocation" column="login_location" />
<result property="browser" column="browser" />
<result property="os" column="os" />
<result property="msg" column="msg" />
<result property="loginTime" column="login_time" />
</resultMap>
<insert id="insertLogininfor" parameterType="SysLogininfor">
insert into sys_logininfor (user_name, status, ipaddr, login_location, browser, os, msg, login_time)
values (#{userName}, #{status}, #{ipaddr}, #{loginLocation}, #{browser}, #{os}, #{msg}, sysdate())
</insert>
<select id="selectLogininforList" parameterType="SysLogininfor" resultMap="SysLogininforResult">
select info_id, user_name, ipaddr, login_location, browser, os, status, msg, login_time from sys_logininfor
<where>
<if test="ipaddr != null and ipaddr != ''">
AND ipaddr like concat('%', #{ipaddr}, '%')
</if>
<if test="status != null and status != ''">
AND status = #{status}
</if>
<if test="userName != null and userName != ''">
AND user_name like concat('%', #{userName}, '%')
</if>
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
and date_format(login_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
</if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
and date_format(login_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
</if>
</where>
order by info_id desc
</select>
<delete id="deleteLogininforByIds" parameterType="Long">
delete from sys_logininfor where info_id in
<foreach collection="array" item="infoId" open="(" separator="," close=")">
#{infoId}
</foreach>
</delete>
<update id="cleanLogininfor">
truncate table sys_logininfor
</update>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.SysMenuMapper">
<resultMap type="SysMenu" id="SysMenuResult">
<id property="menuId" column="menu_id" />
<result property="menuName" column="menu_name" />
<result property="parentName" column="parent_name" />
<result property="parentId" column="parent_id" />
<result property="orderNum" column="order_num" />
<result property="path" column="path" />
<result property="component" column="component" />
<result property="isFrame" column="is_frame" />
<result property="isCache" column="is_cache" />
<result property="menuType" column="menu_type" />
<result property="visible" column="visible" />
<result property="status" column="status" />
<result property="perms" column="perms" />
<result property="icon" column="icon" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectMenuVo">
select menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, ifnull(perms,'') as perms, icon, create_time
from sys_menu
</sql>
<select id="selectMenuList" parameterType="SysMenu" resultMap="SysMenuResult">
<include refid="selectMenuVo"/>
<where>
<if test="menuName != null and menuName != ''">
AND menu_name like concat('%', #{menuName}, '%')
</if>
<if test="visible != null and visible != ''">
AND visible = #{visible}
</if>
<if test="status != null and status != ''">
AND status = #{status}
</if>
</where>
order by parent_id, order_num
</select>
<select id="selectMenuTreeAll" resultMap="SysMenuResult">
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
from sys_menu m where m.menu_type in ('M', 'C') and m.status = 0
order by m.parent_id, m.order_num
</select>
<select id="selectMenuListByUserId" parameterType="SysMenu" resultMap="SysMenuResult">
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
from sys_menu m
left join sys_role_menu rm on m.menu_id = rm.menu_id
left join sys_user_role ur on rm.role_id = ur.role_id
left join sys_role ro on ur.role_id = ro.role_id
where ur.user_id = #{params.userId}
<if test="menuName != null and menuName != ''">
AND menu_name like concat('%', #{menuName}, '%')
</if>
<if test="visible != null and visible != ''">
AND visible = #{visible}
</if>
<if test="status != null and status != ''">
AND status = #{status}
</if>
order by m.parent_id, m.order_num
</select>
<select id="selectMenuTreeByUserId" parameterType="Long" resultMap="SysMenuResult">
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
from sys_menu m
left join sys_role_menu rm on m.menu_id = rm.menu_id
left join sys_user_role ur on rm.role_id = ur.role_id
left join sys_role ro on ur.role_id = ro.role_id
left join sys_user u on ur.user_id = u.user_id
where u.user_id = #{userId} and m.menu_type in ('M', 'C') and m.status = 0 AND ro.status = 0
order by m.parent_id, m.order_num
</select>
<select id="selectMenuListByRoleId" resultType="Integer">
select m.menu_id
from sys_menu m
left join sys_role_menu rm on m.menu_id = rm.menu_id
where rm.role_id = #{roleId}
<if test="menuCheckStrictly">
and m.menu_id not in (select m.parent_id from sys_menu m inner join sys_role_menu rm on m.menu_id = rm.menu_id and rm.role_id = #{roleId})
</if>
order by m.parent_id, m.order_num
</select>
<select id="selectMenuPerms" resultType="String">
select distinct m.perms
from sys_menu m
left join sys_role_menu rm on m.menu_id = rm.menu_id
left join sys_user_role ur on rm.role_id = ur.role_id
</select>
<select id="selectMenuPermsByUserId" parameterType="Long" resultType="String">
select distinct m.perms
from sys_menu m
left join sys_role_menu rm on m.menu_id = rm.menu_id
left join sys_user_role ur on rm.role_id = ur.role_id
left join sys_role r on r.role_id = ur.role_id
where m.status = '0' and r.status = '0' and ur.user_id = #{userId}
</select>
<select id="selectMenuById" parameterType="Long" resultMap="SysMenuResult">
<include refid="selectMenuVo"/>
where menu_id = #{menuId}
</select>
<select id="hasChildByMenuId" resultType="Integer">
select count(1) from sys_menu where parent_id = #{menuId}
</select>
<select id="checkMenuNameUnique" parameterType="SysMenu" resultMap="SysMenuResult">
<include refid="selectMenuVo"/>
where menu_name=#{menuName} and parent_id = #{parentId} limit 1
</select>
<update id="updateMenu" parameterType="SysMenu">
update sys_menu
<set>
<if test="menuName != null and menuName != ''">menu_name = #{menuName},</if>
<if test="parentId != null">parent_id = #{parentId},</if>
<if test="orderNum != null and orderNum != ''">order_num = #{orderNum},</if>
<if test="path != null and path != ''">path = #{path},</if>
<if test="component != null">component = #{component},</if>
<if test="isFrame != null and isFrame != ''">is_frame = #{isFrame},</if>
<if test="isCache != null and isCache != ''">is_cache = #{isCache},</if>
<if test="menuType != null and menuType != ''">menu_type = #{menuType},</if>
<if test="visible != null">visible = #{visible},</if>
<if test="status != null">status = #{status},</if>
<if test="perms !=null">perms = #{perms},</if>
<if test="icon !=null and icon != ''">icon = #{icon},</if>
<if test="remark != null and remark != ''">remark = #{remark},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
update_time = sysdate()
</set>
where menu_id = #{menuId}
</update>
<insert id="insertMenu" parameterType="SysMenu">
insert into sys_menu(
<if test="menuId != null and menuId != 0">menu_id,</if>
<if test="parentId != null and parentId != 0">parent_id,</if>
<if test="menuName != null and menuName != ''">menu_name,</if>
<if test="orderNum != null and orderNum != ''">order_num,</if>
<if test="path != null and path != ''">path,</if>
<if test="component != null and component != ''">component,</if>
<if test="isFrame != null and isFrame != ''">is_frame,</if>
<if test="isCache != null and isCache != ''">is_cache,</if>
<if test="menuType != null and menuType != ''">menu_type,</if>
<if test="visible != null">visible,</if>
<if test="status != null">status,</if>
<if test="perms !=null and perms != ''">perms,</if>
<if test="icon != null and icon != ''">icon,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
create_time
)values(
<if test="menuId != null and menuId != 0">#{menuId},</if>
<if test="parentId != null and parentId != 0">#{parentId},</if>
<if test="menuName != null and menuName != ''">#{menuName},</if>
<if test="orderNum != null and orderNum != ''">#{orderNum},</if>
<if test="path != null and path != ''">#{path},</if>
<if test="component != null and component != ''">#{component},</if>
<if test="isFrame != null and isFrame != ''">#{isFrame},</if>
<if test="isCache != null and isCache != ''">#{isCache},</if>
<if test="menuType != null and menuType != ''">#{menuType},</if>
<if test="visible != null">#{visible},</if>
<if test="status != null">#{status},</if>
<if test="perms !=null and perms != ''">#{perms},</if>
<if test="icon != null and icon != ''">#{icon},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
sysdate()
)
</insert>
<delete id="deleteMenuById" parameterType="Long">
delete from sys_menu where menu_id = #{menuId}
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.SysNoticeMapper">
<resultMap type="SysNotice" id="SysNoticeResult">
<result property="noticeId" column="notice_id" />
<result property="noticeTitle" column="notice_title" />
<result property="noticeType" column="notice_type" />
<result property="noticeContent" column="notice_content" />
<result property="status" column="status" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectNoticeVo">
select notice_id, notice_title, notice_type, cast(notice_content as char) as notice_content, status, create_by, create_time, update_by, update_time, remark
from sys_notice
</sql>
<select id="selectNoticeById" parameterType="Long" resultMap="SysNoticeResult">
<include refid="selectNoticeVo"/>
where notice_id = #{noticeId}
</select>
<select id="selectNoticeList" parameterType="SysNotice" resultMap="SysNoticeResult">
<include refid="selectNoticeVo"/>
<where>
<if test="noticeTitle != null and noticeTitle != ''">
AND notice_title like concat('%', #{noticeTitle}, '%')
</if>
<if test="noticeType != null and noticeType != ''">
AND notice_type = #{noticeType}
</if>
<if test="createBy != null and createBy != ''">
AND create_by like concat('%', #{createBy}, '%')
</if>
</where>
</select>
<insert id="insertNotice" parameterType="SysNotice">
insert into sys_notice (
<if test="noticeTitle != null and noticeTitle != '' ">notice_title, </if>
<if test="noticeType != null and noticeType != '' ">notice_type, </if>
<if test="noticeContent != null and noticeContent != '' ">notice_content, </if>
<if test="status != null and status != '' ">status, </if>
<if test="remark != null and remark != ''">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
create_time
)values(
<if test="noticeTitle != null and noticeTitle != ''">#{noticeTitle}, </if>
<if test="noticeType != null and noticeType != ''">#{noticeType}, </if>
<if test="noticeContent != null and noticeContent != ''">#{noticeContent}, </if>
<if test="status != null and status != ''">#{status}, </if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
sysdate()
)
</insert>
<update id="updateNotice" parameterType="SysNotice">
update sys_notice
<set>
<if test="noticeTitle != null and noticeTitle != ''">notice_title = #{noticeTitle}, </if>
<if test="noticeType != null and noticeType != ''">notice_type = #{noticeType}, </if>
<if test="noticeContent != null">notice_content = #{noticeContent}, </if>
<if test="status != null and status != ''">status = #{status}, </if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
update_time = sysdate()
</set>
where notice_id = #{noticeId}
</update>
<delete id="deleteNoticeById" parameterType="Long">
delete from sys_notice where notice_id = #{noticeId}
</delete>
<delete id="deleteNoticeByIds" parameterType="Long">
delete from sys_notice where notice_id in
<foreach item="noticeId" collection="array" open="(" separator="," close=")">
#{noticeId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.SysOperLogMapper">
<resultMap type="SysOperLog" id="SysOperLogResult">
<id property="operId" column="oper_id" />
<result property="title" column="title" />
<result property="businessType" column="business_type" />
<result property="method" column="method" />
<result property="requestMethod" column="request_method" />
<result property="operatorType" column="operator_type" />
<result property="operName" column="oper_name" />
<result property="deptName" column="dept_name" />
<result property="operUrl" column="oper_url" />
<result property="operIp" column="oper_ip" />
<result property="operLocation" column="oper_location" />
<result property="operParam" column="oper_param" />
<result property="jsonResult" column="json_result" />
<result property="status" column="status" />
<result property="errorMsg" column="error_msg" />
<result property="operTime" column="oper_time" />
</resultMap>
<sql id="selectOperLogVo">
select oper_id, title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_location, oper_param, json_result, status, error_msg, oper_time
from sys_oper_log
</sql>
<insert id="insertOperlog" parameterType="SysOperLog">
insert into sys_oper_log(title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_location, oper_param, json_result, status, error_msg, oper_time)
values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{operName}, #{deptName}, #{operUrl}, #{operIp}, #{operLocation}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, sysdate())
</insert>
<select id="selectOperLogList" parameterType="SysOperLog" resultMap="SysOperLogResult">
<include refid="selectOperLogVo"/>
<where>
<if test="title != null and title != ''">
AND title like concat('%', #{title}, '%')
</if>
<if test="businessType != null and businessType != ''">
AND business_type = #{businessType}
</if>
<if test="businessTypes != null and businessTypes.length > 0">
AND business_type in
<foreach collection="businessTypes" item="businessType" open="(" separator="," close=")">
#{businessType}
</foreach>
</if>
<if test="status != null">
AND status = #{status}
</if>
<if test="operName != null and operName != ''">
AND oper_name like concat('%', #{operName}, '%')
</if>
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
and date_format(oper_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
</if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
and date_format(oper_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
</if>
</where>
order by oper_id desc
</select>
<delete id="deleteOperLogByIds" parameterType="Long">
delete from sys_oper_log where oper_id in
<foreach collection="array" item="operId" open="(" separator="," close=")">
#{operId}
</foreach>
</delete>
<select id="selectOperLogById" parameterType="Long" resultMap="SysOperLogResult">
<include refid="selectOperLogVo"/>
where oper_id = #{operId}
</select>
<update id="cleanOperLog">
truncate table sys_oper_log
</update>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.SysPostMapper">
<resultMap type="SysPost" id="SysPostResult">
<id property="postId" column="post_id" />
<result property="postCode" column="post_code" />
<result property="postName" column="post_name" />
<result property="postSort" column="post_sort" />
<result property="status" column="status" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectPostVo">
select post_id, post_code, post_name, post_sort, status, create_by, create_time, remark
from sys_post
</sql>
<select id="selectPostList" parameterType="SysPost" resultMap="SysPostResult">
<include refid="selectPostVo"/>
<where>
<if test="postCode != null and postCode != ''">
AND post_code like concat('%', #{postCode}, '%')
</if>
<if test="status != null and status != ''">
AND status = #{status}
</if>
<if test="postName != null and postName != ''">
AND post_name like concat('%', #{postName}, '%')
</if>
</where>
</select>
<select id="selectPostAll" resultMap="SysPostResult">
<include refid="selectPostVo"/>
</select>
<select id="selectPostById" parameterType="Long" resultMap="SysPostResult">
<include refid="selectPostVo"/>
where post_id = #{postId}
</select>
<select id="selectPostListByUserId" parameterType="Long" resultType="Integer">
select p.post_id
from sys_post p
left join sys_user_post up on up.post_id = p.post_id
left join sys_user u on u.user_id = up.user_id
where u.user_id = #{userId}
</select>
<select id="getPostListByUserId" parameterType="Long" resultMap="SysPostResult">
select p.*
from sys_post p
left join sys_user_post up on up.post_id = p.post_id
left join sys_user u on u.user_id = up.user_id
where u.user_id = #{userId}
</select>
<select id="selectPostsByUserName" parameterType="String" resultMap="SysPostResult">
select p.post_id, p.post_name, p.post_code
from sys_post p
left join sys_user_post up on up.post_id = p.post_id
left join sys_user u on u.user_id = up.user_id
where u.user_name = #{userName}
</select>
<select id="checkPostNameUnique" parameterType="String" resultMap="SysPostResult">
<include refid="selectPostVo"/>
where post_name=#{postName} limit 1
</select>
<select id="checkPostCodeUnique" parameterType="String" resultMap="SysPostResult">
<include refid="selectPostVo"/>
where post_code=#{postCode} limit 1
</select>
<update id="updatePost" parameterType="SysPost">
update sys_post
<set>
<if test="postCode != null and postCode != ''">post_code = #{postCode},</if>
<if test="postName != null and postName != ''">post_name = #{postName},</if>
<if test="postSort != null and postSort != ''">post_sort = #{postSort},</if>
<if test="status != null and status != ''">status = #{status},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
update_time = sysdate()
</set>
where post_id = #{postId}
</update>
<insert id="insertPost" parameterType="SysPost" useGeneratedKeys="true" keyProperty="postId">
insert into sys_post(
<if test="postId != null and postId != 0">post_id,</if>
<if test="postCode != null and postCode != ''">post_code,</if>
<if test="postName != null and postName != ''">post_name,</if>
<if test="postSort != null and postSort != ''">post_sort,</if>
<if test="status != null and status != ''">status,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
create_time
)values(
<if test="postId != null and postId != 0">#{postId},</if>
<if test="postCode != null and postCode != ''">#{postCode},</if>
<if test="postName != null and postName != ''">#{postName},</if>
<if test="postSort != null and postSort != ''">#{postSort},</if>
<if test="status != null and status != ''">#{status},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
sysdate()
)
</insert>
<delete id="deletePostById" parameterType="Long">
delete from sys_post where post_id = #{postId}
</delete>
<delete id="deletePostByIds" parameterType="Long">
delete from sys_post where post_id in
<foreach collection="array" item="postId" open="(" separator="," close=")">
#{postId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.SysRoleDeptMapper">
<resultMap type="SysRoleDept" id="SysRoleDeptResult">
<result property="roleId" column="role_id" />
<result property="deptId" column="dept_id" />
</resultMap>
<delete id="deleteRoleDeptByRoleId" parameterType="Long">
delete from sys_role_dept where role_id=#{roleId}
</delete>
<select id="selectCountRoleDeptByDeptId" resultType="Integer">
select count(1) from sys_role_dept where dept_id=#{deptId}
</select>
<delete id="deleteRoleDept" parameterType="Long">
delete from sys_role_dept where role_id in
<foreach collection="array" item="roleId" open="(" separator="," close=")">
#{roleId}
</foreach>
</delete>
<insert id="batchRoleDept">
insert into sys_role_dept(role_id, dept_id) values
<foreach item="item" index="index" collection="list" separator=",">
(#{item.roleId},#{item.deptId})
</foreach>
</insert>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.SysRoleMapper">
<resultMap type="SysRole" id="SysRoleResult">
<id property="roleId" column="role_id" />
<result property="roleName" column="role_name" />
<result property="roleKey" column="role_key" />
<result property="roleSort" column="role_sort" />
<result property="dataScope" column="data_scope" />
<result property="menuCheckStrictly" column="menu_check_strictly" />
<result property="deptCheckStrictly" column="dept_check_strictly" />
<result property="status" column="status" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectRoleVo">
select distinct r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.menu_check_strictly, r.dept_check_strictly,
r.status, r.del_flag, r.create_time, r.remark
from sys_role r
left join sys_user_role ur on ur.role_id = r.role_id
left join sys_user u on u.user_id = ur.user_id
left join sys_dept d on u.dept_id = d.dept_id
</sql>
<select id="selectRoleList" parameterType="SysRole" resultMap="SysRoleResult">
<include refid="selectRoleVo"/>
where r.del_flag = '0'
<if test="roleName != null and roleName != ''">
AND r.role_name like concat('%', #{roleName}, '%')
</if>
<if test="status != null and status != ''">
AND r.status = #{status}
</if>
<if test="roleKey != null and roleKey != ''">
AND r.role_key like concat('%', #{roleKey}, '%')
</if>
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
and date_format(r.create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
</if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
and date_format(r.create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
</if>
<!-- 数据范围过滤 -->
${params.dataScope}
order by r.role_sort
</select>
<select id="selectRolePermissionByUserId" parameterType="Long" resultMap="SysRoleResult">
<include refid="selectRoleVo"/>
WHERE r.del_flag = '0' and ur.user_id = #{userId}
</select>
<select id="selectRoleAll" resultMap="SysRoleResult">
<include refid="selectRoleVo"/>
</select>
<select id="selectRoleListByUserId" parameterType="Long" resultType="Integer">
select r.role_id
from sys_role r
left join sys_user_role ur on ur.role_id = r.role_id
left join sys_user u on u.user_id = ur.user_id
where u.user_id = #{userId}
</select>
<select id="selectRoleById" parameterType="Long" resultMap="SysRoleResult">
<include refid="selectRoleVo"/>
where r.role_id = #{roleId}
</select>
<select id="selectRolesByUserName" parameterType="String" resultMap="SysRoleResult">
<include refid="selectRoleVo"/>
WHERE r.del_flag = '0' and u.user_name = #{userName}
</select>
<select id="checkRoleNameUnique" parameterType="String" resultMap="SysRoleResult">
<include refid="selectRoleVo"/>
where r.role_name=#{roleName} limit 1
</select>
<select id="checkRoleKeyUnique" parameterType="String" resultMap="SysRoleResult">
<include refid="selectRoleVo"/>
where r.role_key=#{roleKey} limit 1
</select>
<insert id="insertRole" parameterType="SysRole" useGeneratedKeys="true" keyProperty="roleId">
insert into sys_role(
<if test="roleId != null and roleId != 0">role_id,</if>
<if test="roleName != null and roleName != ''">role_name,</if>
<if test="roleKey != null and roleKey != ''">role_key,</if>
<if test="roleSort != null and roleSort != ''">role_sort,</if>
<if test="dataScope != null and dataScope != ''">data_scope,</if>
<if test="menuCheckStrictly != null">menu_check_strictly,</if>
<if test="deptCheckStrictly != null">dept_check_strictly,</if>
<if test="status != null and status != ''">status,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
create_time
)values(
<if test="roleId != null and roleId != 0">#{roleId},</if>
<if test="roleName != null and roleName != ''">#{roleName},</if>
<if test="roleKey != null and roleKey != ''">#{roleKey},</if>
<if test="roleSort != null and roleSort != ''">#{roleSort},</if>
<if test="dataScope != null and dataScope != ''">#{dataScope},</if>
<if test="menuCheckStrictly != null">#{menuCheckStrictly},</if>
<if test="deptCheckStrictly != null">#{deptCheckStrictly},</if>
<if test="status != null and status != ''">#{status},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
sysdate()
)
</insert>
<update id="updateRole" parameterType="SysRole">
update sys_role
<set>
<if test="roleName != null and roleName != ''">role_name = #{roleName},</if>
<if test="roleKey != null and roleKey != ''">role_key = #{roleKey},</if>
<if test="roleSort != null and roleSort != ''">role_sort = #{roleSort},</if>
<if test="dataScope != null and dataScope != ''">data_scope = #{dataScope},</if>
<if test="menuCheckStrictly != null">menu_check_strictly = #{menuCheckStrictly},</if>
<if test="deptCheckStrictly != null">dept_check_strictly = #{deptCheckStrictly},</if>
<if test="status != null and status != ''">status = #{status},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
update_time = sysdate()
</set>
where role_id = #{roleId}
</update>
<delete id="deleteRoleById" parameterType="Long">
update sys_role set del_flag = '2' where role_id = #{roleId}
</delete>
<delete id="deleteRoleByIds" parameterType="Long">
update sys_role set del_flag = '2' where role_id in
<foreach collection="array" item="roleId" open="(" separator="," close=")">
#{roleId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.SysRoleMenuMapper">
<resultMap type="SysRoleMenu" id="SysRoleMenuResult">
<result property="roleId" column="role_id" />
<result property="menuId" column="menu_id" />
</resultMap>
<select id="checkMenuExistRole" resultType="Integer">
select count(1) from sys_role_menu where menu_id = #{menuId}
</select>
<delete id="deleteRoleMenuByRoleId" parameterType="Long">
delete from sys_role_menu where role_id=#{roleId}
</delete>
<delete id="deleteRoleMenu" parameterType="Long">
delete from sys_role_menu where role_id in
<foreach collection="array" item="roleId" open="(" separator="," close=")">
#{roleId}
</foreach>
</delete>
<insert id="batchRoleMenu">
insert into sys_role_menu(role_id, menu_id) values
<foreach item="item" index="index" collection="list" separator=",">
(#{item.roleId},#{item.menuId})
</foreach>
</insert>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.SysSettingMapper">
<resultMap type="SysSetting" id="SysSettingResult">
<result property="systemId" column="system_id" />
<result property="systemName" column="system_name" />
<result property="systemKey" column="system_key" />
<result property="systemValue" column="system_value" />
<result property="systemType" column="system_type" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
</resultMap>
<sql id="selectSysSettingVo">
select system_id, system_name, system_key, system_value, system_type, create_by, create_time, update_by, update_time, is_del from sys_setting
</sql>
<select id="selectSysSettingList" parameterType="SysSetting" resultMap="SysSettingResult">
<include refid="selectSysSettingVo"/>
<where>
<if test="systemName != null and systemName != ''"> and system_name like concat('%', #{systemName}, '%')</if>
<if test="systemKey != null and systemKey != ''"> and system_key = #{systemKey}</if>
<if test="systemValue != null and systemValue != ''"> and system_value = #{systemValue}</if>
<if test="systemType != null and systemType != ''"> and system_type = #{systemType}</if>
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
</where>
</select>
<select id="selectSysSettingById" parameterType="Integer" resultMap="SysSettingResult">
<include refid="selectSysSettingVo"/>
where system_id = #{systemId}
</select>
<insert id="insertSysSetting" parameterType="SysSetting" useGeneratedKeys="true" keyProperty="systemId">
insert into sys_setting
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="systemName != null">system_name,</if>
<if test="systemKey != null">system_key,</if>
<if test="systemValue != null">system_value,</if>
<if test="systemType != null">system_type,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="systemName != null">#{systemName},</if>
<if test="systemKey != null">#{systemKey},</if>
<if test="systemValue != null">#{systemValue},</if>
<if test="systemType != null">#{systemType},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
</trim>
</insert>
<update id="updateSysSetting" parameterType="SysSetting">
update sys_setting
<trim prefix="SET" suffixOverrides=",">
<if test="systemName != null">system_name = #{systemName},</if>
<if test="systemKey != null">system_key = #{systemKey},</if>
<if test="systemValue != null">system_value = #{systemValue},</if>
<if test="systemType != null">system_type = #{systemType},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
</trim>
where system_id = #{systemId}
</update>
<delete id="deleteSysSettingById" parameterType="Integer">
delete from sys_setting where system_id = #{systemId}
</delete>
<delete id="deleteSysSettingByIds" parameterType="String">
delete from sys_setting where system_id in
<foreach item="systemId" collection="array" open="(" separator="," close=")">
#{systemId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.SysUserMapper">
<resultMap type="SysUser" id="SysUserResult">
<id property="userId" column="user_id" />
<result property="deptId" column="dept_id" />
<result property="userName" column="user_name" />
<result property="nickName" column="nick_name" />
<result property="email" column="email" />
<result property="phonenumber" column="phonenumber" />
<result property="sex" column="sex" />
<result property="avatar" column="avatar" />
<result property="password" column="password" />
<result property="status" column="status" />
<result property="delFlag" column="del_flag" />
<result property="loginIp" column="login_ip" />
<result property="loginDate" column="login_date" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="enterpriseName" column="enterprise_name" />
<association property="dept" column="dept_id" javaType="SysDept" resultMap="deptResult" />
<collection property="roles" javaType="java.util.List" resultMap="RoleResult" />
</resultMap>
<resultMap id="deptResult" type="SysDept">
<id property="deptId" column="dept_id" />
<result property="parentId" column="parent_id" />
<result property="deptName" column="dept_name" />
<result property="orderNum" column="order_num" />
<result property="leader" column="leader" />
<result property="status" column="dept_status" />
</resultMap>
<resultMap id="RoleResult" type="SysRole">
<id property="roleId" column="role_id" />
<result property="roleName" column="role_name" />
<result property="roleKey" column="role_key" />
<result property="roleSort" column="role_sort" />
<result property="dataScope" column="data_scope" />
<result property="status" column="role_status" />
</resultMap>
<sql id="selectUserVo">
select u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark,
d.dept_id, d.parent_id, d.dept_name, d.order_num, d.leader, d.status as dept_status,
r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status
from sys_user u
left join sys_dept d on u.dept_id = d.dept_id
left join sys_user_role ur on u.user_id = ur.user_id
left join sys_role r on r.role_id = ur.role_id
</sql>
<select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult">
select u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, (CASE WHEN u.dept_id = '-2' THEN '政府部门'
ELSE enter.enterprise_name END)AS enterprise_name from sys_user u
LEFT JOIN t_enterprise_info enter ON u.dept_id = enter.enterprise_id
where u.del_flag = '0'
<if test="userName != null and userName != ''">
AND u.user_name like concat('%', #{userName}, '%')
</if>
<if test="status != null and status != ''">
AND u.status = #{status}
</if>
<if test="phonenumber != null and phonenumber != ''">
AND u.phonenumber like concat('%', #{phonenumber}, '%')
</if>
<if test="enterpriseId != null and enterpriseId != ''">
AND enter.enterprise_id = #{enterpriseId}
</if>
<if test="nickName != null and nickName != ''">
AND u.nick_name like concat('%', #{nickName}, '%')
</if>
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
AND date_format(u.create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
</if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
AND date_format(u.create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
</if>
<!--<if test="deptId != null and deptId != 0">
AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId}, ancestors) ))
</if>-->
<!-- 数据范围过滤 -->
${params.dataScope}
</select>
<select id="selectUserByUserName" parameterType="String" resultMap="SysUserResult">
<include refid="selectUserVo"/>
where u.user_name = #{userName}
</select>
<select id="selectXunjianByUserName" parameterType="string" resultMap="SysUserResult">
SELECT person_id AS user_id, person_account AS user_name,
person_name AS nick_name,person_password AS password,
beyond_enterprise_id AS dept_id
FROM t_line_patrol_person
WHERE person_account = #{userName} AND is_del = 0
</select>
<select id="selectUserById" parameterType="Long" resultMap="SysUserResult">
<include refid="selectUserVo"/>
where u.user_id = #{userId}
</select>
<select id="checkUserNameUnique" parameterType="String" resultType="int">
select count(1) from sys_user where user_name = #{userName} limit 1
</select>
<select id="checkPhoneUnique" parameterType="String" resultMap="SysUserResult">
select user_id, phonenumber from sys_user where phonenumber = #{phonenumber} limit 1
</select>
<select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult">
select user_id, email from sys_user where email = #{email} limit 1
</select>
<insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">
insert into sys_user(
<if test="userId != null and userId != 0">user_id,</if>
<if test="deptId != null and deptId != 0">dept_id,</if>
<if test="userName != null and userName != ''">user_name,</if>
<if test="nickName != null and nickName != ''">nick_name,</if>
<if test="email != null and email != ''">email,</if>
<if test="avatar != null and avatar != ''">avatar,</if>
<if test="phonenumber != null and phonenumber != ''">phonenumber,</if>
<if test="sex != null and sex != ''">sex,</if>
<if test="password != null and password != ''">password,</if>
<if test="status != null and status != ''">status,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="remark != null and remark != ''">remark,</if>
create_time
)values(
<if test="userId != null and userId != ''">#{userId},</if>
<if test="deptId != null and deptId != ''">#{deptId},</if>
<if test="userName != null and userName != ''">#{userName},</if>
<if test="nickName != null and nickName != ''">#{nickName},</if>
<if test="email != null and email != ''">#{email},</if>
<if test="avatar != null and avatar != ''">#{avatar},</if>
<if test="phonenumber != null and phonenumber != ''">#{phonenumber},</if>
<if test="sex != null and sex != ''">#{sex},</if>
<if test="password != null and password != ''">#{password},</if>
<if test="status != null and status != ''">#{status},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="remark != null and remark != ''">#{remark},</if>
sysdate()
)
</insert>
<update id="updateUser" parameterType="SysUser">
update sys_user
<set>
<if test="deptId != null and deptId != 0">dept_id = #{deptId},</if>
<if test="userName != null and userName != ''">user_name = #{userName},</if>
<if test="nickName != null and nickName != ''">nick_name = #{nickName},</if>
<if test="email != null ">email = #{email},</if>
<if test="phonenumber != null ">phonenumber = #{phonenumber},</if>
<if test="sex != null and sex != ''">sex = #{sex},</if>
<if test="avatar != null and avatar != ''">avatar = #{avatar},</if>
<if test="password != null and password != ''">password = #{password},</if>
<if test="status != null and status != ''">status = #{status},</if>
<if test="loginIp != null and loginIp != ''">login_ip = #{loginIp},</if>
<if test="loginDate != null">login_date = #{loginDate},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="remark != null">remark = #{remark},</if>
update_time = sysdate()
</set>
where user_id = #{userId}
</update>
<update id="updateUserStatus" parameterType="SysUser">
update sys_user set status = #{status} where user_id = #{userId}
</update>
<update id="updateUserAvatar" parameterType="SysUser">
update sys_user set avatar = #{avatar} where user_name = #{userName}
</update>
<update id="resetUserPwd" parameterType="SysUser">
update sys_user set password = #{password} where user_name = #{userName}
</update>
<delete id="deleteUserById" parameterType="Long">
update sys_user set del_flag = '2' where user_id = #{userId}
</delete>
<delete id="deleteUserByIds" parameterType="Long">
update sys_user set del_flag = '2' where user_id in
<foreach collection="array" item="userId" open="(" separator="," close=")">
#{userId}
</foreach>
</delete>
<select id="getInspectionUsers" parameterType="java.util.Map" resultMap="SysUserResult">
SELECT
u.user_id,
u.dept_id,
u.user_name,
u.nick_name
FROM
sys_user u
LEFT JOIN sys_user_post up ON u.user_id = up.user_id
LEFT JOIN sys_post p ON up.post_id = p.post_id
<where>
<if test="enterpriseId != null and enterpriseId != 0">
AND u.dept_id = #{enterpriseId}
</if>
<if test="postCode !=null and postCode != ''">
AND p.post_code = #{postCode}
</if>
</where>
</select>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.SysUserPostMapper">
<resultMap type="SysUserPost" id="SysUserPostResult">
<result property="userId" column="user_id" />
<result property="postId" column="post_id" />
</resultMap>
<delete id="deleteUserPostByUserId" parameterType="Long">
delete from sys_user_post where user_id=#{userId}
</delete>
<select id="countUserPostById" resultType="Integer">
select count(1) from sys_user_post where post_id=#{postId}
</select>
<delete id="deleteUserPost" parameterType="Long">
delete from sys_user_post where user_id in
<foreach collection="array" item="userId" open="(" separator="," close=")">
#{userId}
</foreach>
</delete>
<insert id="batchUserPost">
insert into sys_user_post(user_id, post_id) values
<foreach item="item" index="index" collection="list" separator=",">
(#{item.userId},#{item.postId})
</foreach>
</insert>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.SysUserRoleMapper">
<resultMap type="SysUserRole" id="SysUserRoleResult">
<result property="userId" column="user_id" />
<result property="roleId" column="role_id" />
</resultMap>
<delete id="deleteUserRoleByUserId" parameterType="Long">
delete from sys_user_role where user_id=#{userId}
</delete>
<select id="countUserRoleByRoleId" resultType="Integer">
select count(1) from sys_user_role where role_id=#{roleId}
</select>
<delete id="deleteUserRole" parameterType="Long">
delete from sys_user_role where user_id in
<foreach collection="array" item="userId" open="(" separator="," close=")">
#{userId}
</foreach>
</delete>
<insert id="batchUserRole">
insert into sys_user_role(user_id, role_id) values
<foreach item="item" index="index" collection="list" separator=",">
(#{item.userId},#{item.roleId})
</foreach>
</insert>
<delete id="deleteUserRoleInfo" parameterType="SysUserRole">
delete from sys_user_role where user_id=#{userId} and role_id=#{roleId}
</delete>
<delete id="deleteUserRoleInfos">
delete from sys_user_role where role_id=#{roleId} and user_id in
<foreach collection="userIds" item="userId" open="(" separator="," close=")">
#{userId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TComplainDealMapper">
<resultMap type="TComplainDeal" id="TComplainDealResult">
<result property="complainDealId" column="complain_deal_id" />
<result property="complainName" column="complain_name" />
<result property="complainPhone" column="complain_phone" />
<result property="complainMatter" column="complain_matter" />
<result property="transferRecord" column="transfer_record" />
<result property="dealTime" column="deal_time" />
<result property="dealCondition" column="deal_condition" />
<result property="complainAssignEnterproseName" column="complain_assign_enterprose_name" />
<result property="complainAssignEnterproseId" column="complain_assign_enterprose_id" />
<result property="complainAssignManId" column="complain_assign_man_id" />
<result property="complainAssignMan" column="complain_assign_man" />
<result property="complainStatus" column="complain_status" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
</resultMap>
<sql id="selectTComplainDealVo">
select complain_deal_id, complain_name, complain_phone, complain_matter, transfer_record, deal_time,deal_condition, complain_assign_enterprose_name, complain_assign_enterprose_id, complain_assign_man_id, complain_assign_man, complain_status, create_by, create_time, update_by, update_time, is_del, remarks from t_complain_deal
</sql>
<select id="selectTComplainDealList" parameterType="TComplainDeal" resultMap="TComplainDealResult">
<include refid="selectTComplainDealVo"/>
<where>
<if test="complainName != null and complainName != ''"> and complain_name like concat('%', #{complainName}, '%')</if>
<if test="complainPhone != null and complainPhone != ''"> and complain_phone = #{complainPhone}</if>
<if test="complainMatter != null and complainMatter != ''"> and complain_matter = #{complainMatter}</if>
<if test="transferRecord != null and transferRecord != ''"> and transfer_record = #{transferRecord}</if>
<if test="dealCondition != null and dealCondition != ''"> and deal_condition = #{dealCondition}</if>
<if test="complainAssignEnterproseName != null and complainAssignEnterproseName != ''"> and complain_assign_enterprose_name like concat('%', #{complainAssignEnterproseName}, '%')</if>
<if test="complainAssignEnterproseId != null "> and complain_assign_enterprose_id = #{complainAssignEnterproseId}</if>
<if test="complainAssignManId != null and complainAssignManId != ''"> and complain_assign_man_id = #{complainAssignManId}</if>
<if test="complainAssignMan != null "> and complain_assign_man = #{complainAssignMan}</if>
<if test="complainStatus != null and complainStatus != ''"> and complain_status = #{complainStatus}</if>
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
</where>
order by create_time desc
</select>
<select id="selectTComplainDealById" parameterType="Long" resultMap="TComplainDealResult">
<include refid="selectTComplainDealVo"/>
where complain_deal_id = #{complainDealId}
</select>
<select id="countTComplainDeal" resultType="HomepageVo">
select COUNT(t.complain_deal_id) AS complaintTotal,
SUM(CASE t.complain_status WHEN '2' THEN 1 ELSE 0 END) AS complaintFeedbackTotal
from (select * from t_complain_deal where is_del = '0') t
</select>
<insert id="insertTComplainDeal" parameterType="TComplainDeal" useGeneratedKeys="true" keyProperty="complainDealId">
insert into t_complain_deal
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="complainName != null">complain_name,</if>
<if test="complainPhone != null">complain_phone,</if>
<if test="complainMatter != null">complain_matter,</if>
<if test="transferRecord != null">transfer_record,</if>
<if test="dealTime !=null">deal_time,</if>
<if test="dealCondition != null">deal_condition,</if>
<if test="complainAssignEnterproseName != null">complain_assign_enterprose_name,</if>
<if test="complainAssignEnterproseId != null">complain_assign_enterprose_id,</if>
<if test="complainAssignManId != null">complain_assign_man_id,</if>
<if test="complainAssignMan != null">complain_assign_man,</if>
<if test="complainStatus != null">complain_status,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="complainName != null">#{complainName},</if>
<if test="complainPhone != null">#{complainPhone},</if>
<if test="complainMatter != null">#{complainMatter},</if>
<if test="transferRecord != null">#{transferRecord},</if>
<if test="dealTime != null">#{dealTime},</if>
<if test="dealCondition != null">#{dealCondition},</if>
<if test="complainAssignEnterproseName != null">#{complainAssignEnterproseName},</if>
<if test="complainAssignEnterproseId != null">#{complainAssignEnterproseId},</if>
<if test="complainAssignManId != null">#{complainAssignManId},</if>
<if test="complainAssignMan != null">#{complainAssignMan},</if>
<if test="complainStatus != null">#{complainStatus},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTComplainDeal" parameterType="TComplainDeal">
update t_complain_deal
<trim prefix="SET" suffixOverrides=",">
<if test="complainName != null">complain_name = #{complainName},</if>
<if test="complainPhone != null">complain_phone = #{complainPhone},</if>
<if test="complainMatter != null">complain_matter = #{complainMatter},</if>
<if test="transferRecord != null">transfer_record = #{transferRecord},</if>
<if test="dealTime != null">deal_time = #{dealTime},</if>
<if test="dealCondition != null">deal_condition = #{dealCondition},</if>
<if test="complainAssignEnterproseName != null">complain_assign_enterprose_name = #{complainAssignEnterproseName},</if>
<if test="complainAssignEnterproseId != null">complain_assign_enterprose_id = #{complainAssignEnterproseId},</if>
<if test="complainAssignManId != null">complain_assign_man_id = #{complainAssignManId},</if>
<if test="complainAssignMan != null">complain_assign_man = #{complainAssignMan},</if>
<if test="complainStatus != null">complain_status = #{complainStatus},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where complain_deal_id = #{complainDealId}
</update>
<delete id="deleteTComplainDealById" parameterType="Long">
delete from t_complain_deal where complain_deal_id = #{complainDealId}
</delete>
<delete id="deleteTComplainDealByIds" parameterType="String">
delete from t_complain_deal where complain_deal_id in
<foreach item="complainDealId" collection="array" open="(" separator="," close=")">
#{complainDealId}
</foreach>
</delete>
<select id="selectUserByenterproseId" resultType="java.util.HashMap">
SELECT user_id as id ,nick_name as nickName FROM sys_user
WHERE del_flag!=2 and dept_id = #{enterproseId}
</select>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TDetectorInfoMapper">
<resultMap type="TDetectorInfo" id="TDetectorInfoResult">
<result property="detectorId" column="detector_id" />
<result property="enterpriseId" column="enterprise_id" />
<result property="userId" column="user_id" />
<result property="detectorName" column="detector_name" />
<result property="detectorCode" column="detector_code" />
<result property="detectorAddr" column="detector_addr" />
<result property="detectorType" column="detector_type" />
<result property="medium" column="medium" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="iotNo" column="iot_no" />
<result property="linkman" column="linkman" />
<result property="phone" column="phone" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="alarmTime" column="alarm_time" />
<result property="detectorStatus" column="detector_status" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
<result property="beyondDevicename" column="beyondDevicename" />
<result property="enterpriseName" column="enterprise_name" />
</resultMap>
<sql id="selectTDetectorInfoVo">
select detector_id, enterprise_id, user_id, detector_name, detector_code, detector_addr, detector_type, medium, longitude, latitude, iot_no, linkman, phone, create_time, update_time, alarm_time, detector_status, is_del, remarks from t_detector_info
</sql>
<select id="selectTDetectorInfoList" parameterType="TDetectorInfo" resultMap="TDetectorInfoResult">
<include refid="selectTDetectorInfoVo"/>
<where>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="enterpriseId != null and enterpriseId != 0 "> and enterprise_id = #{enterpriseId}</if>
<if test="detectorName != null and detectorName != ''"> and detector_name like concat('%', #{detectorName}, '%')</if>
<if test="detectorCode != null and detectorCode != ''"> and detector_code = #{detectorCode}</if>
<if test="detectorAddr != null and detectorAddr != ''"> and detector_addr = #{detectorAddr}</if>
<if test="detectorType != null and detectorType != ''"> and detector_type = #{detectorType}</if>
<if test="medium != null and medium != ''"> and medium = #{medium}</if>
<if test="longitude != null "> and longitude = #{longitude}</if>
<if test="latitude != null "> and latitude = #{latitude}</if>
<if test="iotNo != null and iotNo != ''"> and iot_no = #{iotNo}</if>
<if test="linkman != null and linkman != ''"> and linkman = #{linkman}</if>
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
<if test="createTime != null "> and create_time = #{createTime}</if>
<if test="updateTime != null "> and update_time = #{updateTime}</if>
<if test="alarmTime != null "> and alarm_time = #{alarmTime}</if>
<if test="detectorStatus != null and detectorStatus != ''"> and detector_status = #{detectorStatus}</if>
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
</where>
order by detector_status desc, alarm_time desc
</select>
<select id="selectTDetectorInfoById" parameterType="Long" resultMap="TDetectorInfoResult">
<include refid="selectTDetectorInfoVo"/>
where detector_id = #{detectorId}
</select>
<select id="selectTDetectorInfoByCode" parameterType="String" resultMap="TDetectorInfoResult">
<include refid="selectTDetectorInfoVo"/>
where detector_code = #{detectorCode}
and is_del = '0'
</select>
<insert id="insertTDetectorInfo" parameterType="TDetectorInfo" useGeneratedKeys="true" keyProperty="detectorId">
insert into t_detector_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userId != null">user_id,</if>
<if test="enterpriseId != null and enterpriseId != 0">enterprise_id,</if>
<if test="detectorName != null">detector_name,</if>
<if test="detectorCode != null">detector_code,</if>
<if test="detectorAddr != null">detector_addr,</if>
<if test="detectorType != null">detector_type,</if>
<if test="medium != null">medium,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="iotNo != null">iot_no,</if>
<if test="linkman != null">linkman,</if>
<if test="phone != null">phone,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="alarmTime != null">alarm_time,</if>
<if test="detectorStatus != null">detector_status,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userId != null">#{userId},</if>
<if test="enterpriseId != null and enterpriseId != 0">#{enterpriseId},</if>
<if test="detectorName != null">#{detectorName},</if>
<if test="detectorCode != null">#{detectorCode},</if>
<if test="detectorAddr != null">#{detectorAddr},</if>
<if test="detectorType != null">#{detectorType},</if>
<if test="medium != null">#{medium},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="iotNo != null">#{iotNo},</if>
<if test="linkman != null">#{linkman},</if>
<if test="phone != null">#{phone},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="alarmTime != null">#{alarmTime},</if>
<if test="detectorStatus != null">#{detectorStatus},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<insert id="insertBatch" parameterType="java.util.List" >
insert into t_detector_info (
user_id, detector_name, detector_code, detector_addr, detector_type, medium, longitude, latitude, linkman, phone, create_time
)
values
<foreach collection="list" item="item" index="index" separator=",">
(
#{item.userId,jdbcType=INTEGER}, #{item.detectorName,jdbcType=VARCHAR}, #{item.detectorCode,jdbcType=VARCHAR},
#{item.detectorAddr,jdbcType=VARCHAR}, #{item.detectorType,jdbcType=VARCHAR}, #{item.medium,jdbcType=VARCHAR},
#{item.longitude,jdbcType=DECIMAL}, #{item.latitude,jdbcType=DECIMAL}, #{item.linkman,jdbcType=VARCHAR},
#{item.phone,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}
)
</foreach>
</insert>
<update id="updateBatch" parameterType="java.util.List">
update t_detector_info d
<trim prefix="set" suffixOverrides=",">
<trim prefix="user_id=case" suffix="end,">
<foreach collection="list" item="item" index="index">
<if test="item.userId != null">
when detector_code=#{item.detectorCode} then #{item.userId}
</if>
</foreach>
</trim>
<trim prefix="detector_name=case" suffix="end,">
<foreach collection="list" item="item" index="index">
<if test="item.detectorName != null &amp;&amp; item.detectorName != ''">
when detector_code=#{item.detectorCode} then #{item.detectorName}
</if>
</foreach>
</trim>
<trim prefix="detector_addr=case" suffix="end,">
<foreach collection="list" item="item" index="index">
<if test="item.detectorAddr != null &amp;&amp; item.detectorAddr != ''">
when detector_code=#{item.detectorCode} then #{item.detectorAddr}
</if>
</foreach>
</trim>
<trim prefix="detector_type=case" suffix="end,">
<foreach collection="list" item="item" index="index">
<if test="item.detectorType != null &amp;&amp; item.detectorType != ''">
when detector_code=#{item.detectorCode} then #{item.detectorType}
</if>
</foreach>
</trim>
<trim prefix="medium=case" suffix="end,">
<foreach collection="list" item="item" index="index">
<if test="item.medium != null &amp;&amp; item.medium != ''">
when detector_code=#{item.detectorCode} then #{item.medium}
</if>
</foreach>
</trim>
<trim prefix="longitude=case" suffix="end,">
<foreach collection="list" item="item" index="index">
<if test="item.longitude != null &amp;&amp; item.longitude != ''">
when detector_code=#{item.detectorCode} then #{item.longitude}
</if>
</foreach>
</trim>
<trim prefix="latitude=case" suffix="end,">
<foreach collection="list" item="item" index="index">
<if test="item.latitude != null &amp;&amp; item.latitude != ''">
when detector_code=#{item.detectorCode} then #{item.latitude}
</if>
</foreach>
</trim>
<trim prefix="linkman=case" suffix="end,">
<foreach collection="list" item="item" index="index">
<if test="item.linkman != null &amp;&amp; item.linkman != ''">
when detector_code=#{item.detectorCode} then #{item.linkman}
</if>
</foreach>
</trim>
<trim prefix="phone=case" suffix="end,">
<foreach collection="list" item="item" index="index">
<if test="item.phone != null &amp;&amp; item.phone != ''">
when detector_code=#{item.detectorCode} then #{item.phone}
</if>
</foreach>
</trim>
<trim prefix="is_del=case" suffix="end,">
<foreach collection="list" item="item" index="index">
<if test="item.isDel != null &amp;&amp; item.isDel != ''">
when detector_code=#{item.detectorCode} then #{item.isDel}
</if>
</foreach>
</trim>
<trim prefix="detector_status=case" suffix="end,">
<foreach collection="list" item="item" index="index">
<if test="item.detectorStatus != null &amp;&amp; item.detectorStatus != ''">
when detector_code=#{item.detectorCode} then #{item.detectorStatus}
</if>
</foreach>
</trim>
<trim prefix="update_time=case" suffix="end,">
<foreach collection="list" item="item" index="index">
<if test="item.updateTime != null">
when detector_code=#{item.detectorCode} then #{item.updateTime}
</if>
</foreach>
</trim>
<trim prefix="alarm_time=case" suffix="end,">
<foreach collection="list" item="item" index="index">
when detector_code=#{item.detectorCode} then #{item.alarmTime}
</foreach>
</trim>
</trim>
where
<foreach collection="list" separator="or" item="item" index="index">
detector_code=#{item.detectorCode}
</foreach>
</update>
<update id="updateTDetectorInfo" parameterType="TDetectorInfo">
update t_detector_info
<trim prefix="SET" suffixOverrides=",">
<if test="userId != null">user_id = #{userId},</if>
<if test="detectorName != null">detector_name = #{detectorName},</if>
<if test="detectorCode != null">detector_code = #{detectorCode},</if>
<if test="detectorAddr != null">detector_addr = #{detectorAddr},</if>
<if test="detectorType != null">detector_type = #{detectorType},</if>
<if test="medium != null">medium = #{medium},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="iotNo != null">iot_no = #{iotNo},</if>
<if test="linkman != null">linkman = #{linkman},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
alarm_time = #{alarmTime},
<if test="detectorStatus != null">detector_status = #{detectorStatus},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where detector_id = #{detectorId}
</update>
<delete id="deleteTDetectorInfoById" parameterType="Long">
delete from t_detector_info where detector_id = #{detectorId}
</delete>
<delete id="deleteTDetectorInfoByIds" parameterType="String">
delete from t_detector_info where detector_id in
<foreach item="detectorId" collection="array" open="(" separator="," close=")">
#{detectorId}
</foreach>
</delete>
<select id="selectDetectorNum" resultType="java.util.HashMap">
SELECT IFNULL(SUM(IF(detector_status=0,1,0)),0) AS changNum,IFNULL(SUM(detector_status=1),0) AS liNum,
IFNULL(SUM(IF(detector_status=2,1,0)),0) AS baoNum
FROM t_detector_info WHERE is_del = 0
</select>
<select id="selectDetectorMointor" parameterType="TDetectorInfo" resultMap="TDetectorInfoResult">
SELECT
device.device_name AS beyondDevicename,
detector.detector_name,
detector.detector_code,
enterprise.enterprise_name,
detector.medium,
detector.detector_status,
detector.update_time AS reportTime
FROM
t_relation_device_detail_info relation
INNER JOIN t_detector_info detector ON detector.detector_code = relation.iot_no
INNER JOIN t_device_info device ON device.device_id = relation.relation_device_id
INNER JOIN t_enterprise_info enterprise ON enterprise.enterprise_id = device.beyond_enterprise_id
<where>
relation.device_type = '3' AND relation.is_del = '0'
<if test="enterpriseId != null and enterpriseId != ''"> and enterprise.enterprise_id = #{enterpriseId}</if>
<if test="detectorName != null and detectorName != ''"> and detector.detector_name like concat('%', #{detectorName}, '%')</if>
<if test="detectorCode != null and detectorCode != ''"> and detector.detector_code like concat('%', #{detectorCode}, '%')</if>
</where>
</select>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TDetectorReportDataMapper">
<resultMap type="TDetectorReportData" id="TDetectorReportDataResult">
<result property="id" column="id" />
<result property="sourceId" column="source_id" />
<result property="detectorCode" column="detector_code" />
<result property="detectorStatusId" column="detector_status_id" />
<result property="statusName" column="status_name" />
<result property="reportValue" column="report_value" />
<result property="zhHostStatusId" column="zh_host_status_id" />
<result property="netPoint" column="net_point" />
<result property="signalStrength" column="signal_strength" />
<result property="ipAddress" column="ip_address" />
<result property="createTime" column="create_time" />
<result property="isCancelAlarm" column="is_cancel_alarm" />
<result property="cancelTime" column="cancel_time" />
</resultMap>
<sql id="selectTDetectorReportDataVo">
select id, source_id, detector_code, detector_status_id, status_name, report_value, zh_host_status_id, net_point, signal_strength, ip_address, create_time, is_cancel_alarm, cancel_time from t_detector_report_data
</sql>
<select id="selectTDetectorReportDataList" parameterType="TDetectorReportDataForm" resultType="TDetectorAlarmInfoVO">
select * from(
select rd.id,
rd.cancel_time cancelTime,
rd.detector_code detectorCode,
CONCAT_WS("#",IFNULL(u.nick_name,IFNULL(di.linkman,di.detector_addr)),di.linkman) unitName,
di.detector_type detectorType,
rd.status_name statusName,
rd.create_time alarmTime,
rd.is_cancel_alarm handledStatus
FROM t_detector_report_data rd
LEFT JOIN t_detector_info di ON rd.detector_code = di.detector_code
LEFT JOIN t_detector_user u ON u.user_id = di.user_id
<where> u.is_del = '0' and di.is_del = '0'
<if test="detectorCode != null and detectorCode != ''"> and rd.detector_code = #{detectorCode}</if>
<if test="statusName != null and statusName != ''"> and rd.status_name = #{statusName}</if>
<if test="createTimeStart != null "> and rd.create_time &gt;= #{createTimeStart}</if>
<if test="createTimeEnd != null "> and rd.create_time &lt;= #{createTimeEnd}</if>
<if test="isCancelAlarm != null and isCancelAlarm != ''"> and is_cancel_alarm = #{isCancelAlarm}</if>
<if test="cancelTimeStart != null "> and rd.cancel_time &gt;= #{cancelTimeStart}</if>
<if test="cancelTimeEnd != null "> and rd.cancel_time &lt;= #{cancelTimeEnd}</if>
</where>
union
SELECT rd.id,
rd.cancel_time cancelTime,
rd.detector_code detectorCode,
CONCAT_WS("#",ti.device_name,ti.linkman) unitName,
di.detector_type detectorType,
rd.status_name statusName,
rd.create_time alarmTime,
rd.is_cancel_alarm handledStatus
FROM t_detector_report_data rd
LEFT JOIN t_detector_info di ON rd.detector_code = di.detector_code
LEFT JOIN t_relation_device_detail_info ri ON rd.detector_code = ri.iot_no
LEFT JOIN t_device_info ti ON ri.relation_device_id = ti.device_id
<where> ri.relation_device_type = '1' and ri.is_del = '0' and ti.is_del = '0'
<if test="detectorCode != null and detectorCode != ''"> and rd.detector_code = #{detectorCode}</if>
<if test="statusName != null and statusName != ''"> and rd.status_name = #{statusName}</if>
<if test="createTimeStart != null "> and rd.create_time &gt;= #{createTimeStart}</if>
<if test="createTimeEnd != null "> and rd.create_time &lt;= #{createTimeEnd}</if>
<if test="isCancelAlarm != null and isCancelAlarm != ''"> and is_cancel_alarm = #{isCancelAlarm}</if>
<if test="cancelTimeStart != null "> and rd.cancel_time &gt;= #{cancelTimeStart}</if>
<if test="cancelTimeEnd != null "> and rd.cancel_time &lt;= #{cancelTimeEnd}</if>
</where>
union
SELECT rd.id,
rd.cancel_time cancelTime,
rd.detector_code detectorCode,
CONCAT_WS("#",si.site_station_name,si.build_unit) unitName,
di.detector_type detectorType,
rd.status_name statusName,
rd.create_time alarmTime,
rd.is_cancel_alarm handledStatus
FROM t_detector_report_data rd
LEFT JOIN t_detector_info di ON rd.detector_code = di.detector_code
LEFT JOIN t_relation_device_detail_info ti ON rd.detector_code = ti.iot_no
LEFT JOIN t_site_station_info si ON ti.relation_device_id = si.site_station_id
<where> ti.relation_device_type = '2' and ti.is_del = '0' and si.is_del = '0'
<if test="detectorCode != null and detectorCode != ''"> and rd.detector_code = #{detectorCode}</if>
<if test="statusName != null and statusName != ''"> and rd.status_name = #{statusName}</if>
<if test="createTimeStart != null "> and rd.create_time &gt;= #{createTimeStart}</if>
<if test="createTimeEnd != null "> and rd.create_time &lt;= #{createTimeEnd}</if>
<if test="isCancelAlarm != null and isCancelAlarm != ''"> and is_cancel_alarm = #{isCancelAlarm}</if>
<if test="cancelTimeStart != null "> and rd.cancel_time &gt;= #{cancelTimeStart}</if>
<if test="cancelTimeEnd != null "> and rd.cancel_time &lt;= #{cancelTimeEnd}</if>
</where>
)t
ORDER BY t.alarmTime DESC
</select>
<select id="selectTDetectorReportDataById" parameterType="Long" resultMap="TDetectorReportDataResult">
<include refid="selectTDetectorReportDataVo"/>
where id = #{id}
</select>
<select id="selectTDetectorReportDataByCode" parameterType="String" resultMap="TDetectorReportDataResult">
<include refid="selectTDetectorReportDataVo"/>
where detector_code = #{detectorCode}
and is_cancel_alarm = '0'
ORDER BY create_time DESC
</select>
<select id="selectTDetectorAlarm" resultType="TDetectorAlarmInfoVO">
select * from(
SELECT
rd.detector_code detectorCode,
CONCAT_WS("#",IFNULL(u.nick_name,IFNULL(di.linkman,di.detector_addr)),di.linkman) unitName,
di.detector_type detectorType,
rd.status_name statusName,
rd.create_time alarmTime,
IF (
rd.is_cancel_alarm = 0,
'未消除',
'已消除'
) handledStatus
FROM t_detector_report_data rd
LEFT JOIN t_detector_info di ON rd.detector_code = di.detector_code
LEFT JOIN t_detector_user u ON u.user_id = di.user_id
WHERE u.is_del = '0' and di.is_del = '0' and rd.is_cancel_alarm = '0'
union
SELECT
rd.detector_code detectorCode,
CONCAT_WS("#",ti.device_name,ti.linkman) unitName,
di.detector_type detectorType,
rd.status_name statusName,
rd.create_time alarmTime,
IF (
rd.is_cancel_alarm = 0,
'未消除',
'已消除'
) handledStatus
FROM t_detector_report_data rd
LEFT JOIN t_detector_info di ON rd.detector_code = di.detector_code
LEFT JOIN t_relation_device_detail_info ri ON rd.detector_code = ri.iot_no
LEFT JOIN t_device_info ti ON ri.relation_device_id = ti.device_id
WHERE ri.relation_device_type = '1' and ri.is_del = '0' and ti.is_del = '0' and rd.is_cancel_alarm = '0'
union
SELECT
rd.detector_code detectorCode,
CONCAT_WS("#",si.site_station_name,si.build_unit) unitName,
di.detector_type detectorType,
rd.status_name statusName,
rd.create_time alarmTime,
IF (
rd.is_cancel_alarm = 0,
'未消除',
'已消除'
) handledStatus
FROM t_detector_report_data rd
LEFT JOIN t_detector_info di ON rd.detector_code = di.detector_code
LEFT JOIN t_relation_device_detail_info ti ON rd.detector_code = ti.iot_no
LEFT JOIN t_site_station_info si ON ti.relation_device_id = si.site_station_id
WHERE ti.relation_device_type = '2' and ti.is_del = '0' and si.is_del = '0' and rd.is_cancel_alarm = '0'
)t
ORDER BY t.alarmTime DESC LIMIT 50
</select>
<select id="selectRealtimeDataList" resultMap="TDetectorReportDataResult">
SELECT * FROM
(
SELECT
t.source_id,
t.detector_code,
t.detector_status_id,
t.status_name,
t.report_value,
t.zh_host_status_id,
t.net_point,
t.signal_strength,
t.ip_address,
t.create_time,
t.is_cancel_alarm,
t.cancel_time,
d.detector_id,
d.detector_name,
d.detector_type
FROM
t_detector_report_data t
LEFT JOIN t_detector_info d ON t.detector_code = d.detector_code
WHERE
t.detector_status_id != '1'
ORDER BY t.create_time DESC
)data
GROUP BY data.detector_id LIMIT 50
</select>
<select id="countDetectorByUserId" parameterType="TDetectorInfo" resultMap="TDetectorReportDataResult" >
select r.id, r.source_id, r.detector_code, r.detector_status_id, r.is_cancel_alarm, r.cancel_time
from t_detector_report_data r
left join t_detector_info d on r.detector_code = d.detector_code
where r.detector_status_id != '1' and d.user_id = #{userId} and d.is_del = #{isDel}
</select>
<insert id="insertTDetectorReportData" parameterType="TDetectorReportData" useGeneratedKeys="true" keyProperty="id">
insert into t_detector_report_data
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="sourceId != null">source_id,</if>
<if test="detectorCode != null and detectorCode != ''">detector_code,</if>
<if test="detectorStatusId != null">detector_status_id,</if>
<if test="statusName != null">status_name,</if>
<if test="reportValue != null">report_value,</if>
<if test="zhHostStatusId != null">zh_host_status_id,</if>
<if test="netPoint != null">net_point,</if>
<if test="signalStrength != null">signal_strength,</if>
<if test="ipAddress != null">ip_address,</if>
<if test="createTime != null">create_time,</if>
<if test="isCancelAlarm != null">is_cancel_alarm,</if>
<if test="cancelTime != null">cancel_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="sourceId != null">#{sourceId},</if>
<if test="detectorCode != null and detectorCode != ''">#{detectorCode},</if>
<if test="detectorStatusId != null">#{detectorStatusId},</if>
<if test="statusName != null">#{statusName},</if>
<if test="reportValue != null">#{reportValue},</if>
<if test="zhHostStatusId != null">#{zhHostStatusId},</if>
<if test="netPoint != null">#{netPoint},</if>
<if test="signalStrength != null">#{signalStrength},</if>
<if test="ipAddress != null">#{ipAddress},</if>
<if test="createTime != null">#{createTime},</if>
<if test="isCancelAlarm != null">#{isCancelAlarm},</if>
<if test="cancelTime != null">#{cancelTime},</if>
</trim>
</insert>
<update id="updateTDetectorReportData" parameterType="TDetectorReportData">
update t_detector_report_data
<trim prefix="SET" suffixOverrides=",">
<if test="sourceId != null">source_id = #{sourceId},</if>
<if test="detectorCode != null and detectorCode != ''">detector_code = #{detectorCode},</if>
<if test="detectorStatusId != null">detector_status_id = #{detectorStatusId},</if>
<if test="statusName != null">status_name = #{statusName},</if>
<if test="reportValue != null">report_value = #{reportValue},</if>
<if test="zhHostStatusId != null">zh_host_status_id = #{zhHostStatusId},</if>
<if test="netPoint != null">net_point = #{netPoint},</if>
<if test="signalStrength != null">signal_strength = #{signalStrength},</if>
<if test="ipAddress != null">ip_address = #{ipAddress},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="isCancelAlarm != null">is_cancel_alarm = #{isCancelAlarm},</if>
<if test="cancelTime != null">cancel_time = #{cancelTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTDetectorReportDataById" parameterType="Long">
delete from t_detector_report_data where id = #{id}
</delete>
<delete id="deleteTDetectorReportDataByIds" parameterType="String">
delete from t_detector_report_data where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="selectAlarm" parameterType="integer" resultType="TDetectorAlarmInfoVO">
SELECT d.*,u.nick_name as unitName t_detector_report_data d
LEFT JOIN t_detector_info i on i.detector_code = d.detector_code
LEFT JOIN t_detector_user u on u.user_id = i.user_id
WHERE d.id = #{id}
</select>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TDetectorUserMapper">
<resultMap type="TDetectorUser" id="TDetectorUserResult">
<result property="userId" column="user_id" />
<result property="username" column="username" />
<result property="nickName" column="nick_name" />
<result property="beyondEnterpriseId" column="beyond_enterprise_id" />
<result property="userType" column="user_type" />
<result property="address" column="address" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="linkman" column="linkman" />
<result property="phone" column="phone" />
<result property="email" column="email" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
<result property="beyondEnterpriseName" column="enterprise_name" />
</resultMap>
<resultMap type="TDetectorUserInspectVo" id="TDetectorUserInspectResult">
<result property="userId" column="user_id" />
<result property="nickName" column="nick_name" />
<result property="beyondEnterpriseId" column="beyond_enterprise_id" />
<result property="userType" column="user_type" />
<result property="address" column="address" />
<result property="linkman" column="linkman" />
<result property="phone" column="phone" />
<result property="beyondEnterpriseName" column="enterprise_name" />
<result property="isInspect" column="is_inspect" />
<result property="inspector" column="inspector" />
<result property="inspectDate" column="inspect_date" />
</resultMap>
<sql id="selectTDetectorUserVo">
select user_id, username, nick_name, user_type, address, longitude, latitude, linkman, phone, email, create_time, update_time, is_del, remarks from t_detector_user
</sql>
<select id="selectTDetectorUserList" parameterType="TDetectorUser" resultMap="TDetectorUserResult">
select a.user_id, a.username, a.nick_name, (CASE a.user_type WHEN '1' THEN '居民用户' WHEN '2' THEN '商业用户'WHEN '3' THEN '工业用户'WHEN '4' THEN '煤改气用户'end) as user_type , a.address, a.longitude, a.latitude, a.linkman, a.phone, a.email, a.create_time, a.update_time, a.is_del, a.remarks,
b.enterprise_name
from t_detector_user a left join t_enterprise_info b on a.beyond_enterprise_id=b.enterprise_id
<where> a.is_del = '0'
<if test="beyondEnterpriseId != null and beyondEnterpriseId != -2"> and a.beyond_enterprise_id =#{beyondEnterpriseId}</if>
<if test="username != null and username != ''"> and a.username like concat('%', #{username}, '%')</if>
<if test="nickName != null and nickName != ''"> and (a.nick_name like concat('%', #{nickName}, '%') or a.username like concat('%', #{nickName}, '%'))</if>
<if test="isInspect != null and isInspect == 0">
and a.user_id not in
<foreach item="hasInspectUser" collection="hasInspectUser" open="(" separator="," close=")">
#{hasInspectUser}
</foreach>
</if>
<if test="isInspect != null and isInspect == 1">
and a.user_id in
<foreach item="hasInspectUser" collection="hasInspectUser" open="(" separator="," close=")">
#{hasInspectUser}
</foreach>
</if>
</where>
group by a.user_id desc
</select>
<select id="selectTDetectorListstatus" parameterType="TDetectorUser" resultMap="TDetectorUserResult">
SELECT a.user_id, a.username, a.nick_name , a.address,
a.longitude, a.latitude, a.linkman, a.phone, a.email, a.create_time,
a.update_time, a.is_del, a.remarks,IF(inspect.status IS NULL,0,inspect.`status`) AS taskId
FROM t_detector_user a
LEFT JOIN (
SELECT * FROM (SELECT MAX(inspect_id) AS inId FROM t_work_task_inspect
WHERE task_id = #{taskId} GROUP BY receive_id) t1
LEFT JOIN t_work_task_inspect t ON t1.inId = t.inspect_id
) inspect ON inspect.receive_id = a.user_id
<where> a.is_del = '0'
<if test="beyondEnterpriseId != null and beyondEnterpriseId != -2"> and a.beyond_enterprise_id =#{beyondEnterpriseId}</if>
<if test="username != null and username != ''"> and a.username like concat('%', #{username}, '%')</if>
<if test="nickName != null and nickName != ''"> and (a.nick_name like concat('%', #{nickName}, '%') or a.username like concat('%', #{nickName}, '%'))</if>
</where>
</select>
<select id="selectTDetectorUser" parameterType="TDetectorUser" resultMap="TDetectorUserResult">
select a.user_id, a.beyond_enterprise_id,a.username, a.nick_name, (CASE a.user_type WHEN '1' THEN '居民用户' WHEN '2' THEN '商业用户'WHEN '3' THEN '工业用户'WHEN '4' THEN '煤改气用户'end) as user_type , a.address, a.longitude, a.latitude, a.linkman, a.phone, a.email, a.create_time, a.update_time, a.is_del, a.remarks,
b.enterprise_name
from t_detector_user a left join t_enterprise_info b on a.beyond_enterprise_id=b.enterprise_id
<where>
<if test="isDel != null and isDel != ''"> and a.is_del = #{isDel}</if>
<if test="username != null and username != ''"> and a.username = #{username}</if>
<if test="nickName != null and nickName != ''"> and a.nick_name = #{nickName}</if>
</where>
group by a.user_id desc
</select>
<select id="selectTDetectorUserById" parameterType="Long" resultMap="TDetectorUserResult">
select a.user_id, a.beyond_enterprise_id,a.username, a.nick_name, (CASE a.user_type WHEN '1' THEN '居民用户' WHEN '2' THEN '商业用户'WHEN '3' THEN '工业用户'WHEN '4' THEN '煤改气用户'end) as user_type , a.address, a.longitude, a.latitude, a.linkman, a.phone, a.email, a.create_time, a.update_time, a.is_del, a.remarks,
b.enterprise_name
from t_detector_user a left join t_enterprise_info b on a.beyond_enterprise_id=b.enterprise_id
where a.user_id = #{userId}
</select>
<select id="countTDetectorUser" resultType="TDetectorUserVO" parameterType="TDetectorUser">
select t1.*,
IFNULL(t2.historyAlarmNum,0) AS historyAlarmNum,
IFNULL(t2.processingAlarmNum,0) AS processingAlarmNum,
IFNULL(t2.cancelAlarmNum,0) AS cancelAlarmNum
from(
select a.user_id AS userId,
a.detector_id AS detectorId,
a.detector_status AS detectorStatus,
a.nick_name AS nickName,
a.user_type AS userType,
a.address AS address,
a.longitude AS longitude,
a.latitude AS latitude,
a.linkman AS linkman,
a.phone AS phone,
a.email AS email,
CASE a.detector_type
WHEN '1' THEN '家用探测器'
WHEN '2' THEN '工业探测器' END AS detectorType,
COUNT(a.detector_id) AS detectorCount,
SUM(CASE a.detector_status WHEN '0' THEN 1 ELSE 0 END) AS onLineNum,
SUM(CASE a.detector_status WHEN '1' THEN 1 ELSE 0 END) AS offLineNum
from(select a1.detector_id,
a1.detector_type,
a1.detector_status,
a2.* from t_detector_info a1
right join t_detector_user a2 on a1.user_id = a2.user_id
<where> a1.is_del = '0' and a2.is_del = '0'
<if test="userId != null and userId != ''"> and a2.user_id = #{userId}</if>
</where>) a
group by a.user_id,a.detector_type
) t1 left join (
select b.user_id AS userId,
COUNT(b.id) AS historyAlarmNum,
SUM(CASE b.is_cancel_alarm WHEN '0' THEN 1 ELSE 0 END) AS processingAlarmNum,
COUNT(b.id) - SUM(CASE b.is_cancel_alarm WHEN '0' THEN 1 ELSE 0 END) AS cancelAlarmNum
from(select b1.id,b1.is_cancel_alarm,b2.*
from t_detector_report_data b1
left join t_detector_info b2 on b1.detector_code = b2.detector_code
right join t_detector_user b3 on b2.user_id = b3.user_id
<where> b2.is_del = '0' and b3.is_del = '0'
<if test="userId != null and userId != ''"> and b3.user_id = #{userId}</if>
</where>) b
group by b.user_id,b.detector_type
) t2 on t2.userId = t1.userId
</select>
<select id="getDetectorUserAlarmList" resultType="Map">
select a2.user_id as userId
from t_detector_info a1
right join t_detector_user a2 on a1.user_id = a2.user_id
where a1.is_del = '0' and a2.is_del = '0' and a1.detector_status = '2'
</select>
<insert id="insertTDetectorUser" parameterType="TDetectorUser" useGeneratedKeys="true" keyProperty="userId">
insert into t_detector_user
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="username != null">username,</if>
<if test="nickName != null">nick_name,</if>
<if test="userType != null">user_type,</if>
<if test="address != null">address,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id,</if>
<if test="linkman != null">linkman,</if>
<if test="phone != null">phone,</if>
<if test="email != null">email,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="username != null">#{username},</if>
<if test="nickName != null">#{nickName},</if>
<if test="userType != null">#{userType},</if>
<if test="address != null">#{address},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="beyondEnterpriseId != null">#{beyondEnterpriseId},</if>
<if test="linkman != null">#{linkman},</if>
<if test="phone != null">#{phone},</if>
<if test="email != null">#{email},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTDetectorUser" parameterType="TDetectorUser">
update t_detector_user
<trim prefix="SET" suffixOverrides=",">
<if test="username != null">username = #{username},</if>
<if test="nickName != null">nick_name = #{nickName},</if>
<if test="userType != null">user_type = #{userType},</if>
<if test="address != null">address = #{address},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id = #{beyondEnterpriseId},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="linkman != null">linkman = #{linkman},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="email != null">email = #{email},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where user_id = #{userId}
</update>
<delete id="deleteTDetectorUserById" parameterType="Long">
delete from t_detector_user where user_id = #{userId}
</delete>
<delete id="deleteTDetectorUserByIds" parameterType="String">
delete from t_detector_user where user_id in
<foreach item="userId" collection="array" open="(" separator="," close=")">
#{userId}
</foreach>
</delete>
<select id="selectUserNum" resultType="java.util.HashMap">
SELECT IFNULL(SUM(IF(user_type=1,1,0)),0) AS juminNum,IFNULL(SUM(IF(user_type=2,1,0)),0) AS shangNum,
IFNULL(SUM(IF(user_type=3,1,0)),0) AS gongNum FROM t_detector_user WHERE is_del = 0
</select>
<!--查询用户统计信息-->
<select id="userStatistics" resultType="com.zehong.system.domain.TDetectorUserCount">
SELECT
(select count(user_id) from t_detector_user where is_del='0' <if test="id != -2"> and beyond_enterprise_id = #{id}</if>)as totalNumberUsers,
(select count(user_id) from t_detector_user where user_type=1 and is_del='0' <if test="id != -2"> and beyond_enterprise_id = #{id}</if>)as residentUsers,
(select count(user_id) from t_detector_user where user_type=2 and is_del='0' <if test="id != -2"> and beyond_enterprise_id = #{id}</if>)as businessUser,
(select count(user_id) from t_detector_user where user_type=3 and is_del='0' <if test="id != -2"> and beyond_enterprise_id = #{id}</if>)as industrialUsers
FROM `t_detector_user` limit 0,1
</select>
<select id="getDetectorUserInspectInfo" parameterType="TDetectorUserInspectVo" resultMap="TDetectorUserInspectResult">
SELECT
a.user_id,
a.username,
a.nick_name,
(
CASE a.user_type
WHEN '1' THEN
'居民用户'
WHEN '2' THEN
'商业用户'
WHEN '3' THEN
'工业用户'
WHEN '4' THEN
'煤改气用户'
END
) AS user_type,
a.address,
a.longitude,
a.latitude,
a.linkman,
a.phone,
b.enterprise_name,
if(ISNULL(recent.inspect_id),'0',recent.status)as is_inspect,
person.person_name as inspector,
recent.create_time as inspect_date
FROM
t_detector_user a
LEFT JOIN t_enterprise_info b ON a.beyond_enterprise_id = b.enterprise_id
LEFT JOIN (
SELECT
task.*
FROM t_work_task_inspect task,(SELECT max(inspect_id)as inspect_id FROM t_work_task_inspect WHERE task_id = #{taskId} group by receive_id)last
WHERE task.inspect_id = last.inspect_id
)recent ON a.user_id = recent.receive_id
LEFT JOIN t_line_patrol_person person ON person.person_id = recent.member_id
<where> a.is_del = '0'
<if test="beyondEnterpriseId != null and beyondEnterpriseId != -2"> and a.beyond_enterprise_id =#{beyondEnterpriseId}</if>
<if test="username != null and username != ''"> and a.username like concat('%', #{username}, '%')</if>
<if test="nickName != null and nickName != ''"> and a.nick_name like concat('%', #{nickName}, '%')</if>
<if test="linkman != null and linkman != ''"> and a.linkman = #{linkman}</if>
<if test="isInspect != null and isInspect == 0">
and recent.inspect_id is null
</if>
<if test="isInspect != null and isInspect == 1">
and recent.status = 1
</if>
<if test="isInspect != null and isInspect == 2">
and recent.status = 2
</if>
<if test="inspectBeginTime != null and inspectEndTime != null">
AND recent.create_time BETWEEN #{inspectBeginTime} and #{inspectEndTime}
</if>
<if test="inspector != null and inspector != ''">
AND person.person_name like concat('%', #{inspector}, '%')
</if>
<if test="address != null and address != ''">
AND a.address like concat('%', #{address}, '%')
</if>
</where>
ORDER BY a.create_time DESC
</select>
</mapper>
<?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.zehong.system.mapper.TDeviceInfoMapper">
<resultMap type="TDeviceInfo" id="TDeviceInfoResult">
<result property="deviceId" column="device_id" />
<result property="deviceName" column="device_name" />
<result property="deviceCode" column="device_code" />
<result property="deviceAddr" column="device_addr" />
<result property="deviceModel" column="device_model" />
<result property="deviceType" column="device_type" />
<result property="beyondEnterpriseId" column="beyond_enterprise_id" />
<result property="beyondEnterpriseName" column="beyond_enterprise_name" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="iconUrl" column="icon_url" />
<result property="linkman" column="linkman" />
<result property="phone" column="phone" />
<result property="installationTime" column="installation_time" />
<result property="inspectionTime" column="inspection_time" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
</resultMap>
<!--关联设备map-->
<resultMap type="TDeviceInfoS" id="TDeviceInfoResultS">
<result property="relationDeviceDetailId" column="relation_device_detail_id" />
<result property="relationDeviceId" column="relation_device_id" />
<result property="deviceName" column="device_name" />
<result property="deviceModel" column="device_model" />
<result property="deviceType" column="device_type" />
<result property="iotNo" column="iot_no" />
<result property="detectionMedium" column="detection_medium" />
<result property="remarksn" column="remarks" />
</resultMap>
<sql id="selectTDeviceInfoVo">
select a.device_id, a.device_name, a.device_code, a.device_addr, a.device_model,
(CASE a.device_type WHEN '1' THEN '阀井' WHEN '2' THEN '调压箱'WHEN '3' THEN '巡检员' WHEN '4' THEN '视频' end) as device_type ,
a.beyond_enterprise_id, a.longitude, a.latitude, a.icon_url, a.linkman, a.phone, a.installation_time, a.inspection_time, a.create_by, a.create_time, a.update_by, a.update_time, a.is_del, a.remarks
,b.enterprise_name as beyond_enterprise_name
from t_device_info a left join t_enterprise_info b on a.beyond_enterprise_id=b.enterprise_id
</sql>
<select id="selectTDeviceInfoList" parameterType="TDeviceInfo" resultMap="TDeviceInfoResult">
<include refid="selectTDeviceInfoVo"/>
<where>
a.is_del='0'
<if test="beyondEnterpriseId != null and beyondEnterpriseId != -2"> and beyond_enterprise_id = #{beyondEnterpriseId}</if>
<if test="deviceName != null and deviceName != ''"> and device_name like concat('%', #{deviceName}, '%')</if>
<if test="deviceCode != null and deviceCode != ''"> and device_code = #{deviceCode}</if>
<if test="deviceAddr != null and deviceAddr != ''"> and device_addr = #{deviceAddr}</if>
</where>
group by a.device_id desc
</select>
<select id="selectDeviceList" parameterType="TDeviceInfo" resultMap="TDeviceInfoResult">
SELECT * FROM t_device_info WHERE device_name like concat('%', #{deviceName}, '%')
</select>
<select id="selectTDeviceInfoById" parameterType="Long" resultMap="TDeviceInfoResult">
select device_id, device_name, device_code, device_addr, device_model,device_type,
beyond_enterprise_id, beyond_enterprise_name, longitude, latitude, icon_url, linkman, phone, installation_time, inspection_time, create_by, create_time, update_by, update_time, is_del, remarks from t_device_info
where device_id = #{deviceId} and is_del='0'
</select>
<select id="getDeviceInfoAlarmList" resultType="Map">
select a3.device_id as deviceId,
a3.device_type as deviceType
from t_relation_device_detail_info a1
left join t_detector_info a2 on a1.iot_no = a2.detector_code
right join t_device_info a3 on a1.relation_device_id = a3.device_id
where a1.is_del = '0' and a2.is_del = '0' and a3.is_del = '0' and a2.detector_status = '2'
</select>
<insert id="insertTDeviceInfo" parameterType="TDeviceInfo" useGeneratedKeys="true" keyProperty="deviceId">
insert into t_device_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deviceName != null">device_name,</if>
<if test="deviceCode != null">device_code,</if>
<if test="deviceAddr != null">device_addr,</if>
<if test="deviceModel != null">device_model,</if>
<if test="deviceType != null">device_type,</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id,</if>
<if test="beyondEnterpriseName != null">beyond_enterprise_name,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="iconUrl != null">icon_url,</if>
<if test="linkman != null">linkman,</if>
<if test="phone != null">phone,</if>
<if test="installationTime != null">installation_time,</if>
<if test="inspectionTime != null">inspection_time,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deviceName != null">#{deviceName},</if>
<if test="deviceCode != null">#{deviceCode},</if>
<if test="deviceAddr != null">#{deviceAddr},</if>
<if test="deviceModel != null">#{deviceModel},</if>
<if test="deviceType != null">#{deviceType},</if>
<if test="beyondEnterpriseId != null">#{beyondEnterpriseId},</if>
<if test="beyondEnterpriseName != null">#{beyondEnterpriseName},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="iconUrl != null">#{iconUrl},</if>
<if test="linkman != null">#{linkman},</if>
<if test="phone != null">#{phone},</if>
<if test="installationTime != null">#{installationTime},</if>
<if test="inspectionTime != null">#{inspectionTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTDeviceInfo" parameterType="TDeviceInfo">
update t_device_info
<trim prefix="SET" suffixOverrides=",">
<if test="deviceName != null">device_name = #{deviceName},</if>
<if test="deviceCode != null">device_code = #{deviceCode},</if>
<if test="deviceAddr != null">device_addr = #{deviceAddr},</if>
<if test="deviceModel != null">device_model = #{deviceModel},</if>
<if test="deviceType != null">device_type = #{deviceType},</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id = #{beyondEnterpriseId},</if>
<if test="beyondEnterpriseName != null">beyond_enterprise_name = #{beyondEnterpriseName},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="iconUrl != null">icon_url = #{iconUrl},</if>
<if test="linkman != null">linkman = #{linkman},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="installationTime != null">installation_time = #{installationTime},</if>
<if test="inspectionTime != null">inspection_time = #{inspectionTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where device_id = #{deviceId}
</update>
<update id="deleteTDeviceInfoById" parameterType="Long">
update t_device_info set is_del='1' where device_id = #{deviceId}
</update>
<update id="deleteTDeviceInfoByIds" parameterType="String">
update t_device_info set is_del='1' where device_id in
<foreach item="deviceId" collection="array" open="(" separator="," close=")">
#{deviceId}
</foreach>
</update>
<insert id="insertDeviceDetailInfo">
INSERT INTO t_relation_device_detail_info (relation_device_id,detection_medium,device_name,device_model,device_type,iot_no,remarks)
VALUES
(#{relationDeviceId},#{detectionMedium},#{deviceName},#{deviceModel},#{deviceType},#{iotNo},#{remarksn})
</insert>
<!--获取设备详细信息列表-->
<select id="getdeviceDetailInfo" resultMap="TDeviceInfoResultS">
select relation_device_detail_id,relation_device_id,device_name,device_model,device_type,iot_no,remarks,detection_medium
from t_relation_device_detail_info where relation_device_id =#{deviceId}
</select>
<!--查询无绑定的 关联设备信息-->
<select id="selectDetailInfo" resultMap="TDeviceInfoResultS">
select relation_device_detail_id,detection_medium,relation_device_id,device_name,device_model,iot_no,remarks, (CASE device_type WHEN '1' THEN '压力表' WHEN '2' THEN '流量计' WHEN '3' THEN '探测器' end) as device_type
from t_relation_device_detail_info where is_del='0' and relation_device_id is null
<if test="deviceName != null and deviceName != ''"> and device_name like concat('%', #{deviceName}, '%')</if>
<if test="deviceModel != null and deviceModel != ''"> and device_model like concat('%', #{deviceModel}, '%')</if>
<if test="iotNo != null and iotNo != ''"> and iot_no like concat('%', #{iotNo}, '%')</if>
group by relation_device_detail_id desc
</select>
<!--查询设备已经关联的关联设备-->
<select id="selectDetailInfoList" resultMap="TDeviceInfoResultS">
select relation_device_detail_id,detection_medium,relation_device_id,device_name,device_model,iot_no,remarks, (CASE device_type WHEN '1' THEN '压力表' WHEN '2' THEN '流量计' WHEN '3' THEN '探测器' end) as device_type
from t_relation_device_detail_info where relation_device_id=#{id} and relation_device_type=#{relationDeviceType}
</select>
<!--关联设备数据删除接口-->
<update id="deleteDetailInfo">
update t_relation_device_detail_info set is_del='1' where relation_device_detail_id in
<foreach item="deviceId" collection="array" open="(" separator="," close=")">
#{deviceId}
</foreach>
</update>
<!--关联设备数据删除接口 单条删除-->
<update id="deleteDetailinfOS">
update t_relation_device_detail_info set is_del='1' where relation_device_detail_id = #{deviceId}
</update>
<!--将关联设备信息与设备进行绑定-->
<update id="updatetRelationDeviceDetailInfo" parameterType="java.util.List">
update t_relation_device_detail_info set relation_device_id = #{id} ,relation_device_type =#{relationDevicetype}
where
relation_device_detail_id in
<foreach collection="gettDeviceInfoS" item="items" index="key" open="(" separator="," close=")">
#{items.relationDeviceDetailId}
</foreach>
</update>
<!--解绑 设备与关联设备关系-->
<update id="deleteDeviceDetailInfo">
update t_relation_device_detail_info set relation_device_id=NULL where relation_device_detail_id=#{deviceId}
</update>
<select id="selectDeviceNum" resultType="java.util.HashMap">
SELECT SUM(IF(device_type=1,1,0)) AS fajing, SUM(IF(device_type=2,1,0)) AS tiaoya ,
(SELECT COUNT(video_manager_id) FROM t_video_manager WHERE is_del = 0
and beyond_enterprise_id IN
<foreach item="enterpriseId" collection="enterpriseIds" open="(" separator="," close=")">
#{enterpriseId}
</foreach>
) AS videoNum,
(SELECT COUNT(site_station_id) FROM t_site_station_info WHERE is_del = 0
and beyond_enterprise_id IN
<foreach item="enterpriseId" collection="enterpriseIds" open="(" separator="," close=")">
#{enterpriseId}
</foreach>
) AS stationNum
FROM t_device_info
WHERE is_del = 0 and beyond_enterprise_id IN
<foreach item="enterpriseId" collection="enterpriseIds" open="(" separator="," close=")">
#{enterpriseId}
</foreach>
</select>
</mapper>
<?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.zehong.system.mapper.TDeviceReportDataMapper">
<resultMap type="TDeviceReportData" id="TDeviceReportDataResult">
<result property="deviceReportDataId" column="device_report_data_id" />
<result property="deviceName" column="device_name" />
<result property="deviceNum" column="device_num" />
<result property="standardConditionAccumulation" column="standard_condition_accumulation" />
<result property="workingConditionAccumulation" column="working_condition_accumulation" />
<result property="backingStandardConditionAccumulation" column="backing_standard_condition_accumulation" />
<result property="residualQuantity" column="residual_quantity" />
<result property="standardConditionFlow" column="standard_condition_flow" />
<result property="workingConditionFlow" column="working_condition_flow" />
<result property="temperature" column="temperature" />
<result property="pressure" column="pressure" />
<result property="reportTime" column="report_time" />
<result property="communicationStatus" column="communication_status" />
<result property="deviceStatus" column="device_status" />
<result property="beyondEnterpriseId" column="beyond_enterprise_id" />
<result property="beyondEnterpriseName" column="beyond_enterprise_name" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
<result property="beyondDeviceName" column="beyondDeviceName" />
<result property="deviceType" column="device_type" />
</resultMap>
<sql id="selectTDeviceReportDataVo">
SELECT
report.device_report_data_id,
report.device_name,
report.device_num,
report.standard_condition_accumulation,
report.working_condition_accumulation,
report.backing_standard_condition_accumulation,
report.residual_quantity,
report.standard_condition_flow,
report.working_condition_flow,
report.temperature,
report.pressure,
report.report_time,
report.communication_status,
report.device_status,
report.beyond_enterprise_id,
enterprise.enterprise_name AS beyond_enterprise_name,
report.create_by,
report.create_time,
report.update_by,
report.update_time,
report.is_del,
report.remarks,
device.device_name AS beyondDeviceName
FROM
t_device_report_data report
INNER JOIN t_relation_device_detail_info detail ON detail.iot_no = report.device_num
INNER JOIN t_device_info device ON device.device_id = detail.relation_device_id
INNER JOIN t_enterprise_info enterprise ON enterprise.enterprise_id = report.beyond_enterprise_id
</sql>
<select id="selectTDeviceReportDataList" parameterType="TDeviceReportData" resultMap="TDeviceReportDataResult">
<include refid="selectTDeviceReportDataVo"/>
<where>
<if test="deviceName != null and deviceName != ''"> and report.device_name like concat('%', #{deviceName}, '%')</if>
<if test="deviceNum != null and deviceNum != ''"> and report.device_num like concat('%', #{deviceNum}, '%')</if>
<if test="standardConditionAccumulation != null "> and report.standard_condition_accumulation = #{standardConditionAccumulation}</if>
<if test="workingConditionAccumulation != null "> and report.working_condition_accumulation = #{workingConditionAccumulation}</if>
<if test="backingStandardConditionAccumulation != null "> and report.backing_standard_condition_accumulation = #{backingStandardConditionAccumulation}</if>
<if test="residualQuantity != null "> and report.residual_quantity = #{residualQuantity}</if>
<if test="standardConditionFlow != null "> and report.standard_condition_flow = #{standardConditionFlow}</if>
<if test="workingConditionFlow != null "> and report.working_condition_flow = #{workingConditionFlow}</if>
<if test="temperature != null "> and report.temperature = #{temperature}</if>
<if test="pressure != null "> and report.pressure = #{pressure}</if>
<if test="reportTime != null "> and report.report_time = #{reportTime}</if>
<if test="communicationStatus != null and communicationStatus != ''"> and report.communication_status = #{communicationStatus}</if>
<if test="deviceStatus != null and deviceStatus != ''"> and report.device_status = #{deviceStatus}</if>
<if test="beyondEnterpriseId != null "> and report.beyond_enterprise_id = #{beyondEnterpriseId}</if>
<if test="beyondEnterpriseName != null and beyondEnterpriseName != ''"> and report.beyond_enterprise_name like concat('%', #{beyondEnterpriseName}, '%')</if>
<if test="isDel != null and isDel != ''"> and report.is_del = #{isDel}</if>
<if test="remarks != null and remarks != ''"> and report.remarks = #{remarks}</if>
<if test="deviceType != null and deviceType != ''">AND detail.device_type = #{deviceType}</if>
</where>
</select>
<select id="selectTDeviceReportDataById" parameterType="Long" resultMap="TDeviceReportDataResult">
<include refid="selectTDeviceReportDataVo"/>
where report.device_report_data_id = #{deviceReportDataId}
</select>
<insert id="insertTDeviceReportData" parameterType="TDeviceReportData" useGeneratedKeys="true" keyProperty="deviceReportDataId">
insert into t_device_report_data
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deviceName != null">device_name,</if>
<if test="deviceNum != null and deviceNum != ''">device_num,</if>
<if test="standardConditionAccumulation != null">standard_condition_accumulation,</if>
<if test="workingConditionAccumulation != null">working_condition_accumulation,</if>
<if test="backingStandardConditionAccumulation != null">backing_standard_condition_accumulation,</if>
<if test="residualQuantity != null">residual_quantity,</if>
<if test="standardConditionFlow != null">standard_condition_flow,</if>
<if test="workingConditionFlow != null">working_condition_flow,</if>
<if test="temperature != null">temperature,</if>
<if test="pressure != null">pressure,</if>
<if test="reportTime != null">report_time,</if>
<if test="communicationStatus != null">communication_status,</if>
<if test="deviceStatus != null">device_status,</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id,</if>
<if test="beyondEnterpriseName != null">beyond_enterprise_name,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deviceName != null">#{deviceName},</if>
<if test="deviceNum != null and deviceNum != ''">#{deviceNum},</if>
<if test="standardConditionAccumulation != null">#{standardConditionAccumulation},</if>
<if test="workingConditionAccumulation != null">#{workingConditionAccumulation},</if>
<if test="backingStandardConditionAccumulation != null">#{backingStandardConditionAccumulation},</if>
<if test="residualQuantity != null">#{residualQuantity},</if>
<if test="standardConditionFlow != null">#{standardConditionFlow},</if>
<if test="workingConditionFlow != null">#{workingConditionFlow},</if>
<if test="temperature != null">#{temperature},</if>
<if test="pressure != null">#{pressure},</if>
<if test="reportTime != null">#{reportTime},</if>
<if test="communicationStatus != null">#{communicationStatus},</if>
<if test="deviceStatus != null">#{deviceStatus},</if>
<if test="beyondEnterpriseId != null">#{beyondEnterpriseId},</if>
<if test="beyondEnterpriseName != null">#{beyondEnterpriseName},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTDeviceReportData" parameterType="TDeviceReportData">
update t_device_report_data
<trim prefix="SET" suffixOverrides=",">
<if test="deviceName != null">device_name = #{deviceName},</if>
<if test="deviceNum != null and deviceNum != ''">device_num = #{deviceNum},</if>
<if test="standardConditionAccumulation != null">standard_condition_accumulation = #{standardConditionAccumulation},</if>
<if test="workingConditionAccumulation != null">working_condition_accumulation = #{workingConditionAccumulation},</if>
<if test="backingStandardConditionAccumulation != null">backing_standard_condition_accumulation = #{backingStandardConditionAccumulation},</if>
<if test="residualQuantity != null">residual_quantity = #{residualQuantity},</if>
<if test="standardConditionFlow != null">standard_condition_flow = #{standardConditionFlow},</if>
<if test="workingConditionFlow != null">working_condition_flow = #{workingConditionFlow},</if>
<if test="temperature != null">temperature = #{temperature},</if>
<if test="pressure != null">pressure = #{pressure},</if>
<if test="reportTime != null">report_time = #{reportTime},</if>
<if test="communicationStatus != null">communication_status = #{communicationStatus},</if>
<if test="deviceStatus != null">device_status = #{deviceStatus},</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id = #{beyondEnterpriseId},</if>
<if test="beyondEnterpriseName != null">beyond_enterprise_name = #{beyondEnterpriseName},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where device_report_data_id = #{deviceReportDataId}
</update>
<delete id="deleteTDeviceReportDataById" parameterType="Long">
delete from t_device_report_data where device_report_data_id = #{deviceReportDataId}
</delete>
<delete id="deleteTDeviceReportDataByIds" parameterType="String">
delete from t_device_report_data where device_report_data_id in
<foreach item="deviceReportDataId" collection="array" open="(" separator="," close=")">
#{deviceReportDataId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TDeviceUserMapper">
<resultMap type="TDeviceUser" id="TDeviceUserResult">
<result property="userId" column="user_id" />
<result property="username" column="username" />
<result property="township" column="township" />
<result property="deviceCode" column="device_code" />
<result property="deviceType" column="device_type" />
<result property="address" column="address" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="linkman" column="linkman" />
<result property="phone" column="phone" />
<result property="email" column="email" />
<result property="medium" column="medium" />
<result property="unit" column="unit" />
<result property="status" column="status" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
</resultMap>
<sql id="selectTDeviceUserVo">
select user_id, username, township, device_code, device_type, address, longitude, latitude, linkman, phone, email, medium, unit, status, create_time, update_time, is_del, remarks from t_device_user
</sql>
<select id="selectTDeviceUserList" parameterType="TDeviceUser" resultMap="TDeviceUserResult">
<include refid="selectTDeviceUserVo"/>
<where>
<if test="username != null and username != ''"> and username like concat('%', #{username}, '%')</if>
<if test="township != null and township != ''"> and township = #{township}</if>
<if test="deviceCode != null and deviceCode != ''"> and device_code = #{deviceCode}</if>
<if test="deviceType != null and deviceType != ''"> and device_type = #{deviceType}</if>
<if test="address != null and address != ''"> and address = #{address}</if>
<if test="longitude != null "> and longitude = #{longitude}</if>
<if test="latitude != null "> and latitude = #{latitude}</if>
<if test="linkman != null and linkman != ''"> and linkman = #{linkman}</if>
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
<if test="email != null and email != ''"> and email = #{email}</if>
<if test="medium != null and medium != ''"> and medium = #{medium}</if>
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
<if test="status != null "> and status = #{status}</if>
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
</where>
</select>
<select id="selectTDeviceUserById" parameterType="Long" resultMap="TDeviceUserResult">
<include refid="selectTDeviceUserVo"/>
where user_id = #{userId}
</select>
<select id="selectTDeviceUserByCode" resultMap="TDeviceUserResult">
<include refid="selectTDeviceUserVo"/>
where device_code = #{code}
</select>
<select id="allListbyTownship" resultMap="TDeviceUserResult" >
SELECT * FROM t_device_user WHERE township IS NOT NULL GROUP BY township
</select>
<insert id="insertTDeviceUser" parameterType="TDeviceUser" useGeneratedKeys="true" keyProperty="userId">
insert into t_device_user
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="username != null">username,</if>
<if test="township != null">township,</if>
<if test="deviceCode != null">device_code,</if>
<if test="deviceType != null">device_type,</if>
<if test="address != null">address,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="linkman != null">linkman,</if>
<if test="phone != null">phone,</if>
<if test="email != null">email,</if>
<if test="medium != null">medium,</if>
<if test="unit != null">unit,</if>
<if test="status != null">status,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="username != null">#{username},</if>
<if test="township != null">#{township},</if>
<if test="deviceCode != null">#{deviceCode},</if>
<if test="deviceType != null">#{deviceType},</if>
<if test="address != null">#{address},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="linkman != null">#{linkman},</if>
<if test="phone != null">#{phone},</if>
<if test="email != null">#{email},</if>
<if test="medium != null">#{medium},</if>
<if test="unit != null">#{unit},</if>
<if test="status != null">#{status},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTDeviceUser" parameterType="TDeviceUser">
update t_device_user
<trim prefix="SET" suffixOverrides=",">
<if test="username != null">username = #{username},</if>
<if test="township != null">township = #{township},</if>
<if test="deviceCode != null">device_code = #{deviceCode},</if>
<if test="deviceType != null">device_type = #{deviceType},</if>
<if test="address != null">address = #{address},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="linkman != null">linkman = #{linkman},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="email != null">email = #{email},</if>
<if test="medium != null">medium = #{medium},</if>
<if test="unit != null">unit = #{unit},</if>
<if test="status != null">status = #{status},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where user_id = #{userId}
</update>
<delete id="deleteTDeviceUserById" parameterType="Long">
delete from t_device_user where user_id = #{userId}
</delete>
<delete id="deleteTDeviceUserByIds" parameterType="String">
delete from t_device_user where user_id in
<foreach item="userId" collection="array" open="(" separator="," close=")">
#{userId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TEmergencyDeviceMapper">
<resultMap type="TEmergencyDevice" id="TEmergencyDeviceResult">
<result property="id" column="id" />
<result property="deviceType" column="device_type" />
<result property="deviceName" column="device_name" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="contacts" column="contacts" />
<result property="phone" column="phone" />
<result property="address" column="address" />
<result property="introduce" column="introduce" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
</resultMap>
<sql id="selectTEmergencyDeviceVo">
select id, device_type, device_name, longitude, latitude, contacts, phone, address, introduce, create_time, update_time, is_del from t_emergency_device
</sql>
<select id="selectTEmergencyDeviceList" parameterType="TEmergencyDevice" resultMap="TEmergencyDeviceResult">
<include refid="selectTEmergencyDeviceVo"/>
<where>
<if test="deviceType != null "> and device_type = #{deviceType}</if>
<if test="deviceName != null and deviceName != ''"> and device_name like concat('%', #{deviceName}, '%')</if>
<if test="longitude != null and longitude != ''"> and longitude = #{longitude}</if>
<if test="latitude != null and latitude != ''"> and latitude = #{latitude}</if>
<if test="address != null and address != ''"> and address = #{address}</if>
</where>
</select>
<select id="selectTEmergencyDeviceById" parameterType="String" resultMap="TEmergencyDeviceResult">
<include refid="selectTEmergencyDeviceVo"/>
where id = #{id}
</select>
<insert id="insertTEmergencyDevice" parameterType="TEmergencyDevice">
insert into t_emergency_device
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="deviceType != null">device_type,</if>
<if test="deviceName != null">device_name,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="contacts != null">contacts,</if>
<if test="phone != null">phone,</if>
<if test="address != null">address,</if>
<if test="introduce != null">introduce,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="deviceType != null">#{deviceType},</if>
<if test="deviceName != null">#{deviceName},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="contacts != null">#{contacts},</if>
<if test="phone != null">#{phone},</if>
<if test="address != null">#{address},</if>
<if test="introduce != null">#{introduce},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
</trim>
</insert>
<update id="updateTEmergencyDevice" parameterType="TEmergencyDevice">
update t_emergency_device
<trim prefix="SET" suffixOverrides=",">
<if test="deviceType != null">device_type = #{deviceType},</if>
<if test="deviceName != null">device_name = #{deviceName},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="contacts != null">contacts = #{contacts},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="address != null">address = #{address},</if>
<if test="introduce != null">introduce = #{introduce},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTEmergencyDeviceById" parameterType="String">
delete from t_emergency_device where id = #{id}
</delete>
<delete id="deleteTEmergencyDeviceByIds" parameterType="String">
delete from t_emergency_device where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TEmployedPeopleInfoMapper">
<resultMap type="TEmployedPeopleInfo" id="TEmployedPeopleInfoResult">
<result property="employedPeopleId" column="employed_people_id" />
<result property="employedPeopleName" column="employed_people_name" />
<result property="idCard" column="id_card" />
<result property="avatarAddress" column="avatar_address" />
<result property="certificateNum" column="certificate_num" />
<result property="beyondEnterpriseName" column="beyond_enterprise_name" />
<result property="beyondEnterpriseId" column="beyond_enterprise_id" />
<result property="registerExaminationType" column="register_examination_type" />
<result property="peopleOccupation" column="people_occupation" />
<result property="issueDate" column="issue_date" />
<result property="certificateChange" column="certificate_change" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
</resultMap>
<resultMap type="TEnterpriseInfo" id="TEnterpriseInfoResult">
<result property="enterpriseId" column="enterprise_id" />
<result property="enterpriseName" column="enterprise_name" />
<result property="registerAddress" column="register_address" />
<result property="legalRepresentative" column="legal_representative" />
<result property="businessArea" column="business_area" />
<result property="licenseKey" column="license_key" />
<result property="licenseValidityTime" column="license_validity_time" />
<result property="annualSupervisionInspection" column="annual_supervision_inspection" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
</resultMap>
<sql id="selectTEmployedPeopleInfoVo">
select employed_people_id, employed_people_name, id_card, certificate_num, beyond_enterprise_name, beyond_enterprise_id, register_examination_type, (CASE people_occupation WHEN '1' THEN '主要负责人' WHEN '2' THEN '安全管理人员' WHEN '3' THEN '运行维护和抢修人员'end ) as people_occupation, issue_date, certificate_change, create_by, create_time, update_by, update_time, is_del, remarks from t_employed_people_info
</sql>
<select id="selectTEmployedPeopleInfoList" parameterType="TEmployedPeopleInfo" resultMap="TEmployedPeopleInfoResult">
select employed_people_id, employed_people_name,avatar_address, id_card, certificate_num, beyond_enterprise_name, beyond_enterprise_id, register_examination_type,people_occupation, issue_date, certificate_change, create_by, create_time, update_by, update_time, is_del, remarks from t_employed_people_info
<where>
1=1 and is_del='0'
<if test=" beyondEnterpriseId !='-2' and beyondEnterpriseId != null and beyondEnterpriseId != ''"> and beyond_enterprise_id = #{beyondEnterpriseId}</if>
<if test="employedPeopleName != null and employedPeopleName != ''"> and employed_people_name like concat('%', #{employedPeopleName}, '%')</if>
<if test="idCard != null and idCard != ''"> and id_card = #{idCard}</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
</where>
ORDER by employed_people_id desc
</select>
<select id="selectTEmployedPeopleInfoById" parameterType="Long" resultMap="TEmployedPeopleInfoResult">
select employed_people_id, employed_people_name, id_card, certificate_num, beyond_enterprise_name, beyond_enterprise_id, register_examination_type, people_occupation, issue_date, certificate_change, create_by, create_time, update_by, update_time, is_del, remarks,avatar_address from t_employed_people_info
where employed_people_id = #{employedPeopleId} and is_del='0'
</select>
<insert id="insertTEmployedPeopleInfo" parameterType="TEmployedPeopleInfo" useGeneratedKeys="true" keyProperty="employedPeopleId">
insert into t_employed_people_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="employedPeopleName != null">employed_people_name,</if>
<if test="idCard != null">id_card,</if>
<if test="certificateNum != null">certificate_num,</if>
<if test="beyondEnterpriseName != null">beyond_enterprise_name,</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id,</if>
<if test="registerExaminationType != null">register_examination_type,</if>
<if test="peopleOccupation != null">people_occupation,</if>
<if test="issueDate != null">issue_date,</if>
<if test="certificateChange != null">certificate_change,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
<if test="avatarAddress != null">avatar_address,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="employedPeopleName != null">#{employedPeopleName},</if>
<if test="idCard != null">#{idCard},</if>
<if test="certificateNum != null">#{certificateNum},</if>
<if test="beyondEnterpriseName != null">#{beyondEnterpriseName},</if>
<if test="beyondEnterpriseId != null">#{beyondEnterpriseId},</if>
<if test="registerExaminationType != null">#{registerExaminationType},</if>
<if test="peopleOccupation != null">#{peopleOccupation},</if>
<if test="issueDate != null">#{issueDate},</if>
<if test="certificateChange != null">#{certificateChange},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
<if test="avatarAddress != null">#{avatarAddress},</if>
</trim>
</insert>
<update id="updateTEmployedPeopleInfo" parameterType="TEmployedPeopleInfo">
update t_employed_people_info
<trim prefix="SET" suffixOverrides=",">
<if test="employedPeopleName != null">employed_people_name = #{employedPeopleName},</if>
<if test="idCard != null">id_card = #{idCard},</if>
<if test="certificateNum != null">certificate_num = #{certificateNum},</if>
<if test="beyondEnterpriseName != null">beyond_enterprise_name = #{beyondEnterpriseName},</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id = #{beyondEnterpriseId},</if>
<if test="registerExaminationType != null">register_examination_type = #{registerExaminationType},</if>
<if test="peopleOccupation != null">people_occupation = #{peopleOccupation},</if>
<if test="issueDate != null">issue_date = #{issueDate},</if>
<if test="certificateChange != null">certificate_change = #{certificateChange},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
<if test="avatarAddress != null">avatar_address = #{avatarAddress},</if>
</trim>
where employed_people_id = #{employedPeopleId}
</update>
<update id="deleteTEmployedPeopleInfoById" parameterType="Long">
update t_employed_people_info set is_del='1' where employed_people_id = #{employedPeopleId}
</update>
<update id="deleteTEmployedPeopleInfoByIds" parameterType="String">
update t_employed_people_info set is_del='1' where employed_people_id in
<foreach item="employedPeopleId" collection="array" open="(" separator="," close=")">
#{employedPeopleId}
</foreach>
</update>
<!--企业信息查询(下拉框数据)-->
<select id="selectTEnterprise" resultMap="TEnterpriseInfoResult">
select enterprise_id,enterprise_name from t_enterprise_info where
<if test="deptId!=null and deptId!= -2">
enterprise_id =#{deptId} and
</if>
is_del='0'
</select>
<!--根据企业id查询企业名称-->
<select id="selectEnterpriseName" resultType="String">
select enterprise_name from t_enterprise_info where enterprise_id=#{bId} and is_del='0'
</select>
</mapper>
<?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.zehong.system.mapper.TEnterpriseInfoMapper">
<resultMap type="TEnterpriseInfo" id="TEnterpriseInfoResult">
<result property="enterpriseId" column="enterprise_id" />
<result property="createEnterpriseId" column="create_enterprise_id" />
<result property="enterpriseName" column="enterprise_name" />
<result property="enterpriseType" column="enterprise_type" />
<result property="registerAddress" column="register_address" />
<result property="legalRepresentative" column="legal_representative" />
<result property="businessArea" column="business_area" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="iconType" column="icon_type" />
<result property="licenseKey" column="license_key" />
<result property="licenseValidityTime" column="license_validity_time" />
<result property="annualSupervisionInspection" column="annual_supervision_inspection" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
<result property="doDusiness" column="do_business" />
</resultMap>
<sql id="selectTEnterpriseInfoVo">
select enterprise_id, enterprise_name, register_address, legal_representative,enterprise_type,
business_area, longitude, latitude, icon_type, license_key, license_validity_time, annual_supervision_inspection,
create_by, create_time, update_by, update_time, remarks,do_business from t_enterprise_info
</sql>
<select id="selectTEnterpriseInfoList" parameterType="TEnterpriseInfo" resultMap="TEnterpriseInfoResult">
<include refid="selectTEnterpriseInfoVo"/>
<where>
1=1 and is_del='0'
<if test="enterpriseId != -2 and enterpriseId != null and enterpriseId != ''">
and enterprise_id = #{enterpriseId}
</if>
<if test="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if>
<if test="registerAddress != null and registerAddress != ''"> and register_address = #{registerAddress}</if>
<if test="enterpriseType != null">and enterprise_type =#{enterpriseType}</if>
<if test="legalRepresentative != null and legalRepresentative != ''"> and legal_representative = #{legalRepresentative}</if>
<if test="businessArea != null and businessArea != ''"> and business_area = #{businessArea}</if>
<if test="licenseKey != null and licenseKey != ''"> and license_key = #{licenseKey}</if>
<if test="licenseValidityTime != null and licenseValidityTime != ''"> and license_validity_time = #{licenseValidityTime}</if>
<if test="annualSupervisionInspection != null and annualSupervisionInspection != ''"> and annual_supervision_inspection = #{annualSupervisionInspection}</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
</where>
group by enterprise_id desc
</select>
<select id="selectTEnterpriseInfoById" parameterType="Long" resultMap="TEnterpriseInfoResult">
<include refid="selectTEnterpriseInfoVo"/>
where enterprise_id = #{enterpriseId} and is_del='0'
</select>
<insert id="insertTEnterpriseInfo" parameterType="TEnterpriseInfo" useGeneratedKeys="true" keyProperty="enterpriseId">
insert into t_enterprise_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="createEnterpriseId != null">create_enterprise_id,</if>
<if test="enterpriseName != null">enterprise_name,</if>
<if test="enterpriseType!=null">enterprise_type,</if>
<if test="registerAddress != null">register_address,</if>
<if test="legalRepresentative != null">legal_representative,</if>
<if test="businessArea != null">business_area,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="iconType != null">icon_type,</if>
<if test="licenseKey != null">license_key,</if>
<if test="licenseValidityTime != null">license_validity_time,</if>
<if test="annualSupervisionInspection != null">annual_supervision_inspection,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
<if test="doDusiness != null">do_business,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="createEnterpriseId != null">#{createEnterpriseId},</if>
<if test="enterpriseName != null">#{enterpriseName},</if>
<if test="enterpriseType != null"> #{enterpriseType},</if>
<if test="registerAddress != null">#{registerAddress},</if>
<if test="legalRepresentative != null">#{legalRepresentative},</if>
<if test="businessArea != null">#{businessArea},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="iconType != null">#{iconType},</if>
<if test="licenseKey != null">#{licenseKey},</if>
<if test="licenseValidityTime != null">#{licenseValidityTime},</if>
<if test="annualSupervisionInspection != null">#{annualSupervisionInspection},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
<if test="doDusiness != null">#{doDusiness},</if>
</trim>
</insert>
<update id="updateTEnterpriseInfo" parameterType="TEnterpriseInfo">
update t_enterprise_info
<trim prefix="SET" suffixOverrides=",">
<if test="enterpriseName != null">enterprise_name = #{enterpriseName},</if>
<if test="enterpriseType!=null"> enterprise_type = #{enterpriseType},</if>
<if test="registerAddress != null">register_address = #{registerAddress},</if>
<if test="legalRepresentative != null">legal_representative = #{legalRepresentative},</if>
<if test="businessArea != null">business_area = #{businessArea},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="iconType != null">icon_type = #{iconType},</if>
<if test="licenseKey != null">license_key = #{licenseKey},</if>
<if test="licenseValidityTime != null">license_validity_time = #{licenseValidityTime},</if>
<if test="annualSupervisionInspection != null">annual_supervision_inspection = #{annualSupervisionInspection},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remarks != null">remarks = #{remarks},</if>
<if test="doDusiness != null">do_business=#{doDusiness},</if>
</trim>
where enterprise_id = #{enterpriseId}
</update>
<update id="deleteTEnterpriseInfoById" parameterType="Long">
update t_enterprise_info set is_del='1' where enterprise_id = #{enterpriseId}
</update>
<update id="deleteTEnterpriseInfoByIds" parameterType="String">
update t_enterprise_info set is_del='1' where enterprise_id in
<foreach item="enterpriseId" collection="array" open="(" separator="," close=")">
#{enterpriseId}
</foreach>
</update>
</mapper>
<?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.zehong.system.mapper.TEventHandleMapper">
<resultMap type="TEventHandle" id="TEventHandleResult">
<result property="handleId" column="handle_id" />
<result property="eventId" column="event_id" />
<result property="eventType" column="event_type" />
<result property="enterpriseId" column="enterprise_id" />
<result property="enterpriseName" column="enterprise_name" />
<result property="management" column="management" />
<result property="managementEvent" column="management_event" />
<result property="planId" column="plan_id" />
<result property="planTitle" column="plan_title" />
<result property="planUrl" column="plan_url" />
<result property="guidanceOpinion" column="guidance_opinion" />
<result property="guidanceTime" column="guidance_time" />
<result property="isDel" column="is_del" />
<result property="createTime" column="create_time" />
</resultMap>
<sql id="selectTEventHandleVo">
select handle_id, event_id,event_type, enterprise_id, enterprise_name, management,management_event, plan_id,plan_title,plan_url, guidance_opinion, guidance_time, is_del, create_time from t_event_handle
</sql>
<select id="selectTEventHandleList" parameterType="TEventHandle" resultMap="TEventHandleResult">
<include refid="selectTEventHandleVo"/>
<where>
<if test="eventId != null "> and event_id = #{eventId}</if>
<if test="eventType != null "> and event_type = #{eventType}</if>
</where>
</select>
<select id="selectTEventHandleById" parameterType="Long" resultMap="TEventHandleResult">
<include refid="selectTEventHandleVo"/>
where handle_id = #{handleId}
</select>
<insert id="insertTEventHandle" parameterType="TEventHandle" useGeneratedKeys="true" keyProperty="handleId">
insert into t_event_handle
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="eventId != null">event_id,</if>
<if test="eventType != null">event_type,</if>
<if test="enterpriseId != null">enterprise_id,</if>
<if test="enterpriseName != null">enterprise_name,</if>
<if test="management != null">management,</if>
<if test="managementEvent != null">management_event,</if>
<if test="planId != null">plan_id,</if>
<if test="planTitle != null">plan_title,</if>
<if test="planUrl != null">plan_url,</if>
<if test="guidanceOpinion != null">guidance_opinion,</if>
<if test="guidanceTime != null">guidance_time,</if>
<if test="isDel != null">is_del,</if>
<if test="createTime != null">create_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="eventId != null">#{eventId},</if>
<if test="eventType != null">#{eventType},</if>
<if test="enterpriseId != null">#{enterpriseId},</if>
<if test="enterpriseName != null">#{enterpriseName},</if>
<if test="management != null">#{management},</if>
<if test="managementEvent != null">#{managementEvent},</if>
<if test="planId != null">#{planId},</if>
<if test="planTitle != null">#{planTitle},</if>
<if test="planUrl != null">#{planUrl},</if>
<if test="guidanceOpinion != null">#{guidanceOpinion},</if>
<if test="guidanceTime != null">#{guidanceTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="createTime != null">#{createTime},</if>
</trim>
</insert>
<update id="updateTEventHandle" parameterType="TEventHandle">
update t_event_handle
<trim prefix="SET" suffixOverrides=",">
<if test="eventId != null">event_id = #{eventId},</if>
<if test="eventType != null">event_type = #{eventType},</if>
<if test="enterpriseId != null">enterprise_id = #{enterpriseId},</if>
<if test="enterpriseName != null">enterprise_name = #{enterpriseName},</if>
<if test="management != null">management = #{management},</if>
<if test="managementEvent != null">management_event = #{managementEvent},</if>
<if test="planId != null">plan_id = #{planId},</if>
<if test="planTitle != null">plan_title = #{planTitle},</if>
<if test="planUrl != null">plan_url = #{planUrl},</if>
<if test="guidanceOpinion != null">guidance_opinion = #{guidanceOpinion},</if>
<if test="guidanceTime != null">guidance_time = #{guidanceTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="createTime != null">create_time = #{createTime},</if>
</trim>
where handle_id = #{handleId}
</update>
<delete id="deleteTEventHandleById" parameterType="Long">
delete from t_event_handle where handle_id = #{handleId}
</delete>
<delete id="deleteTEventHandleByIds" parameterType="String">
delete from t_event_handle where handle_id in
<foreach item="handleId" collection="array" open="(" separator="," close=")">
#{handleId}
</foreach>
</delete>
<select id="selectByLast" resultMap="TEventHandleResult">
SELECT * FROM t_event_handle WHERE is_del=0 and event_id =#{eventId}
order by create_time desc limit 1
</select>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TEventInfoMapper">
<resultMap type="TEventInfo" id="TEventInfoResult">
<result property="eventId" column="event_id" />
<result property="eventTitle" column="event_title" />
<result property="eventType" column="event_type" />
<result property="eventLevel" column="event_level" />
<result property="eventLocation" column="event_location" />
<result property="reportTime" column="report_time" />
<result property="reportPerson" column="report_person" />
<result property="eventDeal" column="event_deal" />
<result property="eventAssessment" column="event_assessment" />
<result property="beyondEnterpriseId" column="beyond_enterprise_id" />
<result property="beyondEnterpriseName" column="beyond_enterprise_name" />
<result property="iconUrl" column="icon_url" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
</resultMap>
<sql id="selectTEventInfoVo">
select event_id, event_title, event_type, event_level, event_location, report_time, report_person, event_deal, event_assessment, beyond_enterprise_id, beyond_enterprise_name, icon_url, create_by, create_time, update_by, update_time, is_del, remarks from t_event_info
</sql>
<select id="selectTEventInfoList" parameterType="TEventInfo" resultMap="TEventInfoResult">
<include refid="selectTEventInfoVo"/>
<where>
<if test="eventTitle != null and eventTitle != ''"> and event_title like concat('%', #{eventTitle}, '%')</if>
<if test="eventType != null and eventType != ''"> and event_type = #{eventType}</if>
<if test="eventLevel != null and eventLevel != ''"> and event_level = #{eventLevel}</if>
<if test="reportPerson != null and reportPerson != ''"> and report_person like concat('%', #{reportPerson}, '%')</if>
<if test="beyondEnterpriseId != null and beyondEnterpriseId != ''"> and beyond_enterprise_id = #{beyondEnterpriseId}</if>
</where>
order by report_time
</select>
<select id="selectTEventInfoById" parameterType="Long" resultMap="TEventInfoResult">
<include refid="selectTEventInfoVo"/>
where event_id = #{eventId}
</select>
<insert id="insertTEventInfo" parameterType="TEventInfo" useGeneratedKeys="true" keyProperty="eventId">
insert into t_event_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="eventTitle != null">event_title,</if>
<if test="eventType != null">event_type,</if>
<if test="eventLevel != null">event_level,</if>
<if test="eventLocation != null">event_location,</if>
<if test="reportTime != null">report_time,</if>
<if test="reportPerson != null">report_person,</if>
<if test="eventDeal != null">event_deal,</if>
<if test="eventAssessment != null">event_assessment,</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id,</if>
<if test="beyondEnterpriseName != null">beyond_enterprise_name,</if>
<if test="iconUrl != null">icon_url,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="eventTitle != null">#{eventTitle},</if>
<if test="eventType != null">#{eventType},</if>
<if test="eventLevel != null">#{eventLevel},</if>
<if test="eventLocation != null">#{eventLocation},</if>
<if test="reportTime != null">#{reportTime},</if>
<if test="reportPerson != null">#{reportPerson},</if>
<if test="eventDeal != null">#{eventDeal},</if>
<if test="eventAssessment != null">#{eventAssessment},</if>
<if test="beyondEnterpriseId != null">#{beyondEnterpriseId},</if>
<if test="beyondEnterpriseName != null">#{beyondEnterpriseName},</if>
<if test="iconUrl != null">#{iconUrl},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTEventInfo" parameterType="TEventInfo">
update t_event_info
<trim prefix="SET" suffixOverrides=",">
<if test="eventTitle != null">event_title = #{eventTitle},</if>
<if test="eventType != null">event_type = #{eventType},</if>
<if test="eventLevel != null">event_level = #{eventLevel},</if>
<if test="eventLocation != null">event_location = #{eventLocation},</if>
<if test="reportTime != null">report_time = #{reportTime},</if>
<if test="reportPerson != null">report_person = #{reportPerson},</if>
<if test="eventDeal != null">event_deal = #{eventDeal},</if>
<if test="eventAssessment != null">event_assessment = #{eventAssessment},</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id = #{beyondEnterpriseId},</if>
<if test="beyondEnterpriseName != null">beyond_enterprise_name = #{beyondEnterpriseName},</if>
<if test="iconUrl != null">icon_url = #{iconUrl},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where event_id = #{eventId}
</update>
<delete id="deleteTEventInfoById" parameterType="Long">
delete from t_event_info where event_id = #{eventId}
</delete>
<delete id="deleteTEventInfoByIds" parameterType="String">
delete from t_event_info where event_id in
<foreach item="eventId" collection="array" open="(" separator="," close=")">
#{eventId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TEventReceiveMapper">
<resultMap type="TEventReceive" id="TEventReceiveResult">
<result property="id" column="id" />
<result property="eventName" column="event_name" />
<result property="eventType" column="event_type" />
<result property="eventGrade" column="event_grade" />
<result property="address" column="address" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="informant" column="informant" />
<result property="inforTime" column="infor_time" />
<result property="informantPhone" column="informant_phone" />
<result property="describe" column="describe" />
<result property="status" column="status" />
<result property="enterpriseId" column="enterprise_id" />
<result property="enterpriseName" column="enterprise_name" />
<result property="remarks" column="remarks" />
<result property="companyRead" column="company_read" />
<result property="governmentRead" column="government_read" />
<result property="isDel" column="is_del" />
<result property="createTime" column="create_time" />
</resultMap>
<sql id="selectTEventReceiveVo">
select id, event_name, event_type, event_grade, address, longitude, latitude,
company_read,government_read,informant, infor_time, informant_phone, `describe`, `status`,enterprise_id, enterprise_name, remarks, is_del, create_time from t_event_receive
</sql>
<select id="getReadReceiveList" resultMap="TEventReceiveResult">
<include refid="selectTEventReceiveVo"/>
<where>
<if test="enterpriseId != null and enterpriseId != -2"> and enterprise_id = #{enterpriseId}</if>
</where>
</select>
<select id="selectTEventReceiveList" parameterType="TEventReceive" resultMap="TEventReceiveResult">
<include refid="selectTEventReceiveVo"/>
<where>
<if test="eventName != null and eventName != ''"> and event_name like concat('%', #{eventName}, '%')</if>
<if test="eventType != null "> and event_type = #{eventType}</if>
<if test="eventGrade != null "> and event_grade = #{eventGrade}</if>
<if test="enterpriseId != null and enterpriseId != ''"> and enterprise_id = #{enterpriseId}</if>
<if test="status != null and status!=5"> and status = #{status}</if>
<if test="companyRead != null"> and company_read = #{companyRead}</if>
<if test="governmentRead != null"> and government_read = #{governmentRead}</if>
<if test="status ==5"> and status !=4 </if>
and is_del = 0
</where>
order by infor_time
</select>
<select id="selectTEventReceiveById" parameterType="String" resultMap="TEventReceiveResult">
<include refid="selectTEventReceiveVo"/>
where id = #{id}
</select>
<insert id="insertTEventReceive" parameterType="TEventReceive">
insert into t_event_receive
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="eventName != null">event_name,</if>
<if test="eventType != null">event_type,</if>
<if test="eventGrade != null">event_grade,</if>
<if test="address != null">address,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="informant != null">informant,</if>
<if test="inforTime != null">infor_time,</if>
<if test="informantPhone != null">informant_phone,</if>
<if test="describe != null">`describe`,</if>
<if test="status != null">`status`,</if>
<if test="enterpriseId != null">enterprise_id,</if>
<if test="enterpriseName != null">enterprise_name,</if>
<if test="remarks != null">remarks,</if>
<if test="companyRead != null">company_read,</if>
<if test="governmentRead != null">government_read,</if>
<if test="isDel != null">is_del,</if>
<if test="createTime != null">create_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="eventName != null">#{eventName},</if>
<if test="eventType != null">#{eventType},</if>
<if test="eventGrade != null">#{eventGrade},</if>
<if test="address != null">#{address},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="informant != null">#{informant},</if>
<if test="inforTime != null">#{inforTime},</if>
<if test="informantPhone != null">#{informantPhone},</if>
<if test="describe != null">#{describe},</if>
<if test="status != null">#{status},</if>
<if test="enterpriseId != null">#{enterpriseId},</if>
<if test="enterpriseName != null">#{enterpriseName},</if>
<if test="remarks != null">#{remarks},</if>
<if test="companyRead != null">#{companyRead},</if>
<if test="governmentRead != null">#{governmentRead},</if>
<if test="isDel != null">#{isDel},</if>
<if test="createTime != null">#{createTime},</if>
</trim>
</insert>
<update id="updateTEventReceive" parameterType="TEventReceive">
update t_event_receive
<trim prefix="SET" suffixOverrides=",">
<if test="eventName != null">event_name = #{eventName},</if>
<if test="eventType != null">event_type = #{eventType},</if>
<if test="eventGrade != null">event_grade = #{eventGrade},</if>
<if test="address != null">address = #{address},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="informant != null">informant = #{informant},</if>
<if test="inforTime != null">infor_time = #{inforTime},</if>
<if test="informantPhone != null">informant_phone = #{informantPhone},</if>
<if test="describe != null">`describe` = #{describe},</if>
<if test="status != null">`status` = #{status},</if>
<if test="enterpriseId != null">enterprise_id = #{enterpriseId},</if>
<if test="enterpriseName != null">enterprise_name = #{enterpriseName},</if>
<if test="remarks != null">remarks = #{remarks},</if>
<if test="companyRead != null">company_read = #{companyRead},</if>
<if test="governmentRead != null">government_read = #{governmentRead},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="createTime != null">create_time = #{createTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTEventReceiveById" parameterType="String">
delete from t_event_receive where id = #{id}
</delete>
<delete id="deleteTEventReceiveByIds" parameterType="String">
delete from t_event_receive where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.THiddenDangerStandingBookMapper">
<resultMap type="THiddenDangerStandingBook" id="THiddenDangerStandingBookResult">
<result property="hiddenId" column="hidden_id" />
<result property="hiddenTitle" column="hidden_title" />
<result property="hiddenContent" column="hidden_content" />
<result property="hiddenLocation" column="hidden_location" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="hiddenType" column="hidden_type" />
<result property="hiddenFindPeople" column="hidden_find_people" />
<result property="hiddenFindDate" column="hidden_find_date" />
<result property="dealPlan" column="deal_plan" />
<result property="dealPlanUrl" column="deal_plan_url" />
<result property="remediation" column="remediation" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
<result property="beyondEnterpriseId" column="beyondEnterprise_id" />
<result property="hiddenTroubleType" column="hidden_trouble_type" />
</resultMap>
<sql id="selectTHiddenDangerStandingBookVo">
select hidden_id, hidden_title, hidden_content, hidden_location, longitude, latitude, hidden_type, hidden_find_people, hidden_find_date, deal_plan, deal_plan_url, remediation, create_by, create_time, update_by, update_time, is_del,beyondEnterprise_id, remarks,township,source,hidden_trouble_type from t_hidden_danger_standing_book
</sql>
<select id="selectTHiddenDangerStandingBookList" parameterType="THiddenDangerStandingBookForm" resultMap="THiddenDangerStandingBookResult">
<include refid="selectTHiddenDangerStandingBookVo"/>
<where> is_del = '0'
<if test="hiddenTitle != null and hiddenTitle != ''"> and hidden_title like concat('%', #{hiddenTitle}, '%')</if>
<if test="hiddenType != null and hiddenType != ''"> and hidden_type = #{hiddenType}</if>
<if test="remediation != null and remediation != ''"> and remediation = #{remediation}</if>
<if test="hiddenFindDateStart != null "> and hidden_find_date &gt;= #{hiddenFindDateStart}</if>
<if test="hiddenFindDateEnd != null "> and hidden_find_date &lt;= #{hiddenFindDateEnd}</if>
<if test="beyondEnterpriseId != null "> and beyondEnterprise_id = #{beyondEnterpriseId}</if>
</where>
order by create_time desc
</select>
<select id="selectTHiddenDangerStandingBookStatistic" resultType="THiddenDangerStandingBookVo">
select COUNT(t.hidden_id) AS hiddenTotal,
SUM(CASE t.hidden_type WHEN '1' THEN 1 ELSE 0 END) AS oneLevelTotal,
SUM(CASE t.hidden_type WHEN '2' THEN 1 ELSE 0 END) AS twoLevelTotal,
SUM(CASE t.hidden_type WHEN '3' THEN 1 ELSE 0 END) AS threeLevelTotal,
SUM(CASE t.remediation WHEN '1' THEN 1 ELSE 0 END) AS completedTotal,
SUM(CASE t.remediation WHEN '2' THEN 1 ELSE 0 END) AS incompleteTotal
from (select * from t_hidden_danger_standing_book where is_del = '0') t
</select>
<select id="selectTHiddenDangerStandingBookById" parameterType="Long" resultMap="THiddenDangerStandingBookResult">
<include refid="selectTHiddenDangerStandingBookVo"/>
where hidden_id = #{hiddenId}
</select>
<insert id="insertTHiddenDangerStandingBook" parameterType="THiddenDangerStandingBook" useGeneratedKeys="true" keyProperty="hiddenId">
insert into t_hidden_danger_standing_book
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="hiddenTitle != null">hidden_title,</if>
<if test="hiddenContent != null">hidden_content,</if>
<if test="hiddenLocation != null">hidden_location,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="hiddenType != null">hidden_type,</if>
<if test="hiddenFindPeople != null">hidden_find_people,</if>
<if test="hiddenFindDate != null">hidden_find_date,</if>
<if test="dealPlan != null">deal_plan,</if>
<if test="dealPlanUrl != null">deal_plan_url,</if>
<if test="remediation != null">remediation,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
<if test="township != null">township,</if>
<if test="source != null">source,</if>
<if test="beyondEnterpriseId != null">beyondEnterprise_id,</if>
<if test="hiddenTroubleType != null">hidden_trouble_type,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="hiddenTitle != null">#{hiddenTitle},</if>
<if test="hiddenContent != null">#{hiddenContent},</if>
<if test="hiddenLocation != null">#{hiddenLocation},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="hiddenType != null">#{hiddenType},</if>
<if test="hiddenFindPeople != null">#{hiddenFindPeople},</if>
<if test="hiddenFindDate != null">#{hiddenFindDate},</if>
<if test="dealPlan != null">#{dealPlan},</if>
<if test="dealPlanUrl != null">#{dealPlanUrl},</if>
<if test="remediation != null">#{remediation},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
<if test="township != null">#{township},</if>
<if test="source != null">#{source},</if>
<if test="beyondEnterpriseId != null">#{beyondEnterpriseId},</if>
<if test="hiddenTroubleType != null">hidden_trouble_type = #{hiddenTroubleType},</if>
</trim>
</insert>
<update id="updateTHiddenDangerStandingBook" parameterType="THiddenDangerStandingBook">
update t_hidden_danger_standing_book
<trim prefix="SET" suffixOverrides=",">
<if test="hiddenTitle != null">hidden_title = #{hiddenTitle},</if>
<if test="hiddenContent != null">hidden_content = #{hiddenContent},</if>
<if test="hiddenLocation != null">hidden_location = #{hiddenLocation},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="hiddenType != null">hidden_type = #{hiddenType},</if>
<if test="hiddenFindPeople != null">hidden_find_people = #{hiddenFindPeople},</if>
<if test="hiddenFindDate != null">hidden_find_date = #{hiddenFindDate},</if>
<if test="dealPlan != null">deal_plan = #{dealPlan},</if>
<if test="dealPlanUrl != null">deal_plan_url = #{dealPlanUrl},</if>
<if test="remediation != null">remediation = #{remediation},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
<if test="township != null">township = #{township},</if>
<if test="source != null"> source= #{source},</if>
<if test="hiddenTroubleType != null">hidden_trouble_type = #{hiddenTroubleType},</if>
</trim>
where hidden_id = #{hiddenId}
</update>
<delete id="deleteTHiddenDangerStandingBookById" parameterType="Long">
delete from t_hidden_danger_standing_book where hidden_id = #{hiddenId}
</delete>
<delete id="deleteTHiddenDangerStandingBookByIds" parameterType="String">
delete from t_hidden_danger_standing_book where hidden_id in
<foreach item="hiddenId" collection="array" open="(" separator="," close=")">
#{hiddenId}
</foreach>
</delete>
<!--获取隐患整治台账统计信息-->
<select id="hazardStatistics" resultType="com.zehong.system.domain.Statistics">
SELECT
COUNT( * ) AS 'count',
DATE_FORMAT( create_time, '%Y-%m-%d' ) AS date
FROM
t_hidden_danger_standing_book
WHERE
is_del='0'
and
DATE_FORMAT( create_time, '%Y-%m-%d' ) IN
<foreach collection="list" item="sevenDate" separator="," open="(" close=")">
#{sevenDate}
</foreach>
GROUP BY
DATE_FORMAT( create_time, '%Y-%m-%d' )
ORDER BY
DATE_FORMAT( create_time, '%Y-%m-%d' ) DESC;
</select>
<select id="selectCountByMonth" resultType="java.util.HashMap">
SELECT d.`month`,SUM(IF(w.remediation=1,1,0)) AS `ycount`,COUNT(w.hidden_id) AS `zcount`
FROM(
SELECT DATE_FORMAT((CURDATE()), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 1 MONTH), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 2 MONTH), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 3 MONTH), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 4 MONTH), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 5 MONTH), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 6 MONTH), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 7 MONTH), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 8 MONTH), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 9 MONTH), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 10 MONTH), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 11 MONTH), '%Y-%m') AS `month`
)d
LEFT JOIN t_hidden_danger_standing_book w
ON DATE_FORMAT(w.create_time, '%Y-%m')=d.`month` AND w.`is_del` =0
GROUP BY MONTH
</select>
<select id="selectCountByYear" resultType="java.util.HashMap">
SELECT d.`years`, COUNT(w.`hidden_id`) AS `count`
FROM(
SELECT DATE_FORMAT((CURDATE()), '%Y') AS `years`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 1 YEAR), '%Y') AS `years`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 2 YEAR), '%Y') AS `years`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 3 YEAR), '%Y') AS `years`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 4 YEAR), '%Y') AS `years`
)d
LEFT JOIN t_hidden_danger_standing_book w
ON DATE_FORMAT(w.create_time, '%Y')=d.`years` AND w.`is_del` =0
GROUP BY years
</select>
<select id="selectHiddenRanking" resultType="java.util.HashMap">
SELECT COUNT(hidden_id) AS `value` ,d.`dict_label` AS `name`
FROM sys_dict_data d
LEFT JOIN t_hidden_danger_standing_book t1 ON t1.`township` = d.`dict_value` AND t1.`is_del` = 0
WHERE d.`dict_type` ='t_township'
GROUP BY d.`dict_value`
ORDER BY `value` DESC
LIMIT 10
</select>
<select id="selectHiddenSource" resultType="java.util.HashMap">
SELECT COUNT(hidden_id) AS `value` ,d.`dict_label` AS `name`
FROM sys_dict_data d
LEFT JOIN t_hidden_danger_standing_book t1 ON t1.`source` = d.`dict_value` AND t1.`is_del` = 0
WHERE d.`dict_type` ='t_source'
GROUP BY d.`dict_value`
ORDER BY `value` DESC
</select>
<select id="hiddenBookStatistics" resultType="java.util.HashMap">
SELECT
IFNULL(SUM(CASE remediation WHEN '1' THEN 1 ELSE 0 END),0) AS finishNum,
IFNULL(SUM(CASE remediation WHEN '2' THEN 1 ELSE 0 END),0) AS unFinishNum,
IFNULL(SUM(CASE hidden_trouble_type WHEN '1' THEN 1 ELSE 0 END),0) AS blowNum,
IFNULL(SUM(CASE hidden_trouble_type WHEN '2' THEN 1 ELSE 0 END),0) AS corrosionNum,
IFNULL(SUM(CASE hidden_trouble_type WHEN '3' THEN 1 ELSE 0 END),0) AS crackNum,
IFNULL(SUM(CASE hidden_trouble_type WHEN '4' THEN 1 ELSE 0 END),0) AS deviceNum,
IFNULL(SUM(CASE hidden_trouble_type WHEN '5' THEN 1 ELSE 0 END),0) AS distanceNum,
IFNULL(SUM(CASE hidden_trouble_type WHEN '6' THEN 1 ELSE 0 END),0) AS pipeNum,
IFNULL(SUM(CASE hidden_trouble_type WHEN '7' THEN 1 ELSE 0 END),0) AS otherNum
FROM
t_hidden_danger_standing_book
WHERE
is_del = '0'
</select>
</mapper>
<?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.zehong.system.mapper.THiddenTroubleInfoMapper">
<resultMap type="THiddenTroubleInfo" id="THiddenTroubleInfoResult">
<result property="hiddenTroubleId" column="hidden_trouble_id" />
<result property="beyondEnterpriseId" column="beyond_enterprise_id" />
<result property="workId" column="work_id" />
<result property="hiddenTroubleName" column="hidden_trouble_name" />
<result property="hiddenTroubleLevel" column="hidden_trouble_level" />
<result property="hiddenTroubleType" column="hidden_trouble_type" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="pictureUrl" column="picture_url" />
<result property="hiddenTroubleDescribe" column="hidden_trouble_describe" />
<result property="reportTime" column="report_time" />
<result property="reportPerson" column="report_person" />
<result property="hiddenTroubleDealStatus" column="hidden_trouble_deal_status" />
<result property="hiddenTroubleDealCondition" column="hidden_trouble_deal_condition" />
<result property="hiddenTroubleDealFinishTime" column="hidden_trouble_deal_finish_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
<result property="reportPersonName" column="report_person_name" />
<result property="dealUrl" column="deal_url" />
<result property="rejectContent" column="reject_content" />
<result property="fuheGroupNum" column="fuhe_group_num" />
<result property="fuheTime" column="fuhe_time" />
<result property="fuhePerson" column="fuhe_person" />
<result property="dealPerson" column="deal_person" />
<result property="videoUrl" column="video_url" />
<result property="dealVideo" column="deal_video" />
<result property="isReport" column="is_report" />
<result property="hiddenSource" column="hidden_source" />
</resultMap>
<sql id="selectTHiddenTroubleInfoVo">
select hidden_trouble_id, work_id, hidden_trouble_name, hidden_trouble_level, hidden_trouble_type,hidden_source,
longitude, latitude, picture_url, hidden_trouble_describe, report_time,reject_content,fuhe_group_num,
(select u.user_name from sys_user u where u.user_id = report_person) AS report_person_name,
report_person, hidden_trouble_deal_status, hidden_trouble_deal_condition, fuhe_time,deal_video,
fuhe_person,deal_person,video_url,
hidden_trouble_deal_finish_time, is_del, remarks,beyond_enterprise_id,deal_url,is_report
from t_hidden_trouble_info
</sql>
<select id="selectTHiddenTroubleInfoList" parameterType="THiddenTroubleInfo" resultMap="THiddenTroubleInfoResult">
<include refid="selectTHiddenTroubleInfoVo"/>
<where>
is_del='0'
<if test="workId != null "> and work_id = #{workId}</if>
<if test="hiddenTroubleLevel != null and hiddenTroubleLevel != ''"> and hidden_trouble_level = #{hiddenTroubleLevel}</if>
<if test="hiddenTroubleType != null and hiddenTroubleType != ''"> and hidden_trouble_type = #{hiddenTroubleType}</if>
<if test="fuheGroupNum != null "> and fuhe_group_num = #{fuheGroupNum}</if>
<if test="pictureUrl != null and pictureUrl != ''"> and picture_url = #{pictureUrl}</if>
<if test="hiddenTroubleDescribe != null and hiddenTroubleDescribe != ''"> and hidden_trouble_describe = #{hiddenTroubleDescribe}</if>
<if test="reportTime != null "> and report_time = #{reportTime}</if>
<if test="beyondEnterpriseId != null and beyondEnterpriseId != -2"> and beyond_enterprise_id = #{beyondEnterpriseId}</if>
<if test="hiddenTroubleName != null and hiddenTroubleName != ''"> and hidden_trouble_name like concat('%', #{hiddenTroubleName}, '%')</if>
<if test="reportPerson != null and reportPerson != ''"> and report_person = #{reportPerson}</if>
<if test="hiddenTroubleDealStatus != null and hiddenTroubleDealStatus != ''"> and hidden_trouble_deal_status = #{hiddenTroubleDealStatus}</if>
<if test="hiddenTroubleDealCondition != null and hiddenTroubleDealCondition != ''"> and hidden_trouble_deal_condition = #{hiddenTroubleDealCondition}</if>
<if test="hiddenTroubleDealFinishTime != null "> and hidden_trouble_deal_finish_time = #{hiddenTroubleDealFinishTime}</if>
<if test="isReport != null "> and is_report = #{isReport}</if>
<if test="hiddenSource!=null"> and hidden_source = #{hiddenSource}</if>
<if test="reportBeginTime != null and reportEndTime!=null">and report_time BETWEEN #{reportBeginTime} and #{reportEndTime}</if>
</where>
ORDER BY hidden_trouble_id DESC
</select>
<select id="selectTHiddenTroubleInfoListCount" parameterType="THiddenTroubleInfo" resultType="java.util.HashMap">
SELECT
<if test="timeType==null or timeType==1">
DATE_FORMAT(report_time, "%Y-%m-%d") AS `timeType`,
</if>
<if test="timeType==2">
DATE_FORMAT(report_time, "%Y-%u") AS `timeType`,
</if>
<if test="timeType==3">
DATE_FORMAT(report_time, "%Y-%m") AS `timeType`,
</if>
<if test="timeType==4">
DATE_FORMAT(report_time, "%Y") AS `timeType`,
</if>
COUNT(*) AS countNum
FROM t_hidden_trouble_info
<where>
is_del='0'
<if test="workId != null "> and work_id = #{workId}</if>
<if test="hiddenTroubleLevel != null and hiddenTroubleLevel != ''"> and hidden_trouble_level = #{hiddenTroubleLevel}</if>
<if test="hiddenTroubleType != null and hiddenTroubleType != ''"> and hidden_trouble_type = #{hiddenTroubleType}</if>
<if test="beyondEnterpriseId != null and beyondEnterpriseId != -2"> and beyond_enterprise_id = #{beyondEnterpriseId}</if>
<if test="hiddenTroubleName != null and hiddenTroubleName != ''"> and hidden_trouble_name like concat('%', #{hiddenTroubleName}, '%')</if>
<if test="reportPerson != null and reportPerson != ''"> and report_person = #{reportPerson}</if>
<if test="hiddenTroubleDealStatus != null and hiddenTroubleDealStatus != ''"> and hidden_trouble_deal_status = #{hiddenTroubleDealStatus}</if>
</where>
</select>
<select id="selectTHiddenTroubleInfoById" parameterType="Long" resultMap="THiddenTroubleInfoResult">
<include refid="selectTHiddenTroubleInfoVo"/>
where hidden_trouble_id = #{hiddenTroubleId}
</select>
<!--Excel数据导出查询接口-->
<select id="selectTHiddenTroubleInfoExcelList" resultMap="THiddenTroubleInfoResult" parameterType="THiddenTroubleInfo">
select hidden_trouble_id, work_id, hidden_trouble_name,reject_content,fuhe_group_num,
(CASE hidden_trouble_level WHEN '1' THEN 'I级' WHEN '2' THEN 'II级'WHEN '3' THEN 'III级'end) as hidden_trouble_level,
(CASE hidden_trouble_type WHEN '1' THEN '漏气' WHEN '2' THEN '腐蚀'WHEN '3' THEN '裂缝' WHEN '4' THEN '设备故障' WHEN '5' THEN '安全距离不足' WHEN '6' THEN '管道承重'WHEN '7' THEN '其他'end) as hidden_trouble_type,
longitude, latitude, picture_url, hidden_trouble_describe,
report_time, (select u.user_name from sys_user u where u.user_id = report_person) AS report_person_name, report_person,
(CASE hidden_trouble_deal_status WHEN '1' THEN '待处理' WHEN '2' THEN '处理中'WHEN '3' THEN '已完成'end) as hidden_trouble_deal_status,
hidden_trouble_deal_condition, hidden_trouble_deal_finish_time, is_del, remarks,is_report
from t_hidden_trouble_info
<where>
is_del='0'
<if test="beyondEnterpriseId != null and beyondEnterpriseId != -2"> and beyond_enterprise_id = #{beyondEnterpriseId}</if>
<if test="hiddenTroubleName != null and hiddenTroubleName != ''"> and hidden_trouble_name like concat('%', #{hiddenTroubleName}, '%')</if>
<if test="reportPerson != null and reportPerson != ''"> and report_person = #{reportPerson}</if>
<if test="hiddenSource!=null"> and hidden_source = #{hiddenSource}</if>
<if test="reportBeginTime != null and reportEndTime!=null">and report_time BETWEEN #{reportBeginTime} and #{reportEndTime}</if>
</where>
group by hidden_trouble_id desc
</select>
<insert id="insertTHiddenTroubleInfo" parameterType="THiddenTroubleInfo" useGeneratedKeys="true" keyProperty="hiddenTroubleId">
insert into t_hidden_trouble_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="workId != null">work_id,</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id,</if>
<if test="hiddenTroubleName != null">hidden_trouble_name,</if>
<if test="hiddenTroubleLevel != null">hidden_trouble_level,</if>
<if test="hiddenTroubleType != null">hidden_trouble_type,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="pictureUrl != null">picture_url,</if>
<if test="hiddenTroubleDescribe != null">hidden_trouble_describe,</if>
<if test="reportTime != null">report_time,</if>
<if test="reportPerson != null">report_person,</if>
<if test="hiddenTroubleDealStatus != null">hidden_trouble_deal_status,</if>
<if test="hiddenTroubleDealCondition != null">hidden_trouble_deal_condition,</if>
<if test="hiddenTroubleDealFinishTime != null">hidden_trouble_deal_finish_time,</if>
<if test="dealUrl!=null">deal_url,</if>
<if test="fuheGroupNum!=null">fuhe_group_num,</if>
<if test="rejectContent!=null">reject_content,</if>
<if test="remarks != null">remarks,</if>
<if test="videoUrl != null">video_url,</if>
<if test="isReport != null">is_report,</if>
<if test="hiddenSource!=null">hidden_source,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="workId != null">#{workId},</if>
<if test="beyondEnterpriseId != null">#{beyondEnterpriseId},</if>
<if test="hiddenTroubleName != null">#{hiddenTroubleName},</if>
<if test="hiddenTroubleLevel != null">#{hiddenTroubleLevel},</if>
<if test="hiddenTroubleType != null">#{hiddenTroubleType},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="pictureUrl != null">#{pictureUrl},</if>
<if test="hiddenTroubleDescribe != null">#{hiddenTroubleDescribe},</if>
<if test="reportTime != null">#{reportTime},</if>
<if test="reportPerson != null">#{reportPerson},</if>
<if test="hiddenTroubleDealStatus != null">#{hiddenTroubleDealStatus},</if>
<if test="hiddenTroubleDealCondition != null">#{hiddenTroubleDealCondition},</if>
<if test="hiddenTroubleDealFinishTime != null">#{hiddenTroubleDealFinishTime},</if>
<if test="dealUrl!=null">#{dealUrl}</if>
<if test="fuheGroupNum!=null">#{fuheGroupNum}</if>
<if test="rejectContent!=null">#{rejectContent}</if>
<if test="remarks != null">#{remarks},</if>
<if test="videoUrl != null">#{videoUrl},</if>
<if test="isReport != null">#{isReport},</if>
<if test="hiddenSource != null">#{hiddenSource},</if>
</trim>
</insert>
<update id="updateTHiddenTroubleInfo" parameterType="THiddenTroubleInfo">
update t_hidden_trouble_info
<trim prefix="SET" suffixOverrides=",">
<if test="beyondEnterpriseId != null">beyond_enterprise_id = #{beyondEnterpriseId},</if>
<if test="workId != null">work_id = #{workId},</if>
<if test="hiddenTroubleName != null">hidden_trouble_name = #{hiddenTroubleName},</if>
<if test="hiddenTroubleLevel != null">hidden_trouble_level = #{hiddenTroubleLevel},</if>
<if test="hiddenTroubleType != null">hidden_trouble_type = #{hiddenTroubleType},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="pictureUrl != null">picture_url = #{pictureUrl},</if>
<if test="hiddenTroubleDescribe != null">hidden_trouble_describe = #{hiddenTroubleDescribe},</if>
<if test="reportTime != null">report_time = #{reportTime},</if>
<if test="reportPerson != null">report_person = #{reportPerson},</if>
<if test="hiddenTroubleDealStatus != null">hidden_trouble_deal_status = #{hiddenTroubleDealStatus},</if>
<if test="hiddenTroubleDealCondition != null">hidden_trouble_deal_condition = #{hiddenTroubleDealCondition},</if>
<if test="hiddenTroubleDealFinishTime != null">hidden_trouble_deal_finish_time = #{hiddenTroubleDealFinishTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="fuheGroupNum != null">fuhe_group_num = #{fuheGroupNum},</if>
<if test="rejectContent != null">reject_content = #{rejectContent},</if>
<if test="remarks != null">remarks = #{remarks},</if>
<if test="dealUrl != null">deal_url = #{dealUrl},</if>
<if test="fuheTime != null">fuhe_time = #{fuheTime},</if>
<if test="dealPerson != null">deal_person = #{dealPerson},</if>
<if test="fuhePerson != null">fuhe_person = #{fuhePerson},</if>
<if test="videoUrl != null">video_url = #{videoUrl},</if>
<if test="dealVideo != null">deal_video = #{dealVideo},</if>
<if test="isReport != null">is_report = #{isReport},</if>
</trim>
where hidden_trouble_id = #{hiddenTroubleId}
</update>
<update id="deleteTHiddenTroubleInfoById" parameterType="Long">
update t_hidden_trouble_info set is_del='1' where hidden_trouble_id = #{hiddenTroubleId}
</update>
<update id="deleteTHiddenTroubleInfoByIds" parameterType="String">
update t_hidden_trouble_info set is_del='1' where hidden_trouble_id in
<foreach item="hiddenTroubleId" collection="array" open="(" separator="," close=")">
#{hiddenTroubleId}
</foreach>
</update>
<!--查询燃气信息是否有修改-->
<select id="selectDetails" resultMap="THiddenTroubleInfoResult" parameterType="THiddenTroubleInfo">
<include refid="selectTHiddenTroubleInfoVo"/>
where hidden_trouble_id=#{hiddenTroubleId}
<if test="hiddenTroubleName != null">
and hidden_trouble_name = #{hiddenTroubleName}
</if>
<if test="hiddenTroubleLevel != null">
and hidden_trouble_level = #{hiddenTroubleLevel}
</if>
<if test="hiddenTroubleType != null">
and hidden_trouble_type = #{hiddenTroubleType}
</if>
<if test="hiddenTroubleDescribe != null">
and hidden_trouble_describe = #{hiddenTroubleDescribe}
</if>
<if test="longitude != null">
and longitude = #{longitude}
</if>
<if test="latitude != null">
and latitude = #{latitude}
</if>
<if test="pictureUrl != null">
and picture_url= #{pictureUrl}
</if>
</select>
</mapper>
<?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.zehong.system.mapper.TLinePatrolPersonMapper">
<resultMap type="TLinePatrolPerson" id="TLinePatrolPersonResult">
<result property="personId" column="person_id" />
<result property="personName" column="person_name" />
<result property="phoneNum" column="phone_num" />
<result property="personPost" column="person_post" />
<result property="groupNum" column="group_num" />
<result property="beyondEnterpriseId" column="beyond_enterprise_id" />
<result property="personAccount" column="person_account" />
<result property="personPassword" column="person_password" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
</resultMap>
<sql id="selectTLinePatrolPersonVo">
select person_id, person_name, phone_num, person_post, group_num, beyond_enterprise_id, person_account, person_password, create_time, update_time, is_del, remarks from t_line_patrol_person
</sql>
<select id="selectTLinePatrolPersonList" parameterType="TLinePatrolPerson" resultMap="TLinePatrolPersonResult">
<include refid="selectTLinePatrolPersonVo"/>
<where>
<if test="personName != null and personName != ''"> and person_name like concat('%', #{personName}, '%')</if>
<if test="phoneNum != null and phoneNum != ''"> and phone_num = #{phoneNum}</if>
<if test="personPost != null and personPost != ''"> and person_post = #{personPost}</if>
<if test="groupNum != null and groupNum != ''"> and group_num = #{groupNum}</if>
<if test="beyondEnterpriseId != null "> and beyond_enterprise_id = #{beyondEnterpriseId}</if>
<if test="personAccount != null and personAccount != ''"> and person_account = #{personAccount}</if>
<if test="personPassword != null and personPassword != ''"> and person_password = #{personPassword}</if>
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
</where>
</select>
<select id="appPersonList" parameterType="TLinePatrolPerson" resultMap="TLinePatrolPersonResult">
SELECT p.*,d.`dict_label` AS groupName
FROM t_line_patrol_person p
LEFT JOIN sys_dict_data d ON p.group_num = d.`dict_value` AND d.`dict_type` ='t_line_patrol_group'
<where>
<if test="personName != null and personName != ''"> and p.person_name like concat('%', #{personName}, '%')</if>
<if test="phoneNum != null and phoneNum != ''"> and p.phone_num = #{phoneNum}</if>
<if test="personPost != null and personPost != ''"> and p.person_post = #{personPost}</if>
<if test="groupNum != null and groupNum != ''"> and p.group_num = #{groupNum}</if>
<if test="beyondEnterpriseId != null "> and p.beyond_enterprise_id = #{beyondEnterpriseId}</if>
<if test="personAccount != null and personAccount != ''"> and p.person_account = #{personAccount}</if>
and p.person_post > 1
</where>
order by group_num,person_post
</select>
<select id="selectTLinePatrolPersonById" parameterType="Long" resultMap="TLinePatrolPersonResult">
<include refid="selectTLinePatrolPersonVo"/>
where person_id = #{personId}
</select>
<insert id="insertTLinePatrolPerson" parameterType="TLinePatrolPerson" useGeneratedKeys="true" keyProperty="personId">
insert into t_line_patrol_person
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="personName != null">person_name,</if>
<if test="phoneNum != null">phone_num,</if>
<if test="personPost != null">person_post,</if>
<if test="groupNum != null">group_num,</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id,</if>
<if test="personAccount != null">person_account,</if>
<if test="personPassword != null">person_password,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="personName != null">#{personName},</if>
<if test="phoneNum != null">#{phoneNum},</if>
<if test="personPost != null">#{personPost},</if>
<if test="groupNum != null">#{groupNum},</if>
<if test="beyondEnterpriseId != null">#{beyondEnterpriseId},</if>
<if test="personAccount != null">#{personAccount},</if>
<if test="personPassword != null">#{personPassword},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTLinePatrolPerson" parameterType="TLinePatrolPerson">
update t_line_patrol_person
<trim prefix="SET" suffixOverrides=",">
<if test="personName != null">person_name = #{personName},</if>
<if test="phoneNum != null">phone_num = #{phoneNum},</if>
<if test="personPost != null">person_post = #{personPost},</if>
<if test="groupNum != null">group_num = #{groupNum},</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id = #{beyondEnterpriseId},</if>
<if test="personAccount != null">person_account = #{personAccount},</if>
<if test="personPassword != null">person_password = #{personPassword},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where person_id = #{personId}
</update>
<delete id="deleteTLinePatrolPersonById" parameterType="Long">
delete from t_line_patrol_person where person_id = #{personId}
</delete>
<delete id="deleteTLinePatrolPersonByIds" parameterType="String">
delete from t_line_patrol_person where person_id in
<foreach item="personId" collection="array" open="(" separator="," close=")">
#{personId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TMessageDetailInfoMapper">
<resultMap type="TMessageDetailInfo" id="TMessageDetailInfoResult">
<result property="messageDetailId" column="message_detail_id" />
<result property="messageId" column="message_id" />
<result property="personId" column="person_id" />
<result property="messageDetailStatus" column="message_detail_status" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result column="person_name" property="personName"/>
</resultMap>
<sql id="selectTMessageDetailInfoVo">
SELECT
detail.message_detail_id,
detail.message_id,
detail.person_id,
detail.message_detail_status,
detail.create_time,
detail.update_time,
detail.remark,
(select person_name from t_line_patrol_person person where person.person_id = detail.person_id) as person_name
FROM
t_message_detail_info detail
</sql>
<select id="selectTMessageDetailInfoList" parameterType="TMessageDetailInfo" resultMap="TMessageDetailInfoResult">
<include refid="selectTMessageDetailInfoVo"/>
<where>
<if test="messageId != null "> and detail.message_id = #{messageId}</if>
<if test="personId != null "> and detail.person_id = #{personId}</if>
<if test="messageDetailStatus != null and messageDetailStatus != ''"> and detail.message_detail_status = #{messageDetailStatus}</if>
</where>
</select>
<select id="selectTMessageDetailInfoById" parameterType="Long" resultMap="TMessageDetailInfoResult">
<include refid="selectTMessageDetailInfoVo"/>
where detail.message_detail_id = #{messageDetailId}
</select>
<insert id="insertTMessageDetailInfo" parameterType="TMessageDetailInfo" useGeneratedKeys="true" keyProperty="messageDetailId">
insert into t_message_detail_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="messageId != null">message_id,</if>
<if test="personId != null">person_id,</if>
<if test="messageDetailStatus != null">message_detail_status,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="messageId != null">#{messageId},</if>
<if test="personId != null">#{personId},</if>
<if test="messageDetailStatus != null">#{messageDetailStatus},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateTMessageDetailInfo" parameterType="TMessageDetailInfo">
update t_message_detail_info
<trim prefix="SET" suffixOverrides=",">
<if test="messageId != null">message_id = #{messageId},</if>
<if test="personId != null">person_id = #{personId},</if>
<if test="messageDetailStatus != null">message_detail_status = #{messageDetailStatus},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where message_detail_id = #{messageDetailId}
</update>
<delete id="deleteTMessageDetailInfoById" parameterType="Long">
delete from t_message_detail_info where message_detail_id = #{messageDetailId}
</delete>
<delete id="deleteTMessageDetailInfoByIds" parameterType="String">
delete from t_message_detail_info where message_detail_id in
<foreach item="messageDetailId" collection="array" open="(" separator="," close=")">
#{messageDetailId}
</foreach>
</delete>
<delete id="deleteMessageDetailByMessageId" parameterType="Long">
delete from t_message_detail_info where message_id = #{messageId}
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TMessageInfoMapper">
<resultMap type="TMessageInfo" id="TMessageInfoResult">
<result property="messageId" column="message_id" />
<result property="messageTitle" column="message_title" />
<result property="messageContent" column="message_content" />
<result property="status" column="status" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="topping" column="topping"/>
<result property="fujianUrl" column="fujian_url"/>
</resultMap>
<resultMap type="TMessageInfo" id="TMessageInfoResultapp">
<result property="messageId" column="message_id" />
<result property="messageTitle" column="message_title" />
<result property="messageContent" column="message_content" />
<result property="status" column="status" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="messageDetailStatus" column="message_detail_status" />
<result property="messageDetailId" column="message_detail_id"/>
<result property="topping" column="topping"/>
<result property="fujianUrl" column="fujian_url"/>
</resultMap>
<sql id="selectTMessageInfoVo">
SELECT
msg.message_id,
msg.message_title,
msg.message_content,
msg.STATUS,
msg.create_by,
msg.create_time,
msg.update_by,
msg.update_time,
msg.remark,
msg.topping,
msg.fujian_url
FROM
t_message_info msg
</sql>
<select id="selectTMessageInfoList" parameterType="TMessageInfo" resultMap="TMessageInfoResult">
<include refid="selectTMessageInfoVo"/>
<where>
<if test="messageTitle != null and messageTitle != ''"> and msg.message_title like concat('%', #{messageTitle}, '%')</if>
<if test="messageContent != null and messageContent != ''"> and msg.message_content = #{messageContent}</if>
<if test="status != null and status != ''"> and msg.status = #{status}</if>
</where>
order by msg.topping desc, msg.create_time desc
</select>
<select id="selectTMessageInfoListapp" parameterType="TMessageInfo" resultMap="TMessageInfoResultapp">
SELECT
msg.message_id,
msg.message_title,
msg.message_content,
msg.STATUS,
msg.create_by,
msg.create_time,
msg.update_by,
msg.update_time,
msg.remark,
msg.topping,
msg.fujian_url,
detail.message_detail_id,
detail.message_detail_status
FROM
t_message_info msg
LEFT JOIN t_message_detail_info detail ON detail.message_id = msg.message_id
WHERE detail.person_id =#{personId}
and msg.`status` = 0
order by msg.topping desc,detail.message_detail_status ,msg.create_time desc
</select>
<select id="selectTMessageInfoById" parameterType="Long" resultMap="TMessageInfoResult">
<include refid="selectTMessageInfoVo"/>
where msg.message_id = #{messageId}
</select>
<insert id="insertTMessageInfo" parameterType="TMessageInfo" useGeneratedKeys="true" keyProperty="messageId">
insert into t_message_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="messageTitle != null and messageTitle != ''">message_title,</if>
<if test="messageContent != null">message_content,</if>
<if test="status != null">status,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="topping != null">topping,</if>
<if test="fujianUrl != null">fujian_url,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="messageTitle != null and messageTitle != ''">#{messageTitle},</if>
<if test="messageContent != null">#{messageContent},</if>
<if test="status != null">#{status},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="topping != null">#{topping},</if>
<if test="fujianUrl != null">#{fujianUrl},</if>
</trim>
</insert>
<update id="updateTMessageInfo" parameterType="TMessageInfo">
update t_message_info
<trim prefix="SET" suffixOverrides=",">
<if test="messageTitle != null and messageTitle != ''">message_title = #{messageTitle},</if>
<if test="messageContent != null">message_content = #{messageContent},</if>
<if test="status != null">status = #{status},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="topping != null">topping = #{topping},</if>
<if test="fujianUrl != null">fujian_url = #{fujianUrl},</if>
</trim>
where message_id = #{messageId}
</update>
<delete id="deleteTMessageInfoById" parameterType="Long">
delete from t_message_info where message_id = #{messageId}
</delete>
<delete id="deleteTMessageInfoByIds" parameterType="String">
delete from t_message_info where message_id in
<foreach item="messageId" collection="array" open="(" separator="," close=")">
#{messageId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TPatrolCheckInMapper">
<resultMap type="TPatrolCheckIn" id="TPatrolCheckInResult">
<result property="checkInId" column="check_in_id" />
<result property="deviceName" column="device_name" />
<result property="photoUrl" column="photo_url" />
<result property="patrolDescribe" column="patrol_describe" />
<result property="reportTime" column="report_time" />
<result property="reportPerson" column="report_person" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="isDel" column="is_del" />
<result property="remark" column="remark" />
<result property="personName" column="person_name" />
</resultMap>
<sql id="selectTPatrolCheckInVo">
SELECT
patrol.check_in_id,
patrol.device_name,
patrol.photo_url,
patrol.patrol_describe,
patrol.report_time,
patrol.report_person,
patrol.longitude,
patrol.latitude,
patrol.is_del,
patrol.remark,
u.nick_name AS person_name
FROM
t_patrol_check_in patrol
LEFT JOIN sys_user u ON patrol.report_person = u.user_id
</sql>
<select id="selectTPatrolCheckInList" parameterType="TPatrolCheckIn" resultMap="TPatrolCheckInResult">
<include refid="selectTPatrolCheckInVo"/>
<where>
<if test="deviceName != null and deviceName != ''"> and device_name like concat('%', #{deviceName}, '%')</if>
<if test="photoUrl != null and photoUrl != ''"> and photo_url = #{photoUrl}</if>
<if test="patrolDescribe != null and patrolDescribe != ''"> and patrol_describe = #{patrolDescribe}</if>
<if test="reportTimeBegin != null and reportTimeEnd != null"> and patrol.report_time BETWEEN #{reportTimeBegin} AND #{reportTimeEnd}</if>
<if test="reportPerson != null "> and report_person = #{reportPerson}</if>
<if test="longitude != null "> and longitude = #{longitude}</if>
<if test="latitude != null "> and latitude = #{latitude}</if>
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
</where>
</select>
<select id="selectTPatrolCheckInById" parameterType="Long" resultMap="TPatrolCheckInResult">
<include refid="selectTPatrolCheckInVo"/>
where check_in_id = #{checkInId}
</select>
<insert id="insertTPatrolCheckIn" parameterType="TPatrolCheckIn" useGeneratedKeys="true" keyProperty="checkInId">
insert into t_patrol_check_in
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deviceName != null">device_name,</if>
<if test="photoUrl != null">photo_url,</if>
<if test="patrolDescribe != null">patrol_describe,</if>
<if test="reportTime != null">report_time,</if>
<if test="reportPerson != null">report_person,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="isDel != null">is_del,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deviceName != null">#{deviceName},</if>
<if test="photoUrl != null">#{photoUrl},</if>
<if test="patrolDescribe != null">#{patrolDescribe},</if>
<if test="reportTime != null">#{reportTime},</if>
<if test="reportPerson != null">#{reportPerson},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateTPatrolCheckIn" parameterType="TPatrolCheckIn">
update t_patrol_check_in
<trim prefix="SET" suffixOverrides=",">
<if test="deviceName != null">device_name = #{deviceName},</if>
<if test="photoUrl != null">photo_url = #{photoUrl},</if>
<if test="patrolDescribe != null">patrol_describe = #{patrolDescribe},</if>
<if test="reportTime != null">report_time = #{reportTime},</if>
<if test="reportPerson != null">report_person = #{reportPerson},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where check_in_id = #{checkInId}
</update>
<delete id="deleteTPatrolCheckInById" parameterType="Long">
delete from t_patrol_check_in where check_in_id = #{checkInId}
</delete>
<delete id="deleteTPatrolCheckInByIds" parameterType="String">
delete from t_patrol_check_in where check_in_id in
<foreach item="checkInId" collection="array" open="(" separator="," close=")">
#{checkInId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TPatrolPositionMapper">
<resultMap type="TPatrolPosition" id="TPatrolPositionResult">
<result property="patrolId" column="patrol_id" />
<result property="patrolName" column="patrol_name" />
<result property="patrolType" column="patrol_type" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="position" column="position" />
<result property="patrolDetail" column="patrol_detail" />
<result property="deptId" column="dept_id" />
<result property="remarks" column="remarks" />
<result property="createTime" column="create_time" />
<result property="createBy" column="create_by" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
<result property="isDel" column="is_del" />
</resultMap>
<sql id="selectTPatrolPositionVo">
select patrol_id, patrol_name, patrol_type, longitude, latitude, position, patrol_detail, dept_id, remarks, create_time, create_by, update_time, update_by, is_del from t_patrol_position
</sql>
<select id="selectTPatrolPositionList" parameterType="TPatrolPosition" resultMap="TPatrolPositionResult">
<include refid="selectTPatrolPositionVo"/>
<where>
<if test="patrolName != null and patrolName != ''"> and patrol_name like concat('%', #{patrolName}, '%')</if>
<if test="patrolType != null "> and patrol_type = #{patrolType}</if>
<if test="longitude != null and longitude != ''"> and longitude = #{longitude}</if>
<if test="latitude != null and latitude != ''"> and latitude = #{latitude}</if>
<if test="position != null and position != ''"> and position = #{position}</if>
<if test="patrolDetail != null and patrolDetail != ''"> and patrol_detail = #{patrolDetail}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
</where>
</select>
<select id="selectTPatrolPositionById" parameterType="Long" resultMap="TPatrolPositionResult">
<include refid="selectTPatrolPositionVo"/>
where patrol_id = #{patrolId}
</select>
<insert id="insertTPatrolPosition" parameterType="TPatrolPosition" useGeneratedKeys="true" keyProperty="patrolId">
insert into t_patrol_position
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="patrolName != null">patrol_name,</if>
<if test="patrolType != null">patrol_type,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="position != null">position,</if>
<if test="patrolDetail != null">patrol_detail,</if>
<if test="deptId != null">dept_id,</if>
<if test="remarks != null">remarks,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null">create_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="isDel != null">is_del,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="patrolName != null">#{patrolName},</if>
<if test="patrolType != null">#{patrolType},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="position != null">#{position},</if>
<if test="patrolDetail != null">#{patrolDetail},</if>
<if test="deptId != null">#{deptId},</if>
<if test="remarks != null">#{remarks},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="isDel != null">#{isDel},</if>
</trim>
</insert>
<update id="updateTPatrolPosition" parameterType="TPatrolPosition">
update t_patrol_position
<trim prefix="SET" suffixOverrides=",">
<if test="patrolName != null">patrol_name = #{patrolName},</if>
<if test="patrolType != null">patrol_type = #{patrolType},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="position != null">position = #{position},</if>
<if test="patrolDetail != null">patrol_detail = #{patrolDetail},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
<if test="remarks != null">remarks = #{remarks},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="isDel != null">is_del = #{isDel},</if>
</trim>
where patrol_id = #{patrolId}
</update>
<delete id="deleteTPatrolPositionById" parameterType="Long">
delete from t_patrol_position where patrol_id = #{patrolId}
</delete>
<delete id="deleteTPatrolPositionByIds" parameterType="String">
delete from t_patrol_position where patrol_id in
<foreach item="patrolId" collection="array" open="(" separator="," close=")">
#{patrolId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TPatrolWorkInfoMapper">
<resultMap type="TPatrolWorkInfo" id="TPatrolWorkInfoResult">
<result property="workId" column="work_id" />
<result property="workName" column="work_name" />
<result property="workDescribe" column="work_describe" />
<result property="pantrolId" column="pantrol_id" />
<result property="tEmployedPeopleInfo" column="t_employed_people_info" />
<result property="inspectPointNum" column="inspect_point_num" />
<result property="inspectSuccessNum" column="inspect_success_num" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
</resultMap>
<sql id="selectTPatrolWorkInfoVo">
select work_id, work_name, work_describe, pantrol_id, t_employed_people_info, inspect_point_num, inspect_success_num, create_by, create_time, update_by, update_time, is_del, remarks from t_patrol_work_info
</sql>
<select id="selectTPatrolWorkInfoList" parameterType="TPatrolWorkInfo" resultMap="TPatrolWorkInfoResult">
<include refid="selectTPatrolWorkInfoVo"/>
<where>
<if test="workName != null and workName != ''"> and work_name like concat('%', #{workName}, '%')</if>
<if test="workDescribe != null and workDescribe != ''"> and work_describe = #{workDescribe}</if>
<if test="pantrolId != null and pantrolId != ''"> and pantrol_id = #{pantrolId}</if>
<if test="tEmployedPeopleInfo != null "> and t_employed_people_info = #{tEmployedPeopleInfo}</if>
<if test="inspectPointNum != null "> and inspect_point_num = #{inspectPointNum}</if>
<if test="inspectSuccessNum != null "> and inspect_success_num = #{inspectSuccessNum}</if>
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
</where>
</select>
<select id="selectTPatrolWorkInfoById" parameterType="Long" resultMap="TPatrolWorkInfoResult">
<include refid="selectTPatrolWorkInfoVo"/>
where work_id = #{workId}
</select>
<insert id="insertTPatrolWorkInfo" parameterType="TPatrolWorkInfo" useGeneratedKeys="true" keyProperty="workId">
insert into t_patrol_work_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="workName != null">work_name,</if>
<if test="workDescribe != null">work_describe,</if>
<if test="pantrolId != null">pantrol_id,</if>
<if test="tEmployedPeopleInfo != null">t_employed_people_info,</if>
<if test="inspectPointNum != null">inspect_point_num,</if>
<if test="inspectSuccessNum != null">inspect_success_num,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="workName != null">#{workName},</if>
<if test="workDescribe != null">#{workDescribe},</if>
<if test="pantrolId != null">#{pantrolId},</if>
<if test="tEmployedPeopleInfo != null">#{tEmployedPeopleInfo},</if>
<if test="inspectPointNum != null">#{inspectPointNum},</if>
<if test="inspectSuccessNum != null">#{inspectSuccessNum},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTPatrolWorkInfo" parameterType="TPatrolWorkInfo">
update t_patrol_work_info
<trim prefix="SET" suffixOverrides=",">
<if test="workName != null">work_name = #{workName},</if>
<if test="workDescribe != null">work_describe = #{workDescribe},</if>
<if test="pantrolId != null">pantrol_id = #{pantrolId},</if>
<if test="tEmployedPeopleInfo != null">t_employed_people_info = #{tEmployedPeopleInfo},</if>
<if test="inspectPointNum != null">inspect_point_num = #{inspectPointNum},</if>
<if test="inspectSuccessNum != null">inspect_success_num = #{inspectSuccessNum},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where work_id = #{workId}
</update>
<delete id="deleteTPatrolWorkInfoById" parameterType="Long">
delete from t_patrol_work_info where work_id = #{workId}
</delete>
<delete id="deleteTPatrolWorkInfoByIds" parameterType="String">
delete from t_patrol_work_info where work_id in
<foreach item="workId" collection="array" open="(" separator="," close=")">
#{workId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TPipeInfoMapper">
<resultMap type="TPipeInfo" id="TPipeInfoResult">
<result property="pipeId" column="pipe_id" />
<result property="pipeLength" column="pipe_length" />
<result property="pipeDiameter" column="pipe_diameter" />
<result property="pipePressure" column="pipe_pressure" />
<result property="pipeMaterial" column="pipe_material" />
<result property="pipeAddr" column="pipe_addr" />
<result property="buriedDepth" column="buried_depth" />
<result property="pipeTrend" column="pipe_trend" />
<result property="buildDate" column="build_date" />
<result property="buildUnit" column="build_unit" />
<result property="beyondEnterpriseId" column="beyond_enterprise_id" />
<result property="beyondEnterpriseName" column="beyond_enterprise_name" />
<result property="coordinates" column="coordinates" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
</resultMap>
<sql id="selectTPipeInfoVo">
select pipe_id,pipe_length, pipe_diameter, pipe_pressure, pipe_material, pipe_addr, buried_depth, pipe_trend, build_date, build_unit, beyond_enterprise_id, beyond_enterprise_name, coordinates, create_by, create_time, update_by, update_time, is_del, remarks from t_pipe_info
</sql>
<select id="selectTPipeInfoList" parameterType="TPipeInfo" resultMap="TPipeInfoResult">
<include refid="selectTPipeInfoVo"/>
<where>
is_del='0'
<if test="pipeLength != null "> and pipe_length = #{pipeLength}</if>
<if test="pipeDiameter != null "> and pipe_diameter = #{pipeDiameter}</if>
<if test="pipePressure != null "> and pipe_pressure = #{pipePressure}</if>
<if test="pipeMaterial != null and pipeMaterial != ''"> and pipe_material = #{pipeMaterial}</if>
<if test="pipeAddr != null and pipeAddr != ''"> and pipe_addr = #{pipeAddr}</if>
<if test="buriedDepth != null "> and buried_depth = #{buriedDepth}</if>
<if test="pipeTrend != null and pipeTrend != ''"> and pipe_trend = #{pipeTrend}</if>
<if test="buildDate != null and buildDate != ''"> and build_date = #{buildDate}</if>
<if test="buildUnit != null and buildUnit != ''"> and build_unit = #{buildUnit}</if>
<if test="beyondEnterpriseId != null and beyondEnterpriseId != -2"> and beyond_enterprise_id = #{beyondEnterpriseId}</if>
<if test="beyondEnterpriseName != null and beyondEnterpriseName != ''"> and beyond_enterprise_name like concat('%', #{beyondEnterpriseName}, '%')</if>
<if test="coordinates != null and coordinates != ''"> and coordinates = #{coordinates}</if>
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
</where>
group by pipe_id desc
</select>
<select id="selectTPipeInfoById" parameterType="Long" resultMap="TPipeInfoResult">
<include refid="selectTPipeInfoVo"/>
where pipe_id = #{pipeId} and is_del='0'
</select>
<insert id="insertTPipeInfo" parameterType="TPipeInfo" useGeneratedKeys="true" keyProperty="pipeId">
insert into t_pipe_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="pipeLength != null">pipe_length,</if>
<if test="pipeDiameter != null">pipe_diameter,</if>
<if test="pipePressure != null">pipe_pressure,</if>
<if test="pipeMaterial != null">pipe_material,</if>
<if test="pipeAddr != null">pipe_addr,</if>
<if test="buriedDepth != null">buried_depth,</if>
<if test="pipeTrend != null">pipe_trend,</if>
<if test="buildDate != null">build_date,</if>
<if test="buildUnit != null">build_unit,</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id,</if>
<if test="beyondEnterpriseName != null">beyond_enterprise_name,</if>
<if test="coordinates != null">coordinates,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="pipeLength != null">#{pipeLength},</if>
<if test="pipeDiameter != null">#{pipeDiameter},</if>
<if test="pipePressure != null">#{pipePressure},</if>
<if test="pipeMaterial != null">#{pipeMaterial},</if>
<if test="pipeAddr != null">#{pipeAddr},</if>
<if test="buriedDepth != null">#{buriedDepth},</if>
<if test="pipeTrend != null">#{pipeTrend},</if>
<if test="buildDate != null">#{buildDate},</if>
<if test="buildUnit != null">#{buildUnit},</if>
<if test="beyondEnterpriseId != null">#{beyondEnterpriseId},</if>
<if test="beyondEnterpriseName != null">#{beyondEnterpriseName},</if>
<if test="coordinates != null">#{coordinates},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTPipeInfo" parameterType="TPipeInfo">
update t_pipe_info
<trim prefix="SET" suffixOverrides=",">
<if test="pipeLength != null">pipe_length = #{pipeLength},</if>
<if test="pipeDiameter != null">pipe_diameter = #{pipeDiameter},</if>
<if test="pipePressure != null">pipe_pressure = #{pipePressure},</if>
<if test="pipeMaterial != null">pipe_material = #{pipeMaterial},</if>
<if test="pipeAddr != null">pipe_addr = #{pipeAddr},</if>
<if test="buriedDepth != null">buried_depth = #{buriedDepth},</if>
<if test="pipeTrend != null">pipe_trend = #{pipeTrend},</if>
<if test="buildDate != null">build_date = #{buildDate},</if>
<if test="buildUnit != null">build_unit = #{buildUnit},</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id = #{beyondEnterpriseId},</if>
<if test="beyondEnterpriseName != null">beyond_enterprise_name = #{beyondEnterpriseName},</if>
<if test="coordinates != null">coordinates = #{coordinates},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where pipe_id = #{pipeId}
</update>
<update id="deleteTPipeInfoById" parameterType="Long">
update t_pipe_info set is_del='1' where pipe_id = #{pipeId}
</update>
<update id="deleteTPipeInfoByIds" parameterType="String">
update t_pipe_info set is_del='1' where pipe_id in
<foreach item="pipeId" collection="array" open="(" separator="," close=")">
#{pipeId}
</foreach>
</update>
</mapper>
<?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.zehong.system.mapper.TPlanInfoMapper">
<resultMap type="TPlanInfo" id="TPlanInfoResult">
<result property="planId" column="plan_id" />
<result property="planTitle" column="plan_title" />
<result property="planType" column="plan_type" />
<result property="planLevel" column="plan_level" />
<result property="beyondEnterpriseId" column="beyond_enterprise_id" />
<result property="beyondEnterpriseName" column="beyond_enterprise_name" />
<result property="planContents" column="plan_contents" />
<result property="planEquipment" column="plan_equipment" />
<result property="iconUrl" column="icon_url" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
</resultMap>
<sql id="selectTPlanInfoVo">
select plan_id, plan_title, plan_type, plan_level, beyond_enterprise_id, beyond_enterprise_name, plan_contents, plan_equipment, icon_url, create_by, create_time, update_by, update_time, is_del, remarks from t_plan_info
</sql>
<select id="selectTPlanInfoList" parameterType="TPlanInfo" resultMap="TPlanInfoResult">
<include refid="selectTPlanInfoVo"/>
<where>
<if test="planTitle != null and planTitle != ''"> and plan_title = #{planTitle}</if>
<if test="planType != null and planType != ''"> and plan_type = #{planType}</if>
<if test="planLevel != null and planLevel != ''"> and plan_level = #{planLevel}</if>
<if test="beyondEnterpriseId != null and beyondEnterpriseId != ''"> and beyond_enterprise_id = #{beyondEnterpriseId}</if>
</where>
order by create_time desc
</select>
<select id="selectTPlanInfoById" parameterType="Long" resultMap="TPlanInfoResult">
<include refid="selectTPlanInfoVo"/>
where plan_id = #{planId}
</select>
<insert id="insertTPlanInfo" parameterType="TPlanInfo" useGeneratedKeys="true" keyProperty="planId">
insert into t_plan_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="planTitle != null">plan_title,</if>
<if test="planType != null">plan_type,</if>
<if test="planLevel != null">plan_level,</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id,</if>
<if test="beyondEnterpriseName != null">beyond_enterprise_name,</if>
<if test="planContents != null">plan_contents,</if>
<if test="planEquipment != null">plan_equipment,</if>
<if test="iconUrl != null">icon_url,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="planTitle != null">#{planTitle},</if>
<if test="planType != null">#{planType},</if>
<if test="planLevel != null">#{planLevel},</if>
<if test="beyondEnterpriseId != null">#{beyondEnterpriseId},</if>
<if test="beyondEnterpriseName != null">#{beyondEnterpriseName},</if>
<if test="planContents != null">#{planContents},</if>
<if test="planEquipment != null">#{planEquipment},</if>
<if test="iconUrl != null">#{iconUrl},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTPlanInfo" parameterType="TPlanInfo">
update t_plan_info
<trim prefix="SET" suffixOverrides=",">
<if test="planTitle != null">plan_title = #{planTitle},</if>
<if test="planType != null">plan_type = #{planType},</if>
<if test="planLevel != null">plan_level = #{planLevel},</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id = #{beyondEnterpriseId},</if>
<if test="beyondEnterpriseName != null">beyond_enterprise_name = #{beyondEnterpriseName},</if>
<if test="planContents != null">plan_contents = #{planContents},</if>
<if test="planEquipment != null">plan_equipment = #{planEquipment},</if>
<if test="iconUrl != null">icon_url = #{iconUrl},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where plan_id = #{planId}
</update>
<delete id="deleteTPlanInfoById" parameterType="Long">
delete from t_plan_info where plan_id = #{planId}
</delete>
<delete id="deleteTPlanInfoByIds" parameterType="String">
delete from t_plan_info where plan_id in
<foreach item="planId" collection="array" open="(" separator="," close=")">
#{planId}
</foreach>
</delete>
<select id="selectEnterprise" resultType="java.util.HashMap">
SELECT enterprise_id as enterpriseId,enterprise_name as enterpriseName FROM t_enterprise_info
WHERE is_del = 0
</select>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TProjectInfoMapper">
<resultMap type="TProjectInfo" id="TProjectInfoResult">
<result property="projectId" column="project_id" />
<result property="enterpriseCode" column="enterprise_code" />
<result property="projectYear" column="project_year" />
<result property="beyondEnterpriseId" column="beyond_enterprise_id" />
<result property="gateStationAddress" column="gate_station_address" />
<result property="gateStationInvestment" column="gate_station_investment" />
<result property="numberGateStations" column="number_gate_stations" />
<result property="pipeLength" column="pipe_length" />
<result property="pipeInvestment" column="pipe_investment" />
<result property="nearbyAddress" column="nearby_address" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
</resultMap>
<sql id="selectTProjectInfoVo">
select project_id,enterprise_code,project_year, gate_station_address, gate_station_investment, number_gate_stations, pipe_length, pipe_investment, nearby_address, create_by, create_time, update_by, update_time, is_del, remarks from t_project_info
</sql>
<select id="selectTProjectInfoList" parameterType="TProjectInfo" resultMap="TProjectInfoResult">
<include refid="selectTProjectInfoVo"/>
<where>
is_del='0'
<if test="projectYear != null "> and project_year = #{projectYear}</if>
<if test="beyondEnterpriseId != null and beyondEnterpriseId != -2 "> and beyond_enterprise_id = #{beyondEnterpriseId}</if>
<if test="gateStationAddress != null and gateStationAddress != ''"> and gate_station_address = #{gateStationAddress}</if>
<if test="gateStationInvestment != null "> and gate_station_investment = #{gateStationInvestment}</if>
<if test="numberGateStations != null "> and number_gate_stations = #{numberGateStations}</if>
<if test="pipeLength != null "> and pipe_length = #{pipeLength}</if>
<if test="pipeInvestment != null "> and pipe_investment = #{pipeInvestment}</if>
<if test="nearbyAddress != null and nearbyAddress != ''"> and nearby_address = #{nearbyAddress}</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
</where>
group by project_id desc
</select>
<select id="selectTProjectInfoById" parameterType="Long" resultMap="TProjectInfoResult">
<include refid="selectTProjectInfoVo"/>
where project_id = #{projectId} and is_del='0'
</select>
<insert id="insertTProjectInfo" parameterType="TProjectInfo" useGeneratedKeys="true" keyProperty="projectId">
insert into t_project_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="beyondEnterpriseId != null">beyond_enterprise_id,</if>
<if test="projectYear != null">project_year,</if>
<if test="enterpriseCode != null">enterprise_code,</if>
<if test="gateStationAddress != null">gate_station_address,</if>
<if test="gateStationInvestment != null">gate_station_investment,</if>
<if test="numberGateStations != null">number_gate_stations,</if>
<if test="pipeLength != null">pipe_length,</if>
<if test="pipeInvestment != null">pipe_investment,</if>
<if test="nearbyAddress != null">nearby_address,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="beyondEnterpriseId != null">#{beyondEnterpriseId},</if>
<if test="projectYear != null">#{projectYear},</if>
<if test="enterpriseCode != null">#{enterpriseCode},</if>
<if test="gateStationAddress != null">#{gateStationAddress},</if>
<if test="gateStationInvestment != null">#{gateStationInvestment},</if>
<if test="numberGateStations != null">#{numberGateStations},</if>
<if test="pipeLength != null">#{pipeLength},</if>
<if test="pipeInvestment != null">#{pipeInvestment},</if>
<if test="nearbyAddress != null">#{nearbyAddress},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTProjectInfo" parameterType="TProjectInfo">
update t_project_info
<trim prefix="SET" suffixOverrides=",">
<if test="projectYear != null">project_year = #{projectYear},</if>
<if test="enterpriseCode != null">enterprise_code = #{enterpriseCode},</if>
<if test="gateStationAddress != null">gate_station_address = #{gateStationAddress},</if>
<if test="gateStationInvestment != null">gate_station_investment = #{gateStationInvestment},</if>
<if test="numberGateStations != null">number_gate_stations = #{numberGateStations},</if>
<if test="pipeLength != null">pipe_length = #{pipeLength},</if>
<if test="pipeInvestment != null">pipe_investment = #{pipeInvestment},</if>
<if test="nearbyAddress != null">nearby_address = #{nearbyAddress},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where project_id = #{projectId}
</update>
<update id="deleteTProjectInfoById" parameterType="Long">
update t_project_info set is_del='1' where project_id = #{projectId}
</update>
<update id="deleteTProjectInfoByIds" parameterType="String">
update t_project_info set is_del='1' where project_id in
<foreach item="projectId" collection="array" open="(" separator="," close=")">
#{projectId}
</foreach>
</update>
<!--查询是否已经有重复的年份数据-->
<select id="selectSameYear" resultMap="TProjectInfoResult">
select project_id from t_project_info where project_year=#{projectYear} and beyond_enterprise_id=#{beyondEnterpriseId}
</select>
<!--重复年份删除方法-->
<update id="deleteisSameYear">
update t_project_info set is_del='1' where project_year=#{isSameYear} and beyond_enterprise_id=#{beyondEnterpriseId}
</update>
<!--查询修改文件之前的路径-->
<select id="selectNearbyAddress" resultMap="TProjectInfoResult">
select nearby_address from t_project_info where project_id=#{projectId}
</select>
<!--查询企业名称-->
<select id="selectEnterpriseName" resultType="java.lang.String">
select enterprise_name from t_enterprise_info where
enterprise_id =#{deptId} and is_del='0'
</select>
<select id="selectNum" resultType="java.util.HashMap">
SELECT IFNULL(SUM(number_gate_stations),0) AS zhanNum,
IFNULL(SUM(pipe_length),0) AS pipeNum ,
IFNULL(SUM(gate_station_investment),0) AS moneyZhan,
IFNULL(SUM(pipe_investment),0) AS moneyPipe
FROM t_project_info
</select>
</mapper>
<?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.zehong.system.mapper.TSafeEquipmentStandingBookMapper">
<resultMap type="TSafeEquipmentStandingBook" id="TSafeEquipmentStandingBookResult">
<result property="safeEquipmentId" column="safe_equipment_id" />
<result property="userName" column="user_name" />
<result property="userNo" column="user_no" />
<result property="userAddress" column="user_address" />
<result property="idCard" column="id_card" />
<result property="linkMobile" column="link_mobile" />
<result property="equipmentType" column="equipment_type" />
<result property="installTime" column="install_time" />
<result property="brandName" column="brand_name" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
<result property="userType" column="user_type" />
</resultMap>
<sql id="selectTSafeEquipmentStandingBookVo">
select safe_equipment_id, user_name, user_no, user_address, id_card, link_mobile, equipment_type, install_time, brand_name, create_by, create_time, update_by, update_time, is_del, remarks,user_type from t_safe_equipment_standing_book
</sql>
<select id="selectTSafeEquipmentStandingBookList" parameterType="TSafeEquipmentStandingBookForm" resultMap="TSafeEquipmentStandingBookResult">
<include refid="selectTSafeEquipmentStandingBookVo"/>
<where> is_del = '0'
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
<if test="linkMobile != null and linkMobile != ''"> and link_mobile like concat('%', #{linkMobile}, '%')</if>
<if test="equipmentType != null and equipmentType != ''"> and equipment_type like concat('%', #{equipmentType}, '%')</if>
<if test="installTimeStart != null "> and install_time &gt;= #{installTimeStart}</if>
<if test="installTimeEnd != null "> and install_time &lt;= #{installTimeEnd}</if>
</where>
order by create_time desc
</select>
<select id="selectTSafeEquipmentStandingBookById" parameterType="Long" resultMap="TSafeEquipmentStandingBookResult">
<include refid="selectTSafeEquipmentStandingBookVo"/>
where safe_equipment_id = #{safeEquipmentId}
</select>
<insert id="insertTSafeEquipmentStandingBook" parameterType="TSafeEquipmentStandingBook" useGeneratedKeys="true" keyProperty="safeEquipmentId">
insert into t_safe_equipment_standing_book
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userName != null">user_name,</if>
<if test="userNo != null">user_no,</if>
<if test="userAddress != null">user_address,</if>
<if test="idCard != null">id_card,</if>
<if test="linkMobile != null">link_mobile,</if>
<if test="installTime != null">install_time,</if>
<if test="equipmentType != null">equipment_type,</if>
<if test="brandName != null">brand_name,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
<if test="userType != null">user_type,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userName != null">#{userName},</if>
<if test="userNo != null">#{userNo},</if>
<if test="userAddress != null">#{userAddress},</if>
<if test="idCard != null">#{idCard},</if>
<if test="linkMobile != null">#{linkMobile},</if>
<if test="installTime != null">#{installTime},</if>
<if test="equipmentType != null">#{equipmentType},</if>
<if test="brandName != null">#{brandName},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
<if test="userType != null">#{userType},</if>
</trim>
</insert>
<update id="updateTSafeEquipmentStandingBook" parameterType="TSafeEquipmentStandingBook">
update t_safe_equipment_standing_book
<trim prefix="SET" suffixOverrides=",">
<if test="userName != null">user_name = #{userName},</if>
<if test="userNo != null">user_no = #{userNo},</if>
<if test="userAddress != null">user_address = #{userAddress},</if>
<if test="idCard != null">id_card = #{idCard},</if>
<if test="linkMobile != null">link_mobile = #{linkMobile},</if>
<if test="installTime != null">install_time = #{installTime},</if>
<if test="equipmentType != null">equipment_type = #{equipmentType},</if>
<if test="brandName != null">brand_name = #{brandName},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
<if test="userType != null">user_type = #{userType},</if>
</trim>
where safe_equipment_id = #{safeEquipmentId}
</update>
<delete id="deleteTSafeEquipmentStandingBookById" parameterType="Long">
delete from t_safe_equipment_standing_book where safe_equipment_id = #{safeEquipmentId}
</delete>
<delete id="deleteTSafeEquipmentStandingBookByIds" parameterType="String">
delete from t_safe_equipment_standing_book where safe_equipment_id in
<foreach item="safeEquipmentId" collection="array" open="(" separator="," close=")">
#{safeEquipmentId}
</foreach>
</delete>
<select id="selectCountByYears" resultType="java.util.HashMap">
SELECT d.`years`, COUNT(w.`safe_equipment_id`) AS `count`
FROM(
SELECT DATE_FORMAT((CURDATE()), '%Y') AS `years`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 1 YEAR), '%Y') AS `years`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 2 YEAR), '%Y') AS `years`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 3 YEAR), '%Y') AS `years`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 4 YEAR), '%Y') AS `years`
)d
LEFT JOIN t_safe_equipment_standing_book w
ON DATE_FORMAT(w.create_time, '%Y')=d.`years` AND w.`is_del` =0
GROUP BY years
</select>
<select id="selectCountByUserType" resultType="java.util.HashMap">
SELECT IFNULL(SUM(IF(user_type=1,1,0)),0) AS cheng,
IFNULL(SUM(IF(user_type=2,1,0)),0) AS zhen,
IFNULL(SUM(IF(user_type=3,1,0)),0) AS danwei
FROM t_safe_equipment_standing_book
WHERE is_del = 0
</select>
</mapper>
<?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.zehong.system.mapper.TSiteStationInfoMapper">
<resultMap type="TSiteStationInfo" id="TSiteStationInfoResult">
<result property="siteStationId" column="site_station_id" />
<result property="siteStationType" column="site_station_type" />
<result property="siteStationName" column="site_station_name" />
<result property="buildDate" column="build_date" />
<result property="buildUnit" column="build_unit" />
<result property="beyondEnterpriseId" column="beyond_enterprise_id" />
<result property="beyondEnterpriseName" column="beyond_enterprise_name" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="address" column="address" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
<result property="pictureAddress" column="picture_address" />
</resultMap>
<sql id="selectTSiteStationInfoVo">
select site_station_id,picture_address,(CASE site_station_type WHEN '1' THEN '加气站' WHEN '2' THEN '门站'WHEN '3' THEN '调压站' WHEN '4' THEN '储备站'WHEN '5' THEN '气化站'end ) as site_station_type,
site_station_name, build_date, build_unit, beyond_enterprise_id, beyond_enterprise_name, longitude, latitude,address,
create_by, create_time, update_by, update_time, is_del, remarks from t_site_station_info
</sql>
<select id="selectTSiteStationInfoList" parameterType="TSiteStationInfo" resultMap="TSiteStationInfoResult">
<include refid="selectTSiteStationInfoVo"/>
<where>
is_del='0'
<if test="beyondEnterpriseId != null and beyondEnterpriseId != -2">
and beyond_enterprise_id = #{beyondEnterpriseId}
</if>
<if test="siteStationName != null and siteStationName != ''"> and site_station_name like concat('%', #{siteStationName}, '%')</if>
<if test="beyondEnterpriseName != null and beyondEnterpriseName != ''"> and beyond_enterprise_name like concat('%', #{beyondEnterpriseName}, '%')</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
</where>
group by site_station_id desc
</select>
<select id="selectTSiteStationInfoById" parameterType="Long" resultMap="TSiteStationInfoResult">
select site_station_id,picture_address,site_station_type,address,
site_station_name, build_date, build_unit, beyond_enterprise_id, beyond_enterprise_name, longitude, latitude,
create_by, create_time, update_by, update_time, is_del, remarks from t_site_station_info
where site_station_id = #{siteStationId} and is_del='0'
</select>
<select id="getSiteStationAlarmList" resultType="Map">
select a2.site_station_id as siteStationId
from t_relation_device_detail_info a1
left join t_detector_info a2 on a1.iot_no = a2.detector_code
right join t_site_station_info a3 on a1.relation_device_id = a3.site_station_id
where a1.is_del = '0' and a2.is_del = '0' and a3.is_del = '0' and a2.detector_status = '2'
</select>
<insert id="insertTSiteStationInfo" parameterType="TSiteStationInfo" useGeneratedKeys="true" keyProperty="siteStationId">
insert into t_site_station_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="siteStationType != null">site_station_type,</if>
<if test="siteStationName != null">site_station_name,</if>
<if test="buildDate != null">build_date,</if>
<if test="buildUnit != null">build_unit,</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id,</if>
<if test="beyondEnterpriseName != null">beyond_enterprise_name,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
<if test="pictureAddress != null">picture_address,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="siteStationType != null">#{siteStationType},</if>
<if test="siteStationName != null">#{siteStationName},</if>
<if test="buildDate != null">#{buildDate},</if>
<if test="buildUnit != null">#{buildUnit},</if>
<if test="beyondEnterpriseId != null">#{beyondEnterpriseId},</if>
<if test="beyondEnterpriseName != null">#{beyondEnterpriseName},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
<if test="pictureAddress != null">#{pictureAddress},</if>
</trim>
</insert>
<update id="updateTSiteStationInfo" parameterType="TSiteStationInfo">
update t_site_station_info
<trim prefix="SET" suffixOverrides=",">
<if test="siteStationType != null">site_station_type = #{siteStationType},</if>
<if test="siteStationName != null">site_station_name = #{siteStationName},</if>
<if test="buildDate != null">build_date = #{buildDate},</if>
<if test="buildUnit != null">build_unit = #{buildUnit},</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id = #{beyondEnterpriseId},</if>
<if test="beyondEnterpriseName != null">beyond_enterprise_name = #{beyondEnterpriseName},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
<if test="pictureAddress != null">picture_address = #{pictureAddress},</if>
</trim>
where site_station_id = #{siteStationId}
</update>
<update id="deleteTSiteStationInfoById" parameterType="Long">
update t_site_station_info set is_del='1' where site_station_id = #{siteStationId}
</update>
<update id="deleteTSiteStationInfoByIds" parameterType="String">
update t_site_station_info set is_del='1' where site_station_id in
<foreach item="siteStationId" collection="array" open="(" separator="," close=")">
#{siteStationId}
</foreach>
</update>
</mapper>
<?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.zehong.system.mapper.TSuperviseMapper">
<resultMap type="TSupervise" id="TSuperviseResult">
<result property="id" column="id" />
<result property="title" column="title" />
<result property="content" column="content" />
<result property="resultContent" column="result_content" />
<result property="person" column="person" />
<result property="address" column="address" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="enterpriseId" column="enterprise_id" />
<result property="pictrueUrl" column="pictrue_url" />
<result property="vedioUrl" column="vedio_url" />
<result property="createTime" column="create_time" />
</resultMap>
<sql id="selectTSuperviseVo">
select id, title, content, result_content, person, address, longitude, latitude, enterprise_id, pictrue_url, vedio_url, create_time from t_supervise
</sql>
<select id="selectTSuperviseList" parameterType="TSupervise" resultMap="TSuperviseResult">
<include refid="selectTSuperviseVo"/>
<where>
<if test="title != null and title != ''"> and title like concat('%', #{title}, '%')</if>
<if test="person != null and person != ''"> and person like concat('%', #{person}, '%') </if>
<if test="enterpriseId != null "> and enterprise_id = #{enterpriseId}</if>
</where>
</select>
<select id="selectTSuperviseById" parameterType="Long" resultMap="TSuperviseResult">
<include refid="selectTSuperviseVo"/>
where id = #{id}
</select>
<insert id="insertTSupervise" parameterType="TSupervise" useGeneratedKeys="true" keyProperty="id">
insert into t_supervise
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null">title,</if>
<if test="content != null">content,</if>
<if test="resultContent != null">result_content,</if>
<if test="person != null">person,</if>
<if test="address != null">address,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="enterpriseId != null">enterprise_id,</if>
<if test="pictrueUrl != null">pictrue_url,</if>
<if test="vedioUrl != null">vedio_url,</if>
<if test="createTime != null">create_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null">#{title},</if>
<if test="content != null">#{content},</if>
<if test="resultContent != null">#{resultContent},</if>
<if test="person != null">#{person},</if>
<if test="address != null">#{address},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="enterpriseId != null">#{enterpriseId},</if>
<if test="pictrueUrl != null">#{pictrueUrl},</if>
<if test="vedioUrl != null">#{vedioUrl},</if>
<if test="createTime != null">#{createTime},</if>
</trim>
</insert>
<update id="updateTSupervise" parameterType="TSupervise">
update t_supervise
<trim prefix="SET" suffixOverrides=",">
<if test="title != null">title = #{title},</if>
<if test="content != null">content = #{content},</if>
<if test="resultContent != null">result_content = #{resultContent},</if>
<if test="person != null">person = #{person},</if>
<if test="address != null">address = #{address},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="enterpriseId != null">enterprise_id = #{enterpriseId},</if>
<if test="pictrueUrl != null">pictrue_url = #{pictrueUrl},</if>
<if test="vedioUrl != null">vedio_url = #{vedioUrl},</if>
<if test="createTime != null">create_time = #{createTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTSuperviseById" parameterType="Long">
delete from t_supervise where id = #{id}
</delete>
<delete id="deleteTSuperviseByIds" parameterType="String">
delete from t_supervise where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TSupervisorInfoMapper">
<resultMap type="TSupervisorInfo" id="TSupervisorInfoResult">
<result property="supervisorId" column="supervisor_id" />
<result property="workId" column="work_id" />
<result property="supervisorContent" column="supervisor_content" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
</resultMap>
<sql id="selectTSupervisorInfoVo">
select supervisor_id, work_id, supervisor_content, create_by, create_time, is_del, remarks from t_supervisor_info
</sql>
<select id="selectTSupervisorInfoList" parameterType="TSupervisorInfo" resultMap="TSupervisorInfoResult">
<include refid="selectTSupervisorInfoVo"/>
<where>
<if test="workId != null "> and work_id = #{workId}</if>
<if test="supervisorContent != null and supervisorContent != ''"> and supervisor_content = #{supervisorContent}</if>
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
</where>
</select>
<select id="selectTSupervisorInfoById" parameterType="Long" resultMap="TSupervisorInfoResult">
<include refid="selectTSupervisorInfoVo"/>
where supervisor_id = #{supervisorId}
</select>
<insert id="insertTSupervisorInfo" parameterType="TSupervisorInfo" useGeneratedKeys="true" keyProperty="supervisorId">
insert into t_supervisor_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="workId != null">work_id,</if>
<if test="supervisorContent != null">supervisor_content,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="workId != null">#{workId},</if>
<if test="supervisorContent != null">#{supervisorContent},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTSupervisorInfo" parameterType="TSupervisorInfo">
update t_supervisor_info
<trim prefix="SET" suffixOverrides=",">
<if test="workId != null">work_id = #{workId},</if>
<if test="supervisorContent != null">supervisor_content = #{supervisorContent},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where supervisor_id = #{supervisorId}
</update>
<delete id="deleteTSupervisorInfoById" parameterType="Long">
delete from t_supervisor_info where supervisor_id = #{supervisorId}
</delete>
<delete id="deleteTSupervisorInfoByIds" parameterType="String">
delete from t_supervisor_info where supervisor_id in
<foreach item="supervisorId" collection="array" open="(" separator="," close=")">
#{supervisorId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TTrainManageMapper">
<resultMap type="TTrainManage" id="TTrainManageResult">
<result property="trainManageId" column="train_manage_id" />
<result property="lessonName" column="lesson_name" />
<result property="trainDuration" column="train_duration" />
<result property="trainStartTime" column="train_start_time" />
<result property="trainEndTime" column="train_end_time" />
<result property="lessonContent" column="lesson_content" />
<result property="videoUrl" column="video_url" />
<result property="annexUrl" column="annex_url" />
<result property="trainStatus" column="train_status" />
<result property="publishTime" column="publish_time" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="isDel" column="is_del" />
<result property="isFinish" column="is_finish" />
</resultMap>
<sql id="selectTTrainManageVo">
select train_manage_id, lesson_name, train_duration, train_start_time, train_end_time, lesson_content, video_url, annex_url, train_status, publish_time, create_time, update_time, remark, is_del from t_train_manage
</sql>
<select id="selectTTrainManageList" parameterType="TTrainManage" resultMap="TTrainManageResult">
<include refid="selectTTrainManageVo"/>
<where>
<if test="lessonName != null and lessonName != ''"> and lesson_name like concat('%', #{lessonName}, '%')</if>
<if test="trainDuration != null "> and train_duration = #{trainDuration}</if>
<if test="trainStartTime != null "> and train_start_time = #{trainStartTime}</if>
<if test="trainEndTime != null "> and train_end_time = #{trainEndTime}</if>
<if test="lessonContent != null and lessonContent != ''"> and lesson_content = #{lessonContent}</if>
<if test="videoUrl != null and videoUrl != ''"> and video_url = #{videoUrl}</if>
<if test="annexUrl != null and annexUrl != ''"> and annex_url = #{annexUrl}</if>
<if test="trainStatus != null and trainStatus != ''"> and train_status = #{trainStatus}</if>
<if test="publishTime != null "> and publish_time = #{publishTime}</if>
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
</where>
</select>
<select id="selectTTrainManageById" parameterType="Long" resultMap="TTrainManageResult">
<include refid="selectTTrainManageVo"/>
where train_manage_id = #{trainManageId}
</select>
<insert id="insertTTrainManage" parameterType="TTrainManage" useGeneratedKeys="true" keyProperty="trainManageId">
insert into t_train_manage
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="lessonName != null">lesson_name,</if>
<if test="trainDuration != null">train_duration,</if>
<if test="trainStartTime != null">train_start_time,</if>
<if test="trainEndTime != null">train_end_time,</if>
<if test="lessonContent != null">lesson_content,</if>
<if test="videoUrl != null">video_url,</if>
<if test="annexUrl != null">annex_url,</if>
<if test="trainStatus != null">train_status,</if>
<if test="publishTime != null">publish_time,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="isDel != null">is_del,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="lessonName != null">#{lessonName},</if>
<if test="trainDuration != null">#{trainDuration},</if>
<if test="trainStartTime != null">#{trainStartTime},</if>
<if test="trainEndTime != null">#{trainEndTime},</if>
<if test="lessonContent != null">#{lessonContent},</if>
<if test="videoUrl != null">#{videoUrl},</if>
<if test="annexUrl != null">#{annexUrl},</if>
<if test="trainStatus != null">#{trainStatus},</if>
<if test="publishTime != null">#{publishTime},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="isDel != null">#{isDel},</if>
</trim>
</insert>
<update id="updateTTrainManage" parameterType="TTrainManage">
update t_train_manage
<trim prefix="SET" suffixOverrides=",">
<if test="lessonName != null">lesson_name = #{lessonName},</if>
<if test="trainDuration != null">train_duration = #{trainDuration},</if>
<if test="trainStartTime != null">train_start_time = #{trainStartTime},</if>
<if test="trainEndTime != null">train_end_time = #{trainEndTime},</if>
<if test="lessonContent != null">lesson_content = #{lessonContent},</if>
<if test="videoUrl != null">video_url = #{videoUrl},</if>
<if test="annexUrl != null">annex_url = #{annexUrl},</if>
<if test="trainStatus != null">train_status = #{trainStatus},</if>
<if test="publishTime != null">publish_time = #{publishTime},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="isDel != null">is_del = #{isDel},</if>
</trim>
where train_manage_id = #{trainManageId}
</update>
<delete id="deleteTTrainManageById" parameterType="Long">
delete from t_train_manage where train_manage_id = #{trainManageId}
</delete>
<delete id="deleteTTrainManageByIds" parameterType="String">
delete from t_train_manage where train_manage_id in
<foreach item="trainManageId" collection="array" open="(" separator="," close=")">
#{trainManageId}
</foreach>
</delete>
<select id="getTrainInfoByPersonId" parameterType="Long" resultMap="TTrainManageResult">
SELECT
manage.train_manage_id,
manage.lesson_name,
manage.train_duration,
manage.train_start_time,
manage.train_end_time,
manage.lesson_content,
manage.video_url,
manage.annex_url,
manage.train_status,
manage.publish_time,
CASE WHEN manage.train_start_time >NOW() THEN '3'
WHEN now() > manage.train_end_time THEN '2'
ELSE person.is_finish END AS is_finish
FROM
t_train_manage manage
LEFT JOIN t_train_person person ON person.train_manage_id = manage.train_manage_id
<where>
manage.train_status = '1'
AND person.train_person_id = #{trainPersonId}
</where>
</select>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TTrainPersonMapper">
<resultMap type="TTrainPerson" id="TTrainPersonResult">
<result property="id" column="id" />
<result property="trainManageId" column="train_manage_id" />
<result property="trainPersonId" column="train_person_id" />
<result property="realityTrainDuration" column="reality_train_duration" />
<result property="isFinish" column="is_finish" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="isDel" column="is_del" />
</resultMap>
<sql id="selectTTrainPersonVo">
SELECT
person.id,
person.train_manage_id,
person.train_person_id,
person.reality_train_duration,
person.is_finish,
person.create_time,
person.update_time,
person.remark,
person.is_del,
sysu.nick_name as trainPersonName
FROM
t_train_person person
LEFT JOIN sys_user sysu on sysu.user_id = person.train_person_id
</sql>
<select id="selectTTrainPersonList" parameterType="TTrainPerson" resultMap="TTrainPersonResult">
<include refid="selectTTrainPersonVo"/>
<where>
<if test="trainManageId != null "> and person.train_manage_id = #{trainManageId}</if>
<if test="trainPersonId != null "> and person.train_person_id = #{trainPersonId}</if>
<if test="realityTrainDuration != null "> and person.reality_train_duration = #{realityTrainDuration}</if>
<if test="isFinish != null and isFinish != ''"> and person.is_finish = #{isFinish}</if>
<if test="isDel != null and isDel != ''"> and person.is_del = #{isDel}</if>
</where>
</select>
<select id="selectTTrainPersonById" parameterType="Long" resultMap="TTrainPersonResult">
<include refid="selectTTrainPersonVo"/>
where person.id = #{id}
</select>
<insert id="insertTTrainPerson" parameterType="TTrainPerson" useGeneratedKeys="true" keyProperty="id">
insert into t_train_person
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="trainManageId != null">train_manage_id,</if>
<if test="trainPersonId != null">train_person_id,</if>
<if test="realityTrainDuration != null">reality_train_duration,</if>
<if test="isFinish != null">is_finish,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="isDel != null">is_del,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="trainManageId != null">#{trainManageId},</if>
<if test="trainPersonId != null">#{trainPersonId},</if>
<if test="realityTrainDuration != null">#{realityTrainDuration},</if>
<if test="isFinish != null">#{isFinish},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="isDel != null">#{isDel},</if>
</trim>
</insert>
<update id="updateTTrainPerson" parameterType="TTrainPerson">
update t_train_person
<trim prefix="SET" suffixOverrides=",">
<if test="trainManageId != null">train_manage_id = #{trainManageId},</if>
<if test="trainPersonId != null">train_person_id = #{trainPersonId},</if>
<if test="realityTrainDuration != null">reality_train_duration = #{realityTrainDuration},</if>
<if test="isFinish != null">is_finish = #{isFinish},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="isDel != null">is_del = #{isDel},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTTrainPersonById" parameterType="Long">
delete from t_train_person where id = #{id}
</delete>
<delete id="deleteTTrainPersonByIds" parameterType="String">
delete from t_train_person where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<insert id="batchInsertTTrainPerson">
INSERT INTO t_train_person(train_manage_id,train_person_id,create_time) VALUES
<foreach collection="tTrainPeople" separator="," item="item">
(${trainManageId},${item.trainPersonId},sysdate())
</foreach>
</insert>
<delete id="deleteTTrainPersonByTrainManageId" parameterType="Long">
delete from t_train_person where train_manage_id = #{trainManageId}
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TTrainStatMapper">
<resultMap id="trainStatResult" type="TrainStat">
<result property="trainManageId" column="train_manage_id"/>
<result property="lessonName" column="lesson_name" />
<result property="trainStartTime" column="train_start_time" />
<result property="trainEndTime" column="train_end_time" />
<result property="mustTestNum" column="mustTestNum" />
<result property="finishTestNum" column="finishTestNum" />
</resultMap>
<resultMap id="trainStatDetailResult" type="TrainStatDetail">
<result property="employedPeopleName" column="employed_people_name"/>
<result property="enterpriseName" column="enterprise_name"/>
<result property="realityTrainDuration" column="reality_train_duration"/>
<result property="isComplete" column="isComplete"/>
</resultMap>
<select id="trainStatData" parameterType="TrainStat" resultMap="trainStatResult">
SELECT
manage.train_manage_id,
manage.lesson_name,
manage.train_start_time,
manage.train_end_time,
(SELECT count(*) FROM t_train_person WHERE train_manage_id = manage.train_manage_id) AS mustTestNum,
(SELECT count(*) FROM t_train_person WHERE train_manage_id = manage.train_manage_id AND is_finish = '1') AS finishTestNum
FROM
t_train_manage manage
<where>
manage.is_del = '0'
AND manage.train_status = '1'
<if test="lessonName !='' and lessonName!= null">and manage.lesson_name like concat('%', #{lessonName}, '%')</if>
<if test="publishBeginTime != null and publishEndTime">and manage.publish_time BETWEEN #{publishBeginTime} AND #{publishEndTime} </if>
</where>
ORDER BY manage.publish_time DESC
</select>
<select id="trainStatDetail" parameterType="Long" resultMap="trainStatDetailResult">
SELECT
sysu.nick_name AS employed_people_name,
enterprise.enterprise_name,
SEC_TO_TIME(person.reality_train_duration) AS reality_train_duration,
(
CASE person.is_finish
WHEN '0' THEN
'未完成'
WHEN '1' THEN
'完成'
END
) AS isComplete
FROM
t_train_person person
LEFT JOIN sys_user sysu ON sysu.user_id = person.train_person_id
LEFT JOIN t_enterprise_info enterprise ON enterprise.enterprise_id = sysu.dept_id AND sysu.dept_id != '-2'
<where>
person.train_manage_id = #{trainManageId}
</where>
</select>
</mapper>
<?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.zehong.system.mapper.TTransferPostRecordMapper">
<resultMap type="TTransferPostRecord" id="TTransferPostRecordResult">
<result property="recordId" column="record_id" />
<result property="applyId" column="apply_id" />
<result property="gruopNum" column="gruop_num" />
<result property="captainId" column="captain_id" />
<result property="transferGroupNum" column="transfer_group_num" />
<result property="transferCaptainId" column="transfer_captain_id" />
<result property="transferStatus" column="transfer_status" />
<result property="suggestion" column="suggestion" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectTTransferPostRecordVo">
select record_id, apply_id, gruop_num, captain_id, transfer_group_num, transfer_captain_id, transfer_status, suggestion, create_time, update_time, remark from t_transfer_post_record
</sql>
<select id="selectTTransferPostRecordList" parameterType="TTransferPostRecord" resultMap="TTransferPostRecordResult">
<include refid="selectTTransferPostRecordVo"/>
<where>
<if test="applyId != null "> and apply_id = #{applyId}</if>
<if test="gruopNum != null and gruopNum != ''"> and gruop_num = #{gruopNum}</if>
<if test="captainId != null "> and captain_id = #{captainId}</if>
<if test="transferGroupNum != null and transferGroupNum != ''"> and transfer_group_num = #{transferGroupNum}</if>
<if test="transferCaptainId != null "> and transfer_captain_id = #{transferCaptainId}</if>
<if test="transferStatus != null and transferStatus != ''"> and transfer_status = #{transferStatus}</if>
<if test="suggestion != null and suggestion != ''"> and suggestion = #{suggestion}</if>
</where>
ORDER BY create_time DESC
</select>
<select id="xiaolist" parameterType="TTransferPostRecord" resultMap="TTransferPostRecordResult">
SELECT r.*,p.`person_name` AS personName,d1.`dict_label` AS groupName,d2.`dict_label` AS transferGroupName
FROM t_transfer_post_record r
LEFT JOIN t_line_patrol_person p ON r.`apply_id` = p.`person_id`
LEFT JOIN sys_dict_data d1 ON d1.`dict_value` = r.`gruop_num` AND d1.`dict_type`="t_line_patrol_group"
LEFT JOIN sys_dict_data d2 ON d2.`dict_value` = r.`transfer_group_num` AND d2.`dict_type`="t_line_patrol_group"
<where>
<if test="applyId != null "> and r.apply_id = #{applyId}</if>
<if test="gruopNum !='-1'">
and (r.gruop_num = #{gruopNum} or r.transfer_group_num =#{gruopNum})
</if>
<if test="captainId != null "> and r.captain_id = #{captainId}</if>
<if test="transferGroupNum != null and transferGroupNum != ''"> and r.transfer_group_num = #{transferGroupNum}</if>
<if test="transferCaptainId != null "> and r.transfer_captain_id = #{transferCaptainId}</if>
<if test="transferStatus ==0"> and r.transfer_status = #{transferStatus}</if>
<if test="transferStatus ==1"> and r.transfer_status != 0</if>
<if test="suggestion != null and suggestion != ''"> and r.suggestion = #{suggestion}</if>
</where>
order by r.create_time desc
</select>
<select id="selectTTransferPostRecordById" parameterType="Long" resultMap="TTransferPostRecordResult">
<include refid="selectTTransferPostRecordVo"/>
where record_id = #{recordId}
</select>
<insert id="insertTTransferPostRecord" parameterType="TTransferPostRecord" useGeneratedKeys="true" keyProperty="recordId">
insert into t_transfer_post_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="applyId != null">apply_id,</if>
<if test="gruopNum != null">gruop_num,</if>
<if test="captainId != null">captain_id,</if>
<if test="transferGroupNum != null">transfer_group_num,</if>
<if test="transferCaptainId != null">transfer_captain_id,</if>
<if test="transferStatus != null">transfer_status,</if>
<if test="suggestion != null">suggestion,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="applyId != null">#{applyId},</if>
<if test="gruopNum != null">#{gruopNum},</if>
<if test="captainId != null">#{captainId},</if>
<if test="transferGroupNum != null">#{transferGroupNum},</if>
<if test="transferCaptainId != null">#{transferCaptainId},</if>
<if test="transferStatus != null">#{transferStatus},</if>
<if test="suggestion != null">#{suggestion},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateTTransferPostRecord" parameterType="TTransferPostRecord">
update t_transfer_post_record
<trim prefix="SET" suffixOverrides=",">
<if test="applyId != null">apply_id = #{applyId},</if>
<if test="gruopNum != null">gruop_num = #{gruopNum},</if>
<if test="captainId != null">captain_id = #{captainId},</if>
<if test="transferGroupNum != null">transfer_group_num = #{transferGroupNum},</if>
<if test="transferCaptainId != null">transfer_captain_id = #{transferCaptainId},</if>
<if test="transferStatus != null">transfer_status = #{transferStatus},</if>
<if test="suggestion != null">suggestion = #{suggestion},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where record_id = #{recordId}
</update>
<delete id="deleteTTransferPostRecordById" parameterType="Long">
delete from t_transfer_post_record where record_id = #{recordId}
</delete>
<delete id="deleteTTransferPostRecordByIds" parameterType="String">
delete from t_transfer_post_record where record_id in
<foreach item="recordId" collection="array" open="(" separator="," close=")">
#{recordId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TTroubleStandingBookMapper">
<resultMap type="TTroubleStandingBook" id="TTroubleStandingBookResult">
<result property="troubleId" column="trouble_id" />
<result property="troubleName" column="trouble_name" />
<result property="troubleLocation" column="trouble_location" />
<result property="township" column="township" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="troubleType" column="trouble_type" />
<result property="briefProcess" column="brief_process" />
<result property="troubleReason" column="trouble_reason" />
<result property="isCasualties" column="is_casualties" />
<result property="injuryNum" column="injury_num" />
<result property="deathNum" column="death_num" />
<result property="responsibleUnit" column="responsible_unit" />
<result property="responsiblePeople" column="responsible_people" />
<result property="isDeal" column="is_deal" />
<result property="happenDate" column="happen_date" />
<result property="dealDate" column="deal_date" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
</resultMap>
<sql id="selectTTroubleStandingBookVo">
select trouble_id, trouble_name, trouble_location,township, longitude, latitude, trouble_type, brief_process, trouble_reason, is_casualties, injury_num, death_num, responsible_unit, responsible_people, is_deal,happen_date, deal_date, create_by, create_time, update_by, update_time, is_del, remarks from t_trouble_standing_book
</sql>
<select id="selectTTroubleStandingBookList" parameterType="TTroubleStandingBookForm" resultMap="TTroubleStandingBookResult">
<include refid="selectTTroubleStandingBookVo"/>
<where> is_del = '0'
<if test="troubleName != null and troubleName != ''"> and trouble_name like concat('%', #{troubleName}, '%')</if>
<if test="troubleType != null and troubleType != ''"> and trouble_type = #{troubleType}</if>
<if test="isDeal != null and isDeal != ''"> and is_deal = #{isDeal}</if>
<if test="happenDateStart != null "> and happen_date &gt;= #{happenDateStart}</if>
<if test="happenDateEnd != null "> and happen_date &lt;= #{happenDateEnd}</if>
<if test="dealDateStart != null "> and deal_date &gt;= #{dealDateStart}</if>
<if test="dealDateEnd != null "> and deal_date &lt;= #{dealDateEnd}</if>
</where>
order by create_time desc
</select>
<select id="selectTTroubleStandingBookStatistic" resultType="TTroubleStandingBookVo">
select COUNT(t.trouble_id) AS troubleTotal,
SUM(t.injury_num) AS injutyTotal,
SUM(t.death_num) AS deathTotal,
ROUND(SUM(CASE t.is_deal WHEN '1' THEN 1 ELSE 0 END)/COUNT(t.trouble_id)*100, 1) AS completionRate
from (select * from t_trouble_standing_book where is_del = '0') t
</select>
<select id="selectTTroubleStandingBookById" parameterType="Long" resultMap="TTroubleStandingBookResult">
<include refid="selectTTroubleStandingBookVo"/>
where trouble_id = #{troubleId}
</select>
<insert id="insertTTroubleStandingBook" parameterType="TTroubleStandingBook" useGeneratedKeys="true" keyProperty="troubleId">
insert into t_trouble_standing_book
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="troubleName != null">trouble_name,</if>
<if test="troubleLocation != null">trouble_location,</if>
<if test="township != null">township,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="troubleType != null">trouble_type,</if>
<if test="briefProcess != null">brief_process,</if>
<if test="troubleReason != null">trouble_reason,</if>
<if test="isCasualties != null">is_casualties,</if>
<if test="injuryNum != null">injury_num,</if>
<if test="deathNum != null">death_num,</if>
<if test="responsibleUnit != null">responsible_unit,</if>
<if test="responsiblePeople != null">responsible_people,</if>
<if test="isDeal != null">is_deal,</if>
<if test="happenDate != null">happen_date,</if>
<if test="dealDate != null">deal_date,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="troubleName != null">#{troubleName},</if>
<if test="troubleLocation != null">#{troubleLocation},</if>
<if test="township != null">#{township},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="troubleType != null">#{troubleType},</if>
<if test="briefProcess != null">#{briefProcess},</if>
<if test="troubleReason != null">#{troubleReason},</if>
<if test="isCasualties != null">#{isCasualties},</if>
<if test="injuryNum != null">#{injuryNum},</if>
<if test="deathNum != null">#{deathNum},</if>
<if test="responsibleUnit != null">#{responsibleUnit},</if>
<if test="responsiblePeople != null">#{responsiblePeople},</if>
<if test="isDeal != null">#{isDeal},</if>
<if test="happenDate != null">#{happenDate},</if>
<if test="dealDate != null">#{dealDate},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTTroubleStandingBook" parameterType="TTroubleStandingBook">
update t_trouble_standing_book
<trim prefix="SET" suffixOverrides=",">
<if test="troubleName != null">trouble_name = #{troubleName},</if>
<if test="troubleLocation != null">trouble_location = #{troubleLocation},</if>
<if test="township != null">township = #{township},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="troubleType != null">trouble_type = #{troubleType},</if>
<if test="briefProcess != null">brief_process = #{briefProcess},</if>
<if test="troubleReason != null">trouble_reason = #{troubleReason},</if>
<if test="isCasualties != null">is_casualties = #{isCasualties},</if>
<if test="injuryNum != null">injury_num = #{injuryNum},</if>
<if test="deathNum != null">death_num = #{deathNum},</if>
<if test="responsibleUnit != null">responsible_unit = #{responsibleUnit},</if>
<if test="responsiblePeople != null">responsible_people = #{responsiblePeople},</if>
<if test="isDeal != null">is_deal = #{isDeal},</if>
<if test="happenDate != null">happen_date = #{happenDate},</if>
<if test="dealDate != null">deal_date = #{dealDate},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where trouble_id = #{troubleId}
</update>
<delete id="deleteTTroubleStandingBookById" parameterType="Long">
delete from t_trouble_standing_book where trouble_id = #{troubleId}
</delete>
<delete id="deleteTTroubleStandingBookByIds" parameterType="String">
delete from t_trouble_standing_book where trouble_id in
<foreach item="troubleId" collection="array" open="(" separator="," close=")">
#{troubleId}
</foreach>
</delete>
<!--查询统计信息-->
<select id="accidentLedger" resultType="com.zehong.system.domain.Statistics">
SELECT
COUNT( * ) AS 'count',
DATE_FORMAT( create_time, '%Y-%m-%d' ) AS date
FROM
t_trouble_standing_book
WHERE
is_del='0'
and
DATE_FORMAT( create_time, '%Y-%m-%d' ) IN
<foreach collection="list" item="sevenDate" separator="," open="(" close=")">
#{sevenDate}
</foreach>
GROUP BY
DATE_FORMAT( create_time, '%Y-%m-%d' )
ORDER BY
DATE_FORMAT( create_time, '%Y-%m-%d' ) DESC;
</select>
<select id="selectTrobleCountByMonth" resultType="java.util.HashMap">
SELECT d.`month`, COUNT(w.`trouble_id`) AS `count`,
IF(SUM(w.`injury_num`+w.`death_num`)IS NULL,0,SUM(w.`injury_num`+w.`death_num`)) AS hurtNum
FROM(
SELECT DATE_FORMAT((CURDATE()), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 1 MONTH), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 2 MONTH), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 3 MONTH), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 4 MONTH), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 5 MONTH), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 6 MONTH), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 7 MONTH), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 8 MONTH), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 9 MONTH), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 10 MONTH), '%Y-%m') AS `month`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 11 MONTH), '%Y-%m') AS `month`
)d
LEFT JOIN t_trouble_standing_book w
ON DATE_FORMAT(w.create_time, '%Y-%m')=d.`month` AND w.`is_del` =0
GROUP BY MONTH
</select>
<select id="selectTrobleRanking" resultType="java.util.HashMap">
SELECT COUNT(trouble_id) AS `value` ,d.`dict_label` AS `name`
FROM sys_dict_data d
LEFT JOIN t_trouble_standing_book t1 ON t1.`township` = d.`dict_value` AND t1.`is_del` = 0
WHERE d.`dict_type` ='t_township'
GROUP BY d.`dict_value`
ORDER BY `value` DESC
LIMIT 10
</select>
<select id="selectTrobleCountByYear" resultType="java.util.HashMap">
SELECT d.`years`, COUNT(w.`trouble_id`) AS `count`
FROM(
SELECT DATE_FORMAT((CURDATE()), '%Y') AS `years`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 1 YEAR), '%Y') AS `years`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 2 YEAR), '%Y') AS `years`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 3 YEAR), '%Y') AS `years`
UNION SELECT DATE_FORMAT((CURDATE() - INTERVAL 4 YEAR), '%Y') AS `years`
)d
LEFT JOIN t_trouble_standing_book w
ON DATE_FORMAT(w.create_time, '%Y')=d.`years` AND w.`is_del` =0
GROUP BY years
</select>
<select id="selectTrobleReason" resultType="java.util.HashMap">
SELECT COUNT(trouble_id) AS `value` ,d.`dict_label` AS `name`
FROM sys_dict_data d
LEFT JOIN t_trouble_standing_book t1 ON (t1.`trouble_reason` = d.`dict_value` AND t1.`is_del` = 0)
WHERE d.`dict_type` ='t_trouble_reason'
GROUP BY d.`dict_value`
</select>
</mapper>
<?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.zehong.system.mapper.TUserLocationMapper">
<resultMap type="TUserLocation" id="TUserLocationResult">
<result property="id" column="id" />
<result property="userId" column="user_id" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="createTime" column="create_time" />
</resultMap>
<sql id="selectTUserLocationVo">
select id, user_id, longitude, latitude, create_time from t_user_location
</sql>
<select id="selectTUserLocationList" parameterType="TUserLocation" resultMap="TUserLocationResult">
<include refid="selectTUserLocationVo"/>
<where>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="longitude != null and longitude != ''"> and longitude = #{longitude}</if>
<if test="latitude != null and latitude != ''"> and latitude = #{latitude}</if>
<if test="beginTime != null and endTime == null"> and create_time > #{beginTime}</if>
<if test="beginTime != null and endTime != null"> and create_time BETWEEN #{beginTime} and #{endTime}</if>
</where>
order by create_time
</select>
<select id="selectTUserLocationListByGroup" parameterType="TUserLocation" resultMap="TUserLocationResult">
SELECT
id,
user_id,
longitude,
latitude,
max(create_time)
FROM
t_user_location
<where>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="longitude != null and longitude != ''"> and longitude = #{longitude}</if>
<if test="latitude != null and latitude != ''"> and latitude = #{latitude}</if>
<if test="beginTime != null and endTime == null"> and create_time > #{beginTime}</if>
<if test="beginTime != null and endTime != null"> and create_time BETWEEN #{beginTime} and #{endTime}</if>
</where>
GROUP BY latitude,longitude
ORDER BY create_time asc
</select>
<select id="selectTUserLocationById" parameterType="Long" resultMap="TUserLocationResult">
<include refid="selectTUserLocationVo"/>
where id = #{id}
</select>
<insert id="insertTUserLocation" parameterType="TUserLocation" useGeneratedKeys="true" keyProperty="id">
insert into t_user_location
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userId != null">user_id,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="createTime != null">create_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userId != null">#{userId},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="createTime != null">#{createTime},</if>
</trim>
</insert>
<update id="updateTUserLocation" parameterType="TUserLocation">
update t_user_location
<trim prefix="SET" suffixOverrides=",">
<if test="userId != null">user_id = #{userId},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="createTime != null">create_time = #{createTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTUserLocationById" parameterType="Long">
delete from t_user_location where id = #{id}
</delete>
<delete id="deleteTUserLocationByIds" parameterType="String">
delete from t_user_location where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TVehicleInfoMapper">
<resultMap type="TVehicleInfo" id="TVehicleInfoResult">
<result property="vehicleId" column="vehicle_id" />
<result property="carNum" column="car_num" />
<result property="brandModel" column="brand_model" />
<result property="vehicleType" column="vehicle_type" />
<result property="vehicleLoad" column="vehicle_load" />
<result property="vehicleSize" column="vehicle_size" />
<result property="vehicleLimt" column="vehicle_limt" />
<result property="vehicleInspect" column="vehicle_inspect" />
<result property="beyondEnterpriseId" column="beyond_enterprise_id" />
<result property="personLiable" column="person_liable" />
<result property="phone" column="phone" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
<result property="beyondEnterpriseName" column="enterprise_name" />
</resultMap>
<sql id="selectTVehicleInfoVo">
select vehicle_id, car_num, brand_model, vehicle_type, vehicle_load, vehicle_size, vehicle_limt, vehicle_inspect, beyond_enterprise_id, person_liable, phone, is_del, remarks from t_vehicle_info
</sql>
<select id="selectTVehicleInfoList" parameterType="TVehicleInfo" resultMap="TVehicleInfoResult">
select a.*,b.enterprise_name
from t_vehicle_info a left join t_enterprise_info b on a.beyond_enterprise_id=b.enterprise_id
<where>
<if test="carNum != null and carNum != ''"> and car_num like concat('%', #{carNum}, '%') </if>
<if test="brandModel != null and brandModel != ''"> and a.brand_model = #{brandModel}</if>
<if test="vehicleType != null and vehicleType != ''"> and a.vehicle_type = #{vehicleType}</if>
<if test="vehicleLoad != null and vehicleLoad != ''"> and a.vehicle_load = #{vehicleLoad}</if>
<if test="vehicleSize != null and vehicleSize != ''"> and a.vehicle_size = #{vehicleSize}</if>
<if test="vehicleLimt != null and vehicleLimt != ''"> and a.vehicle_limt = #{vehicleLimt}</if>
<if test="vehicleInspect != null and vehicleInspect != ''"> and a.vehicle_inspect = #{vehicleInspect}</if>
<if test="beyondEnterpriseId != null and beyondEnterpriseId != ''"> and a.beyond_enterprise_id = #{beyondEnterpriseId}</if>
<if test="personLiable != null and personLiable != ''"> and a.person_liable = #{personLiable}</if>
<if test="phone != null and phone != ''"> and a.phone = #{phone}</if>
<if test="isDel != null and isDel != ''"> and a.is_del = #{isDel}</if>
<if test="remarks != null and remarks != ''"> and a.remarks = #{remarks}</if>
</where>
</select>
<select id="selectTVehicleInfoById" parameterType="Long" resultMap="TVehicleInfoResult">
select a.*,b.enterprise_name
from t_vehicle_info a left join t_enterprise_info b on a.beyond_enterprise_id=b.enterprise_id
where vehicle_id = #{vehicleId}
</select>
<insert id="insertTVehicleInfo" parameterType="TVehicleInfo" useGeneratedKeys="true" keyProperty="vehicleId">
insert into t_vehicle_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="carNum != null">car_num,</if>
<if test="brandModel != null">brand_model,</if>
<if test="vehicleType != null">vehicle_type,</if>
<if test="vehicleLoad != null">vehicle_load,</if>
<if test="vehicleSize != null">vehicle_size,</if>
<if test="vehicleLimt != null">vehicle_limt,</if>
<if test="vehicleInspect != null">vehicle_inspect,</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id,</if>
<if test="personLiable != null">person_liable,</if>
<if test="phone != null">phone,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="carNum != null">#{carNum},</if>
<if test="brandModel != null">#{brandModel},</if>
<if test="vehicleType != null">#{vehicleType},</if>
<if test="vehicleLoad != null">#{vehicleLoad},</if>
<if test="vehicleSize != null">#{vehicleSize},</if>
<if test="vehicleLimt != null">#{vehicleLimt},</if>
<if test="vehicleInspect != null">#{vehicleInspect},</if>
<if test="beyondEnterpriseId != null">#{beyondEnterpriseId},</if>
<if test="personLiable != null">#{personLiable},</if>
<if test="phone != null">#{phone},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTVehicleInfo" parameterType="TVehicleInfo">
update t_vehicle_info
<trim prefix="SET" suffixOverrides=",">
<if test="carNum != null">car_num = #{carNum},</if>
<if test="brandModel != null">brand_model = #{brandModel},</if>
<if test="vehicleType != null">vehicle_type = #{vehicleType},</if>
<if test="vehicleLoad != null">vehicle_load = #{vehicleLoad},</if>
<if test="vehicleSize != null">vehicle_size = #{vehicleSize},</if>
<if test="vehicleLimt != null">vehicle_limt = #{vehicleLimt},</if>
<if test="vehicleInspect != null">vehicle_inspect = #{vehicleInspect},</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id = #{beyondEnterpriseId},</if>
<if test="personLiable != null">person_liable = #{personLiable},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where vehicle_id = #{vehicleId}
</update>
<delete id="deleteTVehicleInfoById" parameterType="Long">
delete from t_vehicle_info where vehicle_id = #{vehicleId}
</delete>
<delete id="deleteTVehicleInfoByIds" parameterType="String">
delete from t_vehicle_info where vehicle_id in
<foreach item="vehicleId" collection="array" open="(" separator="," close=")">
#{vehicleId}
</foreach>
</delete>
</mapper>
<?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.zehong.system.mapper.TVehicleLocationInfoMapper">
<resultMap type="TVehicleLocationInfo" id="TVehicleLocationInfoResult">
<result property="vehicleLocationId" column="vehicle_location_id" />
<result property="carNum" column="car_num" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="reportTime" column="report_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
</resultMap>
<sql id="selectTVehicleLocationInfoVo">
select vehicle_location_id, car_num, longitude, latitude, report_time, is_del, remarks from t_vehicle_location_info
</sql>
<select id="selectTVehicleLocationInfoList" parameterType="TVehicleLocationInfo" resultMap="TVehicleLocationInfoResult">
<include refid="selectTVehicleLocationInfoVo"/>
<where>
<if test="carNum != null and carNum != ''"> and car_num = #{carNum}</if>
<if test="longitude != null "> and longitude = #{longitude}</if>
<if test="latitude != null "> and latitude = #{latitude}</if>
<if test="beginTime != null and endTime!= null"> and report_time BETWEEN #{ beginTime } AND #{ endTime }</if>
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
</where>
ORDER BY report_time DESC
<if test="isLast">
limit 1
</if>
</select>
<select id="selectTVehicleLocationInfoById" parameterType="Long" resultMap="TVehicleLocationInfoResult">
<include refid="selectTVehicleLocationInfoVo"/>
where vehicle_location_id = #{vehicleLocationId}
</select>
<insert id="insertTVehicleLocationInfo" parameterType="TVehicleLocationInfo" useGeneratedKeys="true" keyProperty="vehicleLocationId">
insert into t_vehicle_location_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="carNum != null">car_num,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="reportTime != null">report_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="carNum != null">#{carNum},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="reportTime != null">#{reportTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTVehicleLocationInfo" parameterType="TVehicleLocationInfo">
update t_vehicle_location_info
<trim prefix="SET" suffixOverrides=",">
<if test="carNum != null">car_num = #{carNum},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="reportTime != null">report_time = #{reportTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where vehicle_location_id = #{vehicleLocationId}
</update>
<delete id="deleteTVehicleLocationInfoById" parameterType="Long">
delete from t_vehicle_location_info where vehicle_location_id = #{vehicleLocationId}
</delete>
<delete id="deleteTVehicleLocationInfoByIds" parameterType="String">
delete from t_vehicle_location_info where vehicle_location_id in
<foreach item="vehicleLocationId" collection="array" open="(" separator="," close=")">
#{vehicleLocationId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TVideoManagerMapper">
<resultMap type="TVideoManager" id="TVideoManagerResult">
<result property="videoManagerId" column="video_manager_id" />
<result property="videoName" column="video_name" />
<result property="resourceId" column="resource_id" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="videoAddress" column="video_address" />
<result property="type" column="type" />
<result property="beyondEnterpriseId" column="beyond_enterprise_id" />
<result property="beyondEnterpriseName" column="beyond_enterprise_name" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
</resultMap>
<sql id="selectTVideoManagerVo">
select video_manager_id, video_name, resource_id, longitude, latitude, video_address, type, beyond_enterprise_id, beyond_enterprise_name, create_by, create_time, update_by, update_time, is_del, remarks from t_video_manager
</sql>
<select id="selectTVideoManagerList" parameterType="TVideoManager" resultMap="TVideoManagerResult">
<include refid="selectTVideoManagerVo"/>
<where> is_del = '0'
<if test="videoName != null and videoName != ''"> and video_name like concat('%', #{videoName}, '%')</if>
<if test="resourceId != null and resourceId != ''"> and resource_id = #{resourceId}</if>
<if test="longitude != null "> and longitude = #{longitude}</if>
<if test="latitude != null "> and latitude = #{latitude}</if>
<if test="videoAddress != null and videoAddress != ''"> and video_address = #{videoAddress}</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="beyondEnterpriseId != null "> and beyond_enterprise_id = #{beyondEnterpriseId}</if>
<if test="beyondEnterpriseName != null and beyondEnterpriseName != ''"> and beyond_enterprise_name like concat('%', #{beyondEnterpriseName}, '%')</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
</where>
</select>
<select id="selectTVideoManagerById" parameterType="Long" resultMap="TVideoManagerResult">
<include refid="selectTVideoManagerVo"/>
where video_manager_id = #{videoManagerId}
</select>
<insert id="insertTVideoManager" parameterType="TVideoManager" useGeneratedKeys="true" keyProperty="videoManagerId">
insert into t_video_manager
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="videoName != null">video_name,</if>
<if test="resourceId != null">resource_id,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="videoAddress != null">video_address,</if>
<if test="type != null">type,</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id,</if>
<if test="beyondEnterpriseName != null">beyond_enterprise_name,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="videoName != null">#{videoName},</if>
<if test="resourceId != null">#{resourceId},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="videoAddress != null">#{videoAddress},</if>
<if test="type != null">#{type},</if>
<if test="beyondEnterpriseId != null">#{beyondEnterpriseId},</if>
<if test="beyondEnterpriseName != null">#{beyondEnterpriseName},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTVideoManager" parameterType="TVideoManager">
update t_video_manager
<trim prefix="SET" suffixOverrides=",">
<if test="videoName != null">video_name = #{videoName},</if>
<if test="resourceId != null">resource_id = #{resourceId},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="videoAddress != null">video_address = #{videoAddress},</if>
<if test="type != null">type = #{type},</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id = #{beyondEnterpriseId},</if>
<if test="beyondEnterpriseName != null">beyond_enterprise_name = #{beyondEnterpriseName},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where video_manager_id = #{videoManagerId}
</update>
<delete id="deleteTVideoManagerById" parameterType="Long">
delete from t_video_manager where video_manager_id = #{videoManagerId}
</delete>
<delete id="deleteTVideoManagerByIds" parameterType="String">
delete from t_video_manager where video_manager_id in
<foreach item="videoManagerId" collection="array" open="(" separator="," close=")">
#{videoManagerId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TWorkOrderMapper">
<resultMap type="TWorkOrder" id="TWorkOrderResult">
<result property="workId" column="work_id" />
<result property="workTitle" column="work_title" />
<result property="workType" column="work_type" />
<result property="workContent" column="work_content" />
<result property="workCreateEnterpriseName" column="work_create_enterprise_name" />
<result property="workCreateEnterpriseId" column="work_create_enterprise_id" />
<result property="workAssignEnterproseName" column="work_assign_enterprose_name" />
<result property="workAssignEnterproseId" column="work_assign_enterprose_id" />
<result property="workAssignManId" column="work_assign_man_id" />
<result property="workAssignMan" column="work_assign_man" />
<result property="workStatus" column="work_status" />
<result property="createType" column="create_type" />
<result property="inspectionDate" column="inspection_date" />
<result property="inspectionRoute" column="inspection_route" />
<result property="problemDescription" column="problem_description" />
<result property="iconUrl" column="icon_url" />
<result property="rectificationPlan" column="rectification_plan" />
<result property="rectificationResult" column="rectification_result" />
<result property="responsibleUnit" column="responsible_unit" />
<result property="responsiblePerson" column="responsible_person" />
<result property="expiryDate" column="expiry_date" />
<result property="createBy" column="create_by" />
<result property="jiedanTime" column="jiedan_time"/>
<result property="shangbaoTime" column="shangbao_time"/>
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
</resultMap>
<sql id="selectTWorkOrderVo">
SELECT
workOrder.work_id,workOrder.create_type,
workOrder.work_title,
workOrder.work_type,
workOrder.work_content,
workOrder.work_create_enterprise_name,
workOrder.work_create_enterprise_id,
info.enterprise_name AS work_assign_enterprose_name,
workOrder.work_assign_enterprose_id,
workOrder.work_assign_man_id,
usr.nick_name AS work_assign_man,
workOrder.work_status,
workOrder.inspection_date,
workOrder.inspection_route,
workOrder.problem_description,
workOrder.icon_url,
workOrder.rectification_plan,
workOrder.rectification_result,
workOrder.responsible_unit,
workOrder.responsible_person,
workOrder.expiry_date,
workOrder.create_by,
workOrder.create_time,
workOrder.update_by,
workOrder.update_time,
workOrder.is_del,
workOrder.remarks,
workOrder.shangbao_time,
workOrder.jiedan_time
FROM
t_work_order workOrder
LEFT JOIN sys_user usr ON usr.user_id = workOrder.work_assign_man_id
LEFT JOIN t_enterprise_info info ON info.enterprise_id = workOrder.work_assign_enterprose_id
</sql>
<select id="selectTWorkOrderList" parameterType="TWorkOrder" resultMap="TWorkOrderResult">
<include refid="selectTWorkOrderVo"/>
<where>
workOrder.is_del = '0'
<if test="workTitle != null and workTitle != ''"> and workOrder.work_title like concat('%', #{workTitle}, '%')</if>
<if test="workType != null and workType != ''"> and workOrder.work_type = #{workType}</if>
<if test="workContent != null and workContent != ''"> and workOrder.work_content = #{workContent}</if>
<if test="workCreateEnterpriseName != null and workCreateEnterpriseName != ''"> and workOrder.work_create_enterprise_name like concat('%', #{workCreateEnterpriseName}, '%')</if>
<if test="workCreateEnterpriseId != null and workCreateEnterpriseId != ''"> and workOrder.work_create_enterprise_id = #{workCreateEnterpriseId}</if>
<if test="workAssignEnterproseName != null and workAssignEnterproseName != ''"> and info.work_assign_enterprose_name like concat('%', #{workAssignEnterproseName}, '%')</if>
<if test="workAssignEnterproseId != null "> and workOrder.work_assign_enterprose_id = #{workAssignEnterproseId}</if>
<if test="workAssignManId != null "> and workOrder.work_assign_man_id = #{workAssignManId}</if>
<if test="workAssignMan != null and workAssignMan != ''"> and user.work_assign_man = #{workAssignMan}</if>
<if test="workStatus != null and workStatus != ''"> and workOrder.work_status = #{workStatus}</if>
<if test="inspectionDate != null "> and workOrder.inspection_date = #{inspectionDate}</if>
<if test="inspectionRoute != null and inspectionRoute != ''"> and workOrder.inspection_route = #{inspectionRoute}</if>
<if test="problemDescription != null and problemDescription != ''"> and workOrder.problem_description = #{problemDescription}</if>
<if test="iconUrl != null and iconUrl != ''"> and workOrder.icon_url = #{iconUrl}</if>
<if test="rectificationPlan != null and rectificationPlan != ''"> and workOrder.rectification_plan = #{rectificationPlan}</if>
<if test="rectificationResult != null and rectificationResult != ''"> and workOrder.rectification_result = #{rectificationResult}</if>
<if test="responsibleUnit != null and responsibleUnit != ''"> and workOrder.responsible_unit = #{responsibleUnit}</if>
<if test="responsiblePerson != null and responsiblePerson != ''"> and workOrder.responsible_person = #{responsiblePerson}</if>
<if test="expiryDate != null "> and workOrder.expiry_date = #{expiryDate}</if>
<if test="isDel != null and isDel != ''"> and workOrder.is_del = #{isDel}</if>
<if test="createType!=null"> and workOrder.create_type = #{createType}</if>
<if test="remarks != null and remarks != ''"> and workOrder.remarks = #{remarks}</if>
</where>
ORDER BY workOrder.create_time DESC
</select>
<select id="selectTuserList" parameterType="TWorkOrder" resultType="com.zehong.system.domain.TUserLocation" >
SELECT * from t_user_location
WHERE user_id = #{workAssignManId}
and create_time &gt; #{jiedanTime}
and create_time &lt;#{shangbaoTime}
</select>
<select id="selectTWorkOrderListCount" parameterType="TWorkOrder" resultType="java.util.HashMap">
SELECT
<if test="timeType==null or timeType==1">
DATE_FORMAT(create_time, "%Y-%m-%d") AS `timeType`,
</if>
<if test="timeType==2">
DATE_FORMAT(create_time, "%Y-%u") AS `timeType`,
</if>
<if test="timeType==3">
DATE_FORMAT(create_time, "%Y-%m") AS `timeType`,
</if>
<if test="timeType==4">
DATE_FORMAT(create_time, "%Y") AS `timeType`,
</if>
COUNT(*) AS countNum
FROM t_work_order workOrder
<where>
workOrder.is_del = '0'
<if test="workTitle != null and workTitle != ''"> and workOrder.work_title like concat('%', #{workTitle}, '%')</if>
<if test="workType != null and workType != ''"> and workOrder.work_type = #{workType}</if>
<if test="expiryDate != null "> and workOrder.expiry_date = #{expiryDate}</if>
<if test="createType!=null"> and workOrder.create_type = #{createType}</if>
<if test="workAssignEnterproseName != null and workAssignEnterproseName != ''"> and info.work_assign_enterprose_name like concat('%', #{workAssignEnterproseName}, '%')</if>
<if test="workAssignEnterproseId != null "> and workOrder.work_assign_enterprose_id = #{workAssignEnterproseId}</if>
<if test="workAssignManId != null "> and workOrder.work_assign_man_id = #{workAssignManId}</if>
<if test="workAssignMan != null and workAssignMan != ''"> and user.work_assign_man = #{workAssignMan}</if>
</where>
GROUP BY `timeType`;
</select>
<select id="selectTWorkOrderById" parameterType="Long" resultMap="TWorkOrderResult">
<include refid="selectTWorkOrderVo"/>
where workOrder.work_id = #{workId}
</select>
<!--<select id="countTWorkOrder" resultType="HomepageVo">
select COUNT(t.work_id) AS taskTotal,
SUM(CASE t.work_status WHEN '2' THEN 1 ELSE 0 END) AS taskFeedbackTotal
from (select * from t_work_order where is_del = '0') t
</select>-->
<select id="countTWorkOrder" resultType="HomepageVo">
SELECT
IFNULL(SUM(CASE task_type WHEN '1' THEN 1 ELSE 0 END),0) AS taskTotal,
IFNULL(SUM(CASE task_type WHEN '2' THEN 1 ELSE 0 END),0) AS taskFeedbackTotal
FROM
t_work_task
WHERE is_del = '0' and is_report = '1'
</select>
<insert id="insertTWorkOrder" parameterType="TWorkOrder" useGeneratedKeys="true" keyProperty="workId">
insert into t_work_order
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="workTitle != null">work_title,</if>
<if test="workType != null">work_type,</if>
<if test="workContent != null">work_content,</if>
<if test="workCreateEnterpriseName != null">work_create_enterprise_name,</if>
<if test="workCreateEnterpriseId != null">work_create_enterprise_id,</if>
<if test="workAssignEnterproseName != null">work_assign_enterprose_name,</if>
<if test="workAssignEnterproseId != null">work_assign_enterprose_id,</if>
<if test="workAssignManId != null">work_assign_man_id,</if>
<if test="workAssignMan != null">work_assign_man,</if>
<if test="workStatus != null">work_status,</if>
<if test="inspectionDate != null">inspection_date,</if>
<if test="inspectionRoute != null">inspection_route,</if>
<if test="problemDescription != null">problem_description,</if>
<if test="iconUrl != null">icon_url,</if>
<if test="rectificationPlan != null">rectification_plan,</if>
<if test="rectificationResult != null">rectification_result,</if>
<if test="responsibleUnit != null">responsible_unit,</if>
<if test="responsiblePerson != null">responsible_person,</if>
<if test="expiryDate != null">expiry_date,</if>
<if test="jiedanTime != null">jiedan_time,</if>
<if test="shangbaoTime != null">shangbao_time,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
<if test="createType != null">create_type,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="workTitle != null">#{workTitle},</if>
<if test="workType != null">#{workType},</if>
<if test="workContent != null">#{workContent},</if>
<if test="workCreateEnterpriseName != null">#{workCreateEnterpriseName},</if>
<if test="workCreateEnterpriseId != null">#{workCreateEnterpriseId},</if>
<if test="workAssignEnterproseName != null">#{workAssignEnterproseName},</if>
<if test="workAssignEnterproseId != null">#{workAssignEnterproseId},</if>
<if test="workAssignManId != null">#{workAssignManId},</if>
<if test="workAssignMan != null">#{workAssignMan},</if>
<if test="workStatus != null">#{workStatus},</if>
<if test="inspectionDate != null">#{inspectionDate},</if>
<if test="inspectionRoute != null">#{inspectionRoute},</if>
<if test="problemDescription != null">#{problemDescription},</if>
<if test="iconUrl != null">#{iconUrl},</if>
<if test="rectificationPlan != null">#{rectificationPlan},</if>
<if test="rectificationResult != null">#{rectificationResult},</if>
<if test="responsibleUnit != null">#{responsibleUnit},</if>
<if test="responsiblePerson != null">#{responsiblePerson},</if>
<if test="expiryDate != null">#{expiryDate},</if>
<if test="jiedanTime != null">#{jiedanTime},</if>
<if test="shangbaoTime != null">#{shangbaoTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
<if test="createType != null">#{createType},</if>
</trim>
</insert>
<insert id="insertTUserLocationList">
INSERT INTO t_user_location (user_id,longitude,latitude,create_time)
VALUES
<foreach collection="list" index="index" separator="," item="item">
(#{item.userId},
#{item.longitude},
#{item.latitude},
#{item.createTime})
</foreach>
</insert>
<update id="updateTWorkOrder" parameterType="TWorkOrder">
update t_work_order
<trim prefix="SET" suffixOverrides=",">
<if test="workTitle != null">work_title = #{workTitle},</if>
<if test="workType != null">work_type = #{workType},</if>
<if test="workContent != null">work_content = #{workContent},</if>
<if test="workCreateEnterpriseName != null">work_create_enterprise_name = #{workCreateEnterpriseName},</if>
<if test="workCreateEnterpriseId != null">work_create_enterprise_id = #{workCreateEnterpriseId},</if>
<if test="workAssignEnterproseName != null">work_assign_enterprose_name = #{workAssignEnterproseName},</if>
<if test="workAssignEnterproseId != null">work_assign_enterprose_id = #{workAssignEnterproseId},</if>
<if test="workAssignManId == null and workAssignMan == ''">work_assign_man_id = null,</if>
<if test="workAssignManId != null">work_assign_man_id = #{workAssignManId},</if>
<if test="workAssignMan != null">work_assign_man = #{workAssignMan},</if>
<if test="workStatus != null">work_status = #{workStatus},</if>
<if test="inspectionDate != null">inspection_date = #{inspectionDate},</if>
<if test="inspectionRoute != null">inspection_route = #{inspectionRoute},</if>
<if test="problemDescription != null">problem_description = #{problemDescription},</if>
<if test="iconUrl != null">icon_url = #{iconUrl},</if>
<if test="rectificationPlan != null">rectification_plan = #{rectificationPlan},</if>
<if test="rectificationResult != null">rectification_result = #{rectificationResult},</if>
<if test="responsibleUnit != null">responsible_unit = #{responsibleUnit},</if>
<if test="responsiblePerson != null">responsible_person = #{responsiblePerson},</if>
<if test="expiryDate != null">expiry_date = #{expiryDate},</if>
<if test="jiedanTime != null">jiedan_time = #{jiedanTime},</if>
<if test="shangbaoTime != null">shangbao_time = #{shangbaoTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
<if test="createType != null">create_type = #{createType},</if>
</trim>
where work_id = #{workId}
</update>
<delete id="deleteTWorkOrderById" parameterType="Long">
delete from t_work_order where work_id = #{workId}
</delete>
<delete id="deleteTWorkOrderByIds" parameterType="String">
delete from t_work_order where work_id in
<foreach item="workId" collection="array" open="(" separator="," close=")">
#{workId}
</foreach>
</delete>
<!--<select id="selectWorkOrderNum" resultType="java.util.HashMap">
SELECT IFNULL(SUM(IF(work_status=3,1,0)),0) AS typeOne,
IFNULL(SUM(IF(work_status!=3,1,0)),0) AS typeTwo,
(SELECT COUNT(employed_people_id) FROM t_employed_people_info WHERE is_del = 0
AND beyond_enterprise_id IN
<foreach item="enterpriseId" collection="enterpriseIds" open="(" separator="," close=")">
#{enterpriseId}
</foreach>
) AS peopleNum,
(SELECT CAST(SUM(pipe_length) AS DECIMAL(20,0)) FROM t_pipe_info WHERE is_del = 0
AND beyond_enterprise_id IN
<foreach item="enterpriseId" collection="enterpriseIds" open="(" separator="," close=")">
#{enterpriseId}
</foreach>
)AS allPipeLength
FROM t_work_order WHERE is_del = 0
AND work_assign_enterprose_id IN
<foreach item="enterpriseId" collection="enterpriseIds" open="(" separator="," close=")">
#{enterpriseId}
</foreach>
</select>-->
<select id="selectWorkOrderNum" resultType="java.util.HashMap">
SELECT
IFNULL(SUM(CASE task_type WHEN '1' THEN 1 ELSE 0 END),0) AS typeOne,
IFNULL(SUM(CASE task_type WHEN '2' THEN 1 ELSE 0 END),0) AS typeTwo,
(
SELECT COUNT(employed_people_id) FROM t_employed_people_info WHERE is_del = 0
AND beyond_enterprise_id IN
<foreach item="enterpriseId" collection="enterpriseIds" open="(" separator="," close=")">
#{enterpriseId}
</foreach>
) AS peopleNum,
(
SELECT CAST(SUM(pipe_length) AS DECIMAL(20,0)) FROM t_pipe_info WHERE is_del = 0
AND beyond_enterprise_id IN
<foreach item="enterpriseId" collection="enterpriseIds" open="(" separator="," close=")">
#{enterpriseId}
</foreach>
)AS allPipeLength,
(
select count(1) from t_hidden_danger_standing_book where remediation = '1' and is_del = '0'
AND beyondEnterprise_id IN
<foreach item="enterpriseId" collection="enterpriseIds" open="(" separator="," close=")">
#{enterpriseId}
</foreach>
)AS hiddenBookFinish,
(
select count(1) from t_hidden_danger_standing_book where remediation = '2' and is_del = '0'
AND beyondEnterprise_id IN
<foreach item="enterpriseId" collection="enterpriseIds" open="(" separator="," close=")">
#{enterpriseId}
</foreach>
)AS hiddenBookUnFinish
FROM t_work_task WHERE is_del = 0 and is_report = '1'
AND create_enterprise_id IN
<foreach item="enterpriseId" collection="enterpriseIds" open="(" separator="," close=")">
#{enterpriseId}
</foreach>
</select>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TWorkTaskInspectMapper">
<resultMap type="TWorkTaskInspect" id="TWorkTaskInspectResult">
<result property="inspectId" column="inspect_id" />
<result property="taskId" column="task_id" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="inspectContent" column="inspect_content" />
<result property="memberId" column="member_id" />
<result property="receiveId" column="receive_id" />
<result property="status" column="status" />
<result property="isReport" column="is_report" />
<result property="createTime" column="create_time" />
<result property="memberName" column="member_name" />
<result property="nickName" column="nick_name" />
<result property="address" column="address" />
<result property="username" column="username" />
</resultMap>
<sql id="selectTWorkTaskInspectVo">
SELECT
inspect.inspect_id,
inspect.task_id,
inspect.longitude,
inspect.latitude,
inspect.inspect_content,
inspect.member_id,
inspect.receive_id,
inspect.STATUS,
inspect.is_report,
inspect.create_time,
person.person_name as member_name,
us.nick_name,
us.address,
us.username
FROM
t_work_task_inspect inspect
LEFT JOIN t_line_patrol_person person ON person.person_id = inspect.member_id
LEFT JOIN t_detector_user us ON us.user_id = inspect.receive_id
</sql>
<select id="selectTWorkTaskInspectList" parameterType="TWorkTaskInspect" resultMap="TWorkTaskInspectResult">
<include refid="selectTWorkTaskInspectVo"/>
<where>
<if test="taskId != null "> and inspect.task_id = #{taskId}</if>
<if test="longitude != null and longitude != ''"> and inspect.longitude = #{longitude}</if>
<if test="latitude != null and latitude != ''"> and inspect.latitude = #{latitude}</if>
<if test="inspectContent != null and inspectContent != ''"> and inspect.inspect_content = #{inspectContent}</if>
<if test="memberId != null "> and inspect.member_id = #{memberId}</if>
<if test="receiveId != null "> and inspect.receive_id = #{receiveId}</if>
<if test="status != null "> and inspect.status = #{status}</if>
<if test="isReport != null "> and inspect.is_report = #{isReport}</if>
</where>
order by inspect.create_time desc
</select>
<select id="selectTWorkTaskInspectwxList" parameterType="TWorkTaskInspect" resultMap="TWorkTaskInspectResult">
SELECT
inspect.inspect_id,
inspect.task_id,
inspect.longitude,
inspect.latitude,
inspect.inspect_content,
inspect.member_id,
inspect.receive_id,
inspect.STATUS,
inspect.is_report,
inspect.create_time,
person.person_name AS member_name,
us.nick_name,
us.address,
us.username,
h.`hidden_trouble_id`
FROM
(SELECT MAX(inspect_id) AS inspect_id FROM t_work_task_inspect GROUP BY receive_id) t1
LEFT JOIN t_work_task_inspect inspect ON t1.inspect_id = inspect.inspect_id
LEFT JOIN t_line_patrol_person person ON person.person_id = inspect.member_id
LEFT JOIN t_detector_user us ON us.user_id = inspect.receive_id
LEFT JOIN t_hidden_trouble_info h ON h.`work_id` = inspect.inspect_id
<where>
<if test="taskId != null "> and inspect.task_id = #{taskId}</if>
<if test="longitude != null and longitude != ''"> and inspect.longitude = #{longitude}</if>
<if test="latitude != null and latitude != ''"> and inspect.latitude = #{latitude}</if>
<if test="inspectContent != null and inspectContent != ''"> and inspect.inspect_content = #{inspectContent}</if>
<if test="memberId != null "> and inspect.member_id = #{memberId}</if>
<if test="receiveId != null "> and inspect.receive_id = #{receiveId}</if>
<if test="status != null and status==1">
and (inspect.`status` = 1 and h.`hidden_trouble_id` is null)
</if>
<if test="status != null and status==2">
and ( h.`hidden_trouble_id` is not null and inspect.`status` = 1 )
</if>
<if test="status != null and status==3">
and inspect.`status` = 2
</if>
<if test="isReport != null "> and inspect.is_report = #{isReport}</if>
</where>
GROUP BY receive_id
ORDER BY inspect.create_time DESC
</select>
<select id="selectTWorkTaskInspectwxnotList" parameterType="TWorkTaskInspect" resultMap="com.zehong.system.mapper.TDetectorUserMapper.TDetectorUserResult">
SELECT
us.*
FROM t_detector_user us
LEFT JOIN (SELECT * FROM t_work_task_inspect WHERE task_id =#{taskId}) inspect ON us.user_id = inspect.receive_id
WHERE inspect.inspect_id is NULL
and us.beyond_enterprise_id = #{receiveId}
</select>
<select id="selectTWorkTaskInspectById" parameterType="Long" resultMap="TWorkTaskInspectResult">
<include refid="selectTWorkTaskInspectVo"/>
where inspect.inspect_id = #{inspectId}
</select>
<insert id="insertTWorkTaskInspect" parameterType="TWorkTaskInspect" useGeneratedKeys="true" keyProperty="inspectId">
insert into t_work_task_inspect
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="taskId != null">task_id,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="inspectContent != null">inspect_content,</if>
<if test="memberId != null">member_id,</if>
<if test="receiveId != null">receive_id,</if>
<if test="status != null">status,</if>
<if test="isReport != null">is_report,</if>
<if test="createTime != null">create_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="taskId != null">#{taskId},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="inspectContent != null">#{inspectContent},</if>
<if test="memberId != null">#{memberId},</if>
<if test="receiveId != null">#{receiveId},</if>
<if test="status != null">#{status},</if>
<if test="isReport != null">#{isReport},</if>
<if test="createTime != null">#{createTime},</if>
</trim>
</insert>
<update id="updateTWorkTaskInspect" parameterType="TWorkTaskInspect">
update t_work_task_inspect
<trim prefix="SET" suffixOverrides=",">
<if test="taskId != null">task_id = #{taskId},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="inspectContent != null">inspect_content = #{inspectContent},</if>
<if test="memberId != null">member_id = #{memberId},</if>
<if test="receiveId != null">receive_id = #{receiveId},</if>
<if test="status != null">status = #{status},</if>
<if test="isReport != null">is_report = #{isReport},</if>
<if test="createTime != null">create_time = #{createTime},</if>
</trim>
where inspect_id = #{inspectId}
</update>
<update id="updateOld">
UPDATE t_work_task set status = 2 WHERE end_time &lt; now()
</update>
<delete id="deleteTWorkTaskInspectById" parameterType="Long">
delete from t_work_task_inspect where inspect_id = #{inspectId}
</delete>
<delete id="deleteTWorkTaskInspectByIds" parameterType="String">
delete from t_work_task_inspect where inspect_id in
<foreach item="inspectId" collection="array" open="(" separator="," close=")">
#{inspectId}
</foreach>
</delete>
<select id="inspectStatistic" parameterType="TWorkTaskInspect" resultType="java.util.HashMap">
SELECT
DATE_FORMAT(inspect.create_time, "%Y-%m-%d") AS timeType,
COUNT(1) AS countNum
FROM
t_work_task_inspect inspect
LEFT JOIN t_work_task task ON task.task_id = inspect.task_id
<where>
inspect.create_time BETWEEN concat(YEAR(now()),'-01-01 00:00:00') AND concat(YEAR(now()),'-12-31 23:59:59')
<if test="taskTitle != null">
and task.task_title like concat('%', #{taskTitle}, '%')
</if>
<if test="createEnterpriseId != null "> and task.create_enterprise_id = #{createEnterpriseId}</if>
<if test="taskStatus != null "> and task.status = #{taskStatus}</if>
</where>
GROUP BY timeType
</select>
<select id="getHasInspectByTaskId" parameterType="java.lang.Long" resultType="java.lang.Long">
SELECT
receive_id
FROM
t_work_task_inspect
where task_id = #{taskId}
group by receive_id
</select>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TWorkTaskMapper">
<resultMap type="TWorkTask" id="TWorkTaskResult">
<result property="taskId" column="task_id" />
<result property="taskType" column="task_type" />
<result property="taskTitle" column="task_title" />
<result property="taskContent" column="task_content" />
<result property="status" column="status" />
<result property="createEnterpriseId" column="create_enterprise_id" />
<result property="createBy" column="create_by" />
<result property="groupNum" column="group_num" />
<result property="createTime" column="create_time" />
<result property="endTime" column="end_time" />
<result property="isReport" column="is_report" />
<result property="isDel" column="is_del" />
<result property="approvalSuggestion" column="approval_suggestion" />
<collection property="taskMemberList" ofType="TWorkTaskMember" column="task_id" select="getTaskMember"/>
</resultMap>
<resultMap type="TWorkTask" id="TWorkTaskResultTwo">
<result property="taskId" column="task_id" />
<result property="taskType" column="task_type" />
<result property="taskTitle" column="task_title" />
<result property="taskContent" column="task_content" />
<result property="status" column="status" />
<result property="createEnterpriseId" column="create_enterprise_id" />
<result property="createBy" column="create_by" />
<result property="groupNum" column="group_num" />
<result property="createTime" column="create_time" />
<result property="endTime" column="end_time" />
<result property="isReport" column="is_report" />
<result property="isDel" column="is_del" />
<result property="memberId" column="memberId"/>
<result property="approvalSuggestion" column="approval_suggestion" />
</resultMap>
<resultMap id="taskMember" type="TWorkTaskMember">
<id column="id" property="id"></id>
<result column="member_id" property="memberId"></result>
<result column="member_name" property="memberName"></result>
</resultMap>
<sql id="selectTWorkTaskVo">
SELECT
task_id,
task_type,
task_title,
task_content,
STATUS,
create_enterprise_id,
create_by,
create_time,
end_time,
is_report,
is_del,
group_num,
approval_suggestion
FROM
t_work_task
</sql>
<select id="getTaskMember" parameterType="java.lang.Long" resultMap="taskMember">
select
mb.id,
mb.member_id,
person.person_name as member_name
from
t_work_task_member mb
LEFT JOIN t_line_patrol_person person ON person.person_id = mb.member_id
where mb.task_id = #{taskId}
</select>
<select id="selectTWorkTaskList" parameterType="TWorkTask" resultMap="TWorkTaskResult">
<include refid="selectTWorkTaskVo"/>
<where>
<if test="taskType != null "> and task_type = #{taskType}</if>
<if test="taskTitle != null and taskTitle != ''"> and task_title like concat('%', #{taskTitle}, '%')</if>
<if test="taskContent != null and taskContent != ''"> and task_content = #{taskContent}</if>
<if test="status != null "> and status = #{status}</if>
<if test="createEnterpriseId != null "> and create_enterprise_id = #{createEnterpriseId}</if>
<if test="endTime != null "> and end_time = #{endTime}</if>
<if test="groupNum"> and group_num =#{groupNum}</if>
<if test="isReport != null "> and is_report = #{isReport}</if>
<if test="approvalSuggestion != null and approvalSuggestion != ''"> and approval_suggestion = #{approvalSuggestion}</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
</where>
order by create_time desc
</select>
<select id="selectTWorkTaskById" parameterType="Long" resultMap="TWorkTaskResult">
<include refid="selectTWorkTaskVo"/>
where task_id = #{taskId}
</select>
<insert id="insertTWorkTask" parameterType="TWorkTask" useGeneratedKeys="true" keyProperty="taskId">
insert into t_work_task
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="taskType != null">task_type,</if>
<if test="taskTitle != null">task_title,</if>
<if test="taskContent != null">task_content,</if>
<if test="status != null">status,</if>
<if test="createEnterpriseId != null">create_enterprise_id,</if>
<if test="createBy != null">create_by,</if>
<if test="groupNum != null">group_num,</if>
<if test="createTime != null">create_time,</if>
<if test="endTime != null">end_time,</if>
<if test="isReport != null">is_report,</if>
<if test="approvalSuggestion != null">approval_suggestion,</if>
<if test="isDel != null">is_del,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="taskType != null">#{taskType},</if>
<if test="taskTitle != null">#{taskTitle},</if>
<if test="taskContent != null">#{taskContent},</if>
<if test="status != null">#{status},</if>
<if test="createEnterpriseId != null">#{createEnterpriseId},</if>
<if test="createBy != null">#{createBy},</if>
<if test="groupNum !=null">#{groupNum},</if>
<if test="createTime != null">#{createTime},</if>
<if test="endTime != null">#{endTime},</if>
<if test="isReport != null">#{isReport},</if>
<if test="approvalSuggestion != null">#{approvalSuggestion},</if>
<if test="isDel != null">#{isDel},</if>
</trim>
</insert>
<update id="updateTWorkTask" parameterType="TWorkTask">
update t_work_task
<trim prefix="SET" suffixOverrides=",">
<if test="taskType != null">task_type = #{taskType},</if>
<if test="taskTitle != null">task_title = #{taskTitle},</if>
<if test="taskContent != null">task_content = #{taskContent},</if>
<if test="status != null">status = #{status},</if>
<if test="createEnterpriseId != null">create_enterprise_id = #{createEnterpriseId},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="groupNum !=null">group_num =#{groupNum},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="endTime != null">end_time = #{endTime},</if>
<if test="isReport != null">is_report = #{isReport},</if>
<if test="approvalSuggestion != null">approval_suggestion = #{approvalSuggestion},</if>
<if test="isDel != null">is_del = #{isDel},</if>
</trim>
where task_id = #{taskId}
</update>
<select id="selectTaskListxiao" parameterType="TWorkTask" resultMap="TWorkTaskResultTwo">
SELECT t.*,m.member_id as memberId,IFNULL(m.progress,0) AS progress,m.id as taskMemberId FROM t_work_task t
LEFT JOIN t_work_task_member m on m.task_id = t.task_id and m.member_id =#{memberId}
<where>
<if test="taskType != null "> and t.task_type = #{taskType}</if>
<if test="taskTitle != null and taskTitle != ''"> and t.task_title like concat('%', #{taskTitle}, '%')</if>
<if test="taskContent != null and taskContent != ''"> and t.task_content = #{taskContent}</if>
<if test="status != null ">
<if test="status !=0 and status !=3">and t.status = #{status}</if>
<if test="status ==0">and (t.status = 0 or t.status =3)</if>
</if>
<if test="createEnterpriseId != null "> and t.create_enterprise_id = #{createEnterpriseId}</if>
<if test="endTime != null "> and t.end_time = #{endTime}</if>
<if test="groupNum !=null and groupNum!='-1'"> and t.group_num =#{groupNum}</if>
<if test="isReport != null "> and t.is_report = #{isReport}</if>
<if test="isDel != null "> and t.is_del = #{isDel}</if>
<if test="memberId !=null and userType==3 and taskType==1">
and m.member_id = #{memberId}
</if>
</where>
order by progress desc, t.create_time desc
</select>
<delete id="deleteTWorkTaskById" parameterType="Long">
delete from t_work_task where task_id = #{taskId}
</delete>
<delete id="deleteTWorkTaskByIds" parameterType="String">
delete from t_work_task where task_id in
<foreach item="taskId" collection="array" open="(" separator="," close=")">
#{taskId}
</foreach>
</delete>
<select id="selectPersonName" parameterType="Long" resultType="java.util.HashMap">
SELECT GROUP_CONCAT(person_name) AS personName,
GROUP_CONCAT(person_id) AS personId
FROM t_line_patrol_person
WHERE person_id IN (SELECT member_id FROM t_work_task_member WHERE task_id = #{taskId})
</select>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TWorkTaskMemberMapper">
<resultMap type="TWorkTaskMember" id="TWorkTaskMemberResult">
<result property="id" column="id" />
<result property="taskId" column="task_id" />
<result property="memberId" column="member_id" />
<result property="progress" column="progress" />
</resultMap>
<sql id="selectTWorkTaskMemberVo">
select id, task_id, member_id,progress from t_work_task_member
</sql>
<select id="selectTWorkTaskMemberList" parameterType="TWorkTaskMember" resultMap="TWorkTaskMemberResult">
<include refid="selectTWorkTaskMemberVo"/>
<where>
<if test="taskId != null "> and task_id = #{taskId}</if>
<if test="memberId != null "> and member_id = #{memberId}</if>
<if test="progress != null "> and progress = #{progress}</if>
</where>
</select>
<select id="selectTWorkTaskMemberById" parameterType="Long" resultMap="TWorkTaskMemberResult">
<include refid="selectTWorkTaskMemberVo"/>
where id = #{id}
</select>
<insert id="insertTWorkTaskMember" parameterType="TWorkTaskMember" useGeneratedKeys="true" keyProperty="id">
insert into t_work_task_member
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="taskId != null">task_id,</if>
<if test="memberId != null">member_id,</if>
<if test="progress != null">progress,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="taskId != null">#{taskId},</if>
<if test="memberId != null">#{memberId},</if>
<if test="progress != null">#{progress},</if>
</trim>
</insert>
<update id="updateTWorkTaskMember" parameterType="TWorkTaskMember">
update t_work_task_member
<trim prefix="SET" suffixOverrides=",">
<if test="taskId != null">task_id = #{taskId},</if>
<if test="memberId != null">member_id = #{memberId},</if>
<if test="progress != null">progress = #{progress},</if>
</trim>
where id = #{id}
</update>
<update id="updateByMemberIdTaskId" parameterType="TWorkTaskMember">
update t_work_task_member SET progress = #{progress}
where task_id =#{taskId} and member_id = #{memberId}
</update>
<delete id="deleteTWorkTaskMemberById" parameterType="Long">
delete from t_work_task_member where id = #{id}
</delete>
<delete id="deleteTWorkTaskMemberByIds" parameterType="String">
delete from t_work_task_member where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<delete id="deleteWorkTaskMemberByTaskId" parameterType="Long">
delete from t_work_task_member where task_id = #{taskId}
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TWorkTaskPatrolCardMapper">
<resultMap type="TWorkTaskPatrolCard" id="TWorkTaskPatrolCardResult">
<result property="cardId" column="card_id" />
<result property="patrolId" column="patrol_id" />
<result property="memberId" column="member_id" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="picture" column="picture" />
<result property="video" column="video" />
<result property="cardContent" column="card_content" />
<result property="createTime" column="create_time" />
<result property="isReport" column="is_report" />
</resultMap>
<sql id="selectTWorkTaskPatrolCardVo">
select card_id, patrol_id, member_id, longitude, latitude, picture,video, card_content, create_time, is_report from t_work_task_patrol_card
</sql>
<select id="selectTWorkTaskPatrolCardList" parameterType="TWorkTaskPatrolCard" resultMap="TWorkTaskPatrolCardResult">
<include refid="selectTWorkTaskPatrolCardVo"/>
<where>
<if test="patrolId != null "> and patrol_id = #{patrolId}</if>
<if test="memberId != null "> and member_id = #{memberId}</if>
<if test="longitude != null and longitude != ''"> and longitude = #{longitude}</if>
<if test="latitude != null and latitude != ''"> and latitude = #{latitude}</if>
<if test="picture != null and picture != ''"> and picture = #{picture}</if>
<if test="cardContent != null and cardContent != ''"> and card_content = #{cardContent}</if>
<if test="isReport != null "> and is_report = #{isReport}</if>
</where>
order by create_time desc
</select>
<select id="selectTWorkTaskPatrolCardById" parameterType="Long" resultMap="TWorkTaskPatrolCardResult">
<include refid="selectTWorkTaskPatrolCardVo"/>
where card_id = #{cardId}
</select>
<insert id="insertTWorkTaskPatrolCard" parameterType="TWorkTaskPatrolCard" useGeneratedKeys="true" keyProperty="cardId">
insert into t_work_task_patrol_card
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="patrolId != null">patrol_id,</if>
<if test="memberId != null">member_id,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="picture != null">picture,</if>
<if test="video != null">video,</if>
<if test="cardContent != null">card_content,</if>
<if test="createTime != null">create_time,</if>
<if test="isReport != null">is_report,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="patrolId != null">#{patrolId},</if>
<if test="memberId != null">#{memberId},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="picture != null">#{picture},</if>
<if test="video != null">#{video},</if>
<if test="cardContent != null">#{cardContent},</if>
<if test="createTime != null">#{createTime},</if>
<if test="isReport != null">#{isReport},</if>
</trim>
</insert>
<update id="updateTWorkTaskPatrolCard" parameterType="TWorkTaskPatrolCard">
update t_work_task_patrol_card
<trim prefix="SET" suffixOverrides=",">
<if test="patrolId != null">patrol_id = #{patrolId},</if>
<if test="memberId != null">member_id = #{memberId},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="picture != null">picture = #{picture},</if>
<if test="video != null">video = #{video},</if>
<if test="cardContent != null">card_content = #{cardContent},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="isReport != null">is_report = #{isReport},</if>
</trim>
where card_id = #{cardId}
</update>
<delete id="deleteTWorkTaskPatrolCardById" parameterType="Long">
delete from t_work_task_patrol_card where card_id = #{cardId}
</delete>
<delete id="deleteTWorkTaskPatrolCardByIds" parameterType="String">
delete from t_work_task_patrol_card where card_id in
<foreach item="cardId" collection="array" open="(" separator="," close=")">
#{cardId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TWorkTaskPatrolMapper">
<resultMap type="TWorkTaskPatrol" id="TWorkTaskPatrolResult">
<result property="patrolId" column="patrol_id" />
<result property="taskId" column="task_id" />
<result property="memberId" column="member_id" />
<result property="createTime" column="create_time" />
<result property="endTime" column="end_time" />
<result property="memberName" column="member_name" />
</resultMap>
<sql id="selectTWorkTaskPatrolVo">
select patrol_id, task_id, member_id, create_time, end_time,(select person_name from t_line_patrol_person where person_id = member_id) as member_name from t_work_task_patrol
</sql>
<select id="selectTWorkTaskPatrolList" parameterType="TWorkTaskPatrol" resultMap="TWorkTaskPatrolResult">
<include refid="selectTWorkTaskPatrolVo"/>
<where>
<if test="taskId != null "> and task_id = #{taskId}</if>
<if test="memberId != null "> and member_id = #{memberId}</if>
<if test="endTime != null "> and end_time = #{endTime}</if>
</where>
order by create_time desc
</select>
<select id="selectTWorkTaskPatrolById" parameterType="Long" resultMap="TWorkTaskPatrolResult">
<include refid="selectTWorkTaskPatrolVo"/>
where patrol_id = #{patrolId}
</select>
<insert id="insertTWorkTaskPatrol" parameterType="TWorkTaskPatrol" useGeneratedKeys="true" keyProperty="patrolId">
insert into t_work_task_patrol
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="taskId != null">task_id,</if>
<if test="memberId != null">member_id,</if>
<if test="createTime != null">create_time,</if>
<if test="endTime != null">end_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="taskId != null">#{taskId},</if>
<if test="memberId != null">#{memberId},</if>
<if test="createTime != null">#{createTime},</if>
<if test="endTime != null">#{endTime},</if>
</trim>
</insert>
<update id="updateTWorkTaskPatrol" parameterType="TWorkTaskPatrol">
update t_work_task_patrol
<trim prefix="SET" suffixOverrides=",">
<if test="taskId != null">task_id = #{taskId},</if>
<if test="memberId != null">member_id = #{memberId},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="endTime != null">end_time = #{endTime},</if>
</trim>
where patrol_id = #{patrolId}
</update>
<update id="updatebytmid" parameterType="TWorkTaskPatrol">
update t_work_task_patrol set end_time =#{endTime}
where task_id =#{taskId} and member_id = #{memberId} and end_time is null
</update>
<delete id="deleteTWorkTaskPatrolById" parameterType="Long">
delete from t_work_task_patrol where patrol_id = #{patrolId}
</delete>
<delete id="deleteTWorkTaskPatrolByIds" parameterType="String">
delete from t_work_task_patrol where patrol_id in
<foreach item="patrolId" collection="array" open="(" separator="," close=")">
#{patrolId}
</foreach>
</delete>
<select id="patrolStatistic" parameterType="TWorkTaskPatrol" resultType="java.util.HashMap">
SELECT
DATE_FORMAT(patrol.create_time, "%Y-%m-%d") AS timeType,
COUNT(1) AS countNum
FROM
t_work_task_patrol patrol
LEFT JOIN t_work_task task ON task.task_id = patrol.task_id
<where>
patrol.create_time BETWEEN concat(YEAR(now()),'-01-01 00:00:00') AND concat(YEAR(now()),'-12-31 23:59:59')
<if test="taskTitle != null">
and task.task_title like concat('%', #{taskTitle}, '%')
</if>
<if test="createEnterpriseId != null "> and task.create_enterprise_id = #{createEnterpriseId}</if>
<if test="taskStatus != null "> and task.status = #{taskStatus}</if>
</where>
GROUP BY timeType
</select>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TYehuaqiDeviceMapper">
<resultMap type="TYehuaqiDevice" id="TYehuaqiDeviceResult">
<result property="detectorId" column="detector_id" />
<result property="enterpriseId" column="enterprise_id" />
<result property="userId" column="user_id" />
<result property="deviceId" column="device_id" />
<result property="siteStationId" column="site_station_id" />
<result property="detectorName" column="detector_name" />
<result property="detectorCode" column="detector_code" />
<result property="detectorAddr" column="detector_addr" />
<result property="detectorType" column="detector_type" />
<result property="medium" column="medium" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="iotNo" column="iot_no" />
<result property="linkman" column="linkman" />
<result property="phone" column="phone" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="alarmTime" column="alarm_time" />
<result property="detectorStatus" column="detector_status" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
</resultMap>
<sql id="selectTYehuaqiDeviceVo">
select detector_id, enterprise_id, user_id, device_id, site_station_id, detector_name, detector_code, detector_addr, detector_type, medium, longitude, latitude, iot_no, linkman, phone, create_time, update_time, alarm_time, detector_status, is_del, remarks from t_yehuaqi_device
</sql>
<select id="selectTYehuaqiDeviceList" parameterType="TYehuaqiDevice" resultMap="TYehuaqiDeviceResult">
<include refid="selectTYehuaqiDeviceVo"/>
<where>
<if test="enterpriseId != null "> and enterprise_id = #{enterpriseId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="deviceId != null "> and device_id = #{deviceId}</if>
<if test="siteStationId != null "> and site_station_id = #{siteStationId}</if>
<if test="detectorName != null and detectorName != ''"> and detector_name like concat('%', #{detectorName}, '%')</if>
<if test="detectorCode != null and detectorCode != ''"> and detector_code = #{detectorCode}</if>
<if test="detectorAddr != null and detectorAddr != ''"> and detector_addr = #{detectorAddr}</if>
<if test="detectorType != null and detectorType != ''"> and detector_type = #{detectorType}</if>
<if test="medium != null and medium != ''"> and medium = #{medium}</if>
<if test="longitude != null "> and longitude = #{longitude}</if>
<if test="latitude != null "> and latitude = #{latitude}</if>
<if test="iotNo != null and iotNo != ''"> and iot_no = #{iotNo}</if>
<if test="linkman != null and linkman != ''"> and linkman = #{linkman}</if>
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
<if test="alarmTime != null and alarmTime != ''"> and alarm_time = #{alarmTime}</if>
<if test="detectorStatus != null and detectorStatus != ''"> and detector_status = #{detectorStatus}</if>
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
</where>
</select>
<select id="selectTYehuaqiDeviceById" parameterType="Long" resultMap="TYehuaqiDeviceResult">
<include refid="selectTYehuaqiDeviceVo"/>
where detector_id = #{detectorId}
</select>
<insert id="insertTYehuaqiDevice" parameterType="TYehuaqiDevice" useGeneratedKeys="true" keyProperty="detectorId">
insert into t_yehuaqi_device
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="enterpriseId != null">enterprise_id,</if>
<if test="userId != null">user_id,</if>
<if test="deviceId != null">device_id,</if>
<if test="siteStationId != null">site_station_id,</if>
<if test="detectorName != null">detector_name,</if>
<if test="detectorCode != null">detector_code,</if>
<if test="detectorAddr != null">detector_addr,</if>
<if test="detectorType != null">detector_type,</if>
<if test="medium != null">medium,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="iotNo != null">iot_no,</if>
<if test="linkman != null">linkman,</if>
<if test="phone != null">phone,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="alarmTime != null">alarm_time,</if>
<if test="detectorStatus != null">detector_status,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="enterpriseId != null">#{enterpriseId},</if>
<if test="userId != null">#{userId},</if>
<if test="deviceId != null">#{deviceId},</if>
<if test="siteStationId != null">#{siteStationId},</if>
<if test="detectorName != null">#{detectorName},</if>
<if test="detectorCode != null">#{detectorCode},</if>
<if test="detectorAddr != null">#{detectorAddr},</if>
<if test="detectorType != null">#{detectorType},</if>
<if test="medium != null">#{medium},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="iotNo != null">#{iotNo},</if>
<if test="linkman != null">#{linkman},</if>
<if test="phone != null">#{phone},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="alarmTime != null">#{alarmTime},</if>
<if test="detectorStatus != null">#{detectorStatus},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTYehuaqiDevice" parameterType="TYehuaqiDevice">
update t_yehuaqi_device
<trim prefix="SET" suffixOverrides=",">
<if test="enterpriseId != null">enterprise_id = #{enterpriseId},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="deviceId != null">device_id = #{deviceId},</if>
<if test="siteStationId != null">site_station_id = #{siteStationId},</if>
<if test="detectorName != null">detector_name = #{detectorName},</if>
<if test="detectorCode != null">detector_code = #{detectorCode},</if>
<if test="detectorAddr != null">detector_addr = #{detectorAddr},</if>
<if test="detectorType != null">detector_type = #{detectorType},</if>
<if test="medium != null">medium = #{medium},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="iotNo != null">iot_no = #{iotNo},</if>
<if test="linkman != null">linkman = #{linkman},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="alarmTime != null">alarm_time = #{alarmTime},</if>
<if test="detectorStatus != null">detector_status = #{detectorStatus},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where detector_id = #{detectorId}
</update>
<delete id="deleteTYehuaqiDeviceById" parameterType="Long">
delete from t_yehuaqi_device where detector_id = #{detectorId}
</delete>
<delete id="deleteTYehuaqiDeviceByIds" parameterType="String">
delete from t_yehuaqi_device where detector_id in
<foreach item="detectorId" collection="array" open="(" separator="," close=")">
#{detectorId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.zehong.system.mapper.TYehuaqiUserMapper">
<resultMap type="TYehuaqiUser" id="TYehuaqiUserResult">
<result property="userId" column="user_id" />
<result property="username" column="username" />
<result property="nickName" column="nick_name" />
<result property="beyondEnterpriseId" column="beyond_enterprise_id" />
<result property="userType" column="user_type" />
<result property="address" column="address" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="linkman" column="linkman" />
<result property="phone" column="phone" />
<result property="email" column="email" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
<result property="deviceNum" column="deviceNum" />
<result property="zxnum" column="zxnum" />
</resultMap>
<sql id="selectTYehuaqiUserVo">
select user_id, username, nick_name, beyond_enterprise_id, user_type, address, longitude, latitude, linkman, phone, email, create_time, update_time, is_del, remarks from t_yehuaqi_user
</sql>
<select id="selectTYehuaqiUserList" parameterType="TYehuaqiUser" resultMap="TYehuaqiUserResult">
<include refid="selectTYehuaqiUserVo"/>
<where>
<if test="username != null and username != ''"> and username like concat('%', #{username}, '%')</if>
<if test="nickName != null and nickName != ''"> and nick_name like concat('%', #{nickName}, '%')</if>
<if test="phone != null and phone != ''"> and phone like concat('%', #{phone}, '%')</if>
</where>
</select>
<select id="selectTYehuaqiUserListTwo" parameterType="TYehuaqiUser" resultMap="TYehuaqiUserResult">
SELECT t2.zs as deviceNum,t2.zx as zxnum,t1.* FROM t_yehuaqi_user t1
LEFT JOIN (SELECT MAX(user_id)user_id,COUNT(user_id)zs,COUNT(detector_status)zx
FROM t_yehuaqi_device GROUP BY user_id) t2 ON t1.user_id=t2.user_id
<where>
<if test="userId != null and userId != ''"> and t1.user_id = #{userId}</if>
</where>
</select>
<select id="selectTYehuaqiUserById" parameterType="Long" resultMap="TYehuaqiUserResult">
<include refid="selectTYehuaqiUserVo"/>
where user_id = #{userId}
</select>
<insert id="insertTYehuaqiUser" parameterType="TYehuaqiUser" useGeneratedKeys="true" keyProperty="userId">
insert into t_yehuaqi_user
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="username != null">username,</if>
<if test="nickName != null">nick_name,</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id,</if>
<if test="userType != null">user_type,</if>
<if test="address != null">address,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="linkman != null">linkman,</if>
<if test="phone != null">phone,</if>
<if test="email != null">email,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="username != null">#{username},</if>
<if test="nickName != null">#{nickName},</if>
<if test="beyondEnterpriseId != null">#{beyondEnterpriseId},</if>
<if test="userType != null">#{userType},</if>
<if test="address != null">#{address},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="linkman != null">#{linkman},</if>
<if test="phone != null">#{phone},</if>
<if test="email != null">#{email},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTYehuaqiUser" parameterType="TYehuaqiUser">
update t_yehuaqi_user
<trim prefix="SET" suffixOverrides=",">
<if test="username != null">username = #{username},</if>
<if test="nickName != null">nick_name = #{nickName},</if>
<if test="beyondEnterpriseId != null">beyond_enterprise_id = #{beyondEnterpriseId},</if>
<if test="userType != null">user_type = #{userType},</if>
<if test="address != null">address = #{address},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="linkman != null">linkman = #{linkman},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="email != null">email = #{email},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where user_id = #{userId}
</update>
<delete id="deleteTYehuaqiUserById" parameterType="Long">
delete from t_yehuaqi_user where user_id = #{userId}
</delete>
<delete id="deleteTYehuaqiUserByIds" parameterType="String">
delete from t_yehuaqi_user where user_id in
<foreach item="userId" collection="array" open="(" separator="," close=")">
#{userId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
#Generated by Maven
#Wed Apr 10 15:45:21 CST 2024
version=3.5.0
groupId=com.zehong
artifactId=zh-hengshuianping-system
com\zehong\system\service\impl\SysDictTypeServiceImpl.class
com\zehong\system\service\impl\TVehicleInfoServiceImpl.class
com\zehong\system\domain\SubordinateEquipmentList.class
com\zehong\system\mapper\TVehicleLocationInfoMapper.class
com\zehong\system\mapper\TSupervisorInfoMapper.class
com\zehong\system\service\ITHiddenDangerStandingBookService.class
com\zehong\system\domain\form\TDetectorReportDataForm.class
com\zehong\system\controller\WebSocketController.class
com\zehong\system\domain\Devicealarm.class
com\zehong\system\mapper\TUserLocationMapper.class
com\zehong\system\service\ISysNoticeService.class
com\zehong\system\domain\THiddenDangerStandingBook.class
com\zehong\system\service\impl\TSafeEquipmentStandingBookServiceImpl.class
com\zehong\system\domain\TWorkTaskMember.class
com\zehong\system\service\ISysConfigService.class
com\zehong\system\domain\TrainStat.class
com\zehong\system\service\ITTransferPostRecordService.class
com\zehong\system\service\ISysSettingService.class
com\zehong\system\domain\DeviceData.class
com\zehong\system\domain\TPatrolPosition.class
com\zehong\system\service\ISysDeptService.class
com\zehong\system\service\impl\SysDictDataServiceImpl.class
com\zehong\system\service\ISysRoleService.class
com\zehong\system\mapper\SysSettingMapper.class
com\zehong\system\mapper\TWorkOrderMapper.class
com\zehong\system\service\ITVideoManagerService.class
com\zehong\system\domain\vo\TYehuaqiUserVO.class
com\zehong\system\domain\Gascylinder.class
com\zehong\system\service\ITYehuaqiUserService.class
com\zehong\system\mapper\SysRoleMenuMapper.class
com\zehong\system\service\impl\THiddenDangerStandingBookServiceImpl.class
com\zehong\system\domain\TPipeInfo.class
com\zehong\system\domain\TTrainPerson.class
com\zehong\system\mapper\TWorkTaskInspectMapper.class
com\zehong\system\domain\WebSocketBean.class
com\zehong\system\mapper\TDetectorInfoMapper.class
com\zehong\system\domain\TTroubleStandingBook.class
com\zehong\system\service\impl\TWorkTaskMemberServiceImpl.class
com\zehong\system\service\ITDeviceUserService.class
com\zehong\system\service\ITPatrolWorkInfoService.class
com\zehong\system\mapper\TMessageInfoMapper.class
com\zehong\system\mapper\TWorkTaskPatrolCardMapper.class
com\zehong\system\mapper\SysPostMapper.class
com\zehong\system\service\impl\TEventInfoServiceImpl.class
com\zehong\system\domain\PipeDate.class
com\zehong\system\mapper\TVehicleInfoMapper.class
com\zehong\system\domain\vo\TDetectorUserVO.class
com\zehong\system\domain\form\TSafeEquipmentStandingBookForm.class
com\zehong\system\domain\vo\TEnterpriseInfoVO.class
com\zehong\system\mapper\TWorkTaskPatrolMapper.class
com\zehong\system\mapper\TVideoManagerMapper.class
com\zehong\system\mapper\SysNoticeMapper.class
com\zehong\system\domain\TTransferPostRecord.class
com\zehong\system\service\ITComplainDealService.class
com\zehong\system\service\ITWorkTaskInspectService.class
com\zehong\system\domain\TPatrolWorkInfo.class
com\zehong\system\domain\TWorkTaskInspect.class
com\zehong\system\domain\SysConfig.class
com\zehong\system\service\impl\THiddenTroubleInfoServiceImpl.class
com\zehong\system\service\impl\TPatrolPositionServiceImpl.class
com\zehong\system\service\ITWorkTaskMemberService.class
com\zehong\system\domain\TSafeEquipmentStandingBook.class
com\zehong\system\service\ITSuperviseService.class
com\zehong\system\service\impl\ITTrainStatServiceImpl.class
com\zehong\system\domain\SysLogininfor.class
com\zehong\system\service\impl\TPipeInfoServiceImpl.class
com\zehong\system\domain\TenterpriseInfoDataList.class
com\zehong\system\service\ITDetectorReportDataService.class
com\zehong\system\domain\vo\TDetectorAlarmInfoVO.class
com\zehong\system\mapper\TTroubleStandingBookMapper.class
com\zehong\system\domain\form\THiddenDangerStandingBookForm.class
com\zehong\system\service\ITEventInfoService.class
com\zehong\system\domain\Encryption.class
com\zehong\system\service\ITEmployedPeopleInfoService.class
com\zehong\system\service\ITSafeEquipmentStandingBookService.class
com\zehong\system\service\ISysLogininforService.class
com\zehong\system\service\impl\SysLogininforServiceImpl.class
com\zehong\system\service\ITUserLocationService.class
com\zehong\system\mapper\TTrainStatMapper.class
com\zehong\system\domain\DeviceList.class
com\zehong\system\domain\TWorkTask.class
com\zehong\system\domain\vo\Passmodel.class
com\zehong\system\domain\TWorkTaskPatrolCard.class
com\zehong\system\domain\http\WorkerCertDirectDTO.class
com\zehong\system\domain\TEventInfo.class
com\zehong\system\mapper\TPipeInfoMapper.class
com\zehong\system\domain\SysRoleDept.class
com\zehong\system\service\impl\TYehuaqiUserServiceImpl.class
com\zehong\system\controller\TPlanInfoController.class
com\zehong\system\service\impl\TWorkTaskServiceImpl.class
com\zehong\system\mapper\TPlanInfoMapper.class
com\zehong\system\mapper\DecryptMapper.class
com\zehong\system\service\ITDetectorInfoService.class
com\zehong\system\service\impl\TComplainDealServiceImpl.class
com\zehong\system\domain\WorkerDirectdto.class
com\zehong\system\service\WebSocketServer.class
com\zehong\system\domain\TYehuaqiUser.class
com\zehong\system\domain\TMessageInfo.class
com\zehong\system\service\impl\TUserLocationServiceImpl.class
com\zehong\system\mapper\TEmergencyDeviceMapper.class
com\zehong\system\service\ITWorkOrderService.class
com\zehong\system\mapper\THiddenTroubleInfoMapper.class
com\zehong\system\service\impl\SysUserServiceImpl.class
com\zehong\system\service\ITPatrolCheckInService.class
com\zehong\system\service\ITDetectorUserService.class
com\zehong\system\domain\SysUserPost.class
com\zehong\system\service\impl\SysNoticeServiceImpl.class
com\zehong\system\service\ITYehuaqiDeviceService.class
com\zehong\system\mapper\TWorkTaskMapper.class
com\zehong\system\controller\TEventInfoController.class
com\zehong\system\domain\vo\THiddenDangerStandingBookVo.class
com\zehong\system\domain\form\TTroubleStandingBookForm.class
com\zehong\system\mapper\TComplainDealMapper.class
com\zehong\system\domain\DeviceDataList.class
com\zehong\system\mapper\SysDictTypeMapper.class
com\zehong\system\mapper\TSuperviseMapper.class
com\zehong\system\service\ITMessageDetailInfoService.class
com\zehong\system\mapper\TSiteStationInfoMapper.class
com\zehong\system\domain\TSiteStationInfo.class
com\zehong\system\domain\TSiteStationInfoDataList.class
com\zehong\system\domain\TWorkTaskPatrol.class
com\zehong\system\service\impl\TTrainPersonServiceImpl.class
com\zehong\system\service\ITDeviceInfoService.class
com\zehong\system\service\impl\SysMenuServiceImpl.class
com\zehong\system\service\ITPlanInfoService.class
com\zehong\system\mapper\PipeInterfaceMapper.class
com\zehong\system\service\ITLinePatrolPersonService.class
com\zehong\system\mapper\SysOperLogMapper.class
com\zehong\system\service\ITMessageInfoService.class
com\zehong\system\service\impl\TWorkTaskInspectServiceImpl.class
com\zehong\system\mapper\TPatrolWorkInfoMapper.class
com\zehong\system\service\ISysOperLogService.class
com\zehong\system\domain\TEventReceive.class
com\zehong\system\service\ITTrainStatService.class
com\zehong\system\service\ITEnterpriseInfoService.class
com\zehong\system\service\ISysUserOnlineService.class
com\zehong\system\service\impl\TWorkTaskPatrolServiceImpl.class
com\zehong\system\service\ISysPostService.class
com\zehong\system\domain\TdetectorUserData.class
com\zehong\system\domain\TEventHandle.class
com\zehong\system\mapper\SysDictDataMapper.class
com\zehong\system\domain\TLinePatrolPerson.class
com\zehong\system\domain\TTrainManage.class
com\zehong\system\service\impl\WebSocketServiceImpl.class
com\zehong\system\domain\InspectionWorkPlan.class
com\zehong\system\service\impl\TLinePatrolPersonServiceImpl.class
com\zehong\system\controller\TEventReceiveController.class
com\zehong\system\service\impl\TEventReceiveServiceImpl.class
com\zehong\system\service\impl\TEmployedPeopleInfoServiceImpl.class
com\zehong\system\domain\TDetectorUserCount.class
com\zehong\system\service\ITTroubleStandingBookService.class
com\zehong\system\domain\TvideoManagerData.class
com\zehong\system\domain\vo\RouterVo.class
com\zehong\system\mapper\TDeviceReportDataMapper.class
com\zehong\system\service\ITSupervisorInfoService.class
com\zehong\system\mapper\SysUserRoleMapper.class
com\zehong\system\mapper\TEnterpriseInfoMapper.class
com\zehong\system\domain\TAssociatedEquipment.class
com\zehong\system\service\impl\SysRoleServiceImpl.class
com\zehong\system\service\impl\TEmergencyDeviceServiceImpl.class
com\zehong\system\domain\TProjectInfo.class
com\zehong\system\domain\TDetectorReportData.class
com\zehong\system\service\impl\TSiteStationInfoServiceImpl.class
com\zehong\system\mapper\TEventHandleMapper.class
com\zehong\system\service\impl\PipeInterfaceServiceImpl.class
com\zehong\system\service\ISysDictTypeService.class
com\zehong\system\service\impl\TWorkTaskPatrolCardServiceImpl.class
com\zehong\system\domain\TDetectorInfo.class
com\zehong\system\domain\SysUserRole.class
com\zehong\system\service\ISysDictDataService.class
com\zehong\system\mapper\TTransferPostRecordMapper.class
com\zehong\system\service\impl\TPlanInfoServiceImpl.class
com\zehong\system\domain\TMessageDetailInfo.class
com\zehong\system\service\impl\SysPostServiceImpl.class
com\zehong\system\domain\http\Save.class
com\zehong\system\domain\Statistics.class
com\zehong\system\domain\SysSetting.class
com\zehong\system\service\ITWorkTaskPatrolCardService.class
com\zehong\system\controller\TEventHandleController.class
com\zehong\system\mapper\TSafeEquipmentStandingBookMapper.class
com\zehong\system\service\impl\TProjectInfoServiceImpl.class
com\zehong\system\domain\TDeviceInfo.class
com\zehong\system\mapper\SysRoleMapper.class
com\zehong\system\service\ITEventReceiveService.class
com\zehong\system\domain\TYehuaqiDevice.class
com\zehong\system\domain\TSiteStationInfoData.class
com\zehong\system\domain\TDetectorUser.class
com\zehong\system\mapper\THiddenDangerStandingBookMapper.class
com\zehong\system\mapper\TYehuaqiUserMapper.class
com\zehong\system\controller\TEmergencyDeviceController.class
com\zehong\system\service\impl\DecryptServiceImpl.class
com\zehong\system\service\ISysUserService.class
com\zehong\system\mapper\TMessageDetailInfoMapper.class
com\zehong\system\mapper\TDeviceInfoMapper.class
com\zehong\system\service\ITHiddenTroubleInfoService.class
com\zehong\system\domain\TDetailInfoList.class
com\zehong\system\service\ITVehicleInfoService.class
com\zehong\system\domain\Hiddendanger.class
com\zehong\system\service\impl\TEventHandleServiceImpl.class
com\zehong\system\domain\TPlanInfo.class
com\zehong\system\service\impl\SysUserOnlineServiceImpl.class
com\zehong\system\service\ISysMenuService.class
com\zehong\system\mapper\TTrainManageMapper.class
com\zehong\system\service\ITDeviceReportDataService.class
com\zehong\system\service\impl\SysConfigServiceImpl.class
com\zehong\system\service\impl\SysSettingServiceImpl.class
com\zehong\system\mapper\TPatrolCheckInMapper.class
com\zehong\system\service\impl\TVideoManagerServiceImpl.class
com\zehong\system\mapper\SysMenuMapper.class
com\zehong\system\mapper\SysDeptMapper.class
com\zehong\system\mapper\TWorkTaskMemberMapper.class
com\zehong\system\service\ITEventHandleService.class
com\zehong\system\domain\SysNotice.class
com\zehong\system\service\impl\TSupervisorInfoServiceImpl.class
com\zehong\system\domain\TDeviceUser.class
com\zehong\system\domain\TSupervise.class
com\zehong\system\domain\vo\MetaVo.class
com\zehong\system\domain\vo\TTroubleStandingBookVo.class
com\zehong\system\service\IPipeInterfaceService.class
com\zehong\system\domain\TEnterpriseInfo.class
com\zehong\system\mapper\SysUserPostMapper.class
com\zehong\system\service\impl\TDeviceUserServiceImpl.class
com\zehong\system\service\impl\TMessageDetailInfoServiceImpl.class
com\zehong\system\mapper\SysRoleDeptMapper.class
com\zehong\system\service\ITTrainPersonService.class
com\zehong\system\service\ITPipeInfoService.class
com\zehong\system\domain\THiddenTroubleInfo.class
com\zehong\system\service\impl\SysOperLogServiceImpl.class
com\zehong\system\mapper\SysConfigMapper.class
com\zehong\system\service\impl\TDetectorInfoServiceImpl.class
com\zehong\system\domain\TDeviceInfoS.class
com\zehong\system\domain\PipeList.class
com\zehong\system\mapper\TEventReceiveMapper.class
com\zehong\system\mapper\TLinePatrolPersonMapper.class
com\zehong\system\service\impl\TTrainManageServiceImpl.class
com\zehong\system\domain\vo\HomepageVo.class
com\zehong\system\domain\Construction.class
com\zehong\system\domain\TrainStatDetail.class
com\zehong\system\domain\Vehicle.class
com\zehong\system\domain\vo\EnterpriseVideoTreeNode.class
com\zehong\system\mapper\TDetectorReportDataMapper.class
com\zehong\system\domain\InspectionWork.class
com\zehong\system\service\impl\TDeviceReportDataServiceImpl.class
com\zehong\system\domain\SysOperLog.class
com\zehong\system\domain\SysPost.class
com\zehong\system\service\impl\TTroubleStandingBookServiceImpl.class
com\zehong\system\mapper\TEventInfoMapper.class
com\zehong\system\domain\SysUserOnline.class
com\zehong\system\domain\TPatrolCheckIn.class
com\zehong\system\service\impl\SysDeptServiceImpl.class
com\zehong\system\service\impl\TDetectorUserServiceImpl.class
com\zehong\system\service\ITProjectInfoService.class
com\zehong\system\domain\TUserLocation.class
com\zehong\system\domain\TenterpriseInfoData.class
com\zehong\system\domain\vo\TDetectorUserInspectVo.class
com\zehong\system\domain\Listaw.class
com\zehong\system\domain\TComplainDeal.class
com\zehong\system\mapper\TYehuaqiDeviceMapper.class
com\zehong\system\service\ITVehicleLocationInfoService.class
com\zehong\system\domain\TWorkOrder.class
com\zehong\system\service\impl\TSuperviseServiceImpl.class
com\zehong\system\domain\PressureFlow.class
com\zehong\system\mapper\TProjectInfoMapper.class
com\zehong\system\service\ITWorkTaskPatrolService.class
com\zehong\system\domain\form\TDetectorReportDataQueryForm.class
com\zehong\system\domain\TEmployedPeopleInfo.class
com\zehong\system\mapper\SysUserMapper.class
com\zehong\system\service\DecryptService.class
com\zehong\system\service\impl\TPatrolWorkInfoServiceImpl.class
com\zehong\system\domain\TEmergencyDevice.class
com\zehong\system\domain\TTSiteStationInfoList.class
com\zehong\system\domain\keyInformation.class
com\zehong\system\domain\TSupervisorInfo.class
com\zehong\system\service\impl\TMessageInfoServiceImpl.class
com\zehong\system\domain\SafetyData.class
com\zehong\system\service\impl\TEnterpriseInfoServiceImpl.class
com\zehong\system\service\impl\TDeviceInfoServiceImpl.class
com\zehong\system\controller\TPatrolCheckInController.class
com\zehong\system\domain\TVehicleLocationInfo.class
com\zehong\system\service\impl\TVehicleLocationInfoServiceImpl.class
com\zehong\system\domain\TVehicleInfo.class
com\zehong\system\service\impl\TTransferPostRecordServiceImpl.class
com\zehong\system\mapper\TDetectorUserMapper.class
com\zehong\system\mapper\SysLogininforMapper.class
com\zehong\system\service\ITSiteStationInfoService.class
com\zehong\system\service\impl\TYehuaqiDeviceServiceImpl.class
com\zehong\system\mapper\TPatrolPositionMapper.class
com\zehong\system\service\impl\TDetectorReportDataServiceImpl.class
com\zehong\system\domain\TDeviceReportData.class
com\zehong\system\mapper\TTrainPersonMapper.class
com\zehong\system\mapper\TDeviceUserMapper.class
com\zehong\system\mapper\TEmployedPeopleInfoMapper.class
com\zehong\system\service\ITEmergencyDeviceService.class
com\zehong\system\domain\PressureFlowList.class
com\zehong\system\domain\SysRoleMenu.class
com\zehong\system\service\impl\TPatrolCheckInServiceImpl.class
com\zehong\system\service\impl\TWorkOrderServiceImpl.class
com\zehong\system\service\ITPatrolPositionService.class
com\zehong\system\service\ITTrainManageService.class
com\zehong\system\service\ITWorkTaskService.class
com\zehong\system\domain\dto\TDetectorInfoDTO.class
com\zehong\system\domain\TVideoManager.class
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TEventHandleMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\SysNoticeMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TComplainDeal.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TPatrolCheckInMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\WebSocketServer.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TTroubleStandingBookServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TTrainPersonMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TWorkTaskMemberServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITDeviceInfoService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITWorkTaskInspectService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\SysConfigMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TYehuaqiDevice.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TMessageInfoMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TAssociatedEquipment.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TPatrolPosition.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\SysUserRoleMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\SysDictDataMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\Devicealarm.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TEmergencyDeviceServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\SysPostServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TWorkTaskServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\SysRoleDeptMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITEventReceiveService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TTransferPostRecordMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TWorkOrderMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\SysPostMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TTroubleStandingBookMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITTrainStatService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\SubordinateEquipmentList.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\controller\TPatrolCheckInController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TDeviceInfoServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\SysRoleMenuMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TEventInfoMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\DecryptServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\SysLogininforMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TDeviceUserMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TTroubleStandingBook.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TPatrolPositionMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TDetectorUserServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TTrainManage.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\PipeInterfaceMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TrainStatDetail.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TDeviceReportDataServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITSafeEquipmentStandingBookService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TSupervisorInfoMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TSafeEquipmentStandingBookMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITTransferPostRecordService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TPatrolWorkInfoMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TenterpriseInfoDataList.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TSiteStationInfoDataList.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITDeviceReportDataService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TVideoManager.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\THiddenTroubleInfoMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TTrainStatMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TEventHandleServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TDetectorUserCount.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TSuperviseMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TWorkTaskInspectServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\InspectionWorkPlan.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\SysSetting.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\ITTrainStatServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TEnterpriseInfoServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\Vehicle.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\http\WorkerCertDirectDTO.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TVehicleLocationInfoServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TDetectorReportData.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TTrainPerson.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TWorkTaskInspect.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ISysConfigService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\vo\RouterVo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TDeviceInfo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\form\THiddenDangerStandingBookForm.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TVehicleInfo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\vo\TDetectorAlarmInfoVO.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TVideoManagerMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TYehuaqiDeviceServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TTSiteStationInfoList.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITVehicleInfoService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITMessageInfoService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TMessageDetailInfo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITEnterpriseInfoService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITPatrolWorkInfoService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TSiteStationInfoMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\SysMenuServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\DeviceList.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\vo\MetaVo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\SysPost.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\SysOperLogMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\SysUserMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TDeviceInfoS.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\SysRoleMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\controller\TEventInfoController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TVehicleInfoMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\controller\TEventReceiveController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TTrainManageMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ISysSettingService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\SysLogininfor.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TEmergencyDevice.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\vo\TDetectorUserInspectVo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TWorkTask.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITLinePatrolPersonService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TVehicleLocationInfoMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\PipeInterfaceServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TDeviceReportDataMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TDeviceUserServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITDetectorReportDataService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TMessageInfo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TEventReceiveMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\SysRoleServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\SysLogininforServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TComplainDealServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TrainStat.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TLinePatrolPersonServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TWorkTaskPatrolCardServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\controller\TEventHandleController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\THiddenDangerStandingBook.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TYehuaqiUser.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ISysDeptService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TPipeInfoMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TEventReceiveServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TUserLocationServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TWorkTaskMemberMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TPatrolWorkInfoServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITMessageDetailInfoService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TEventInfo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITTrainManageService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\WebSocketBean.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TDeviceUser.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TEmployedPeopleInfo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITWorkTaskService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TSupervisorInfoServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TTrainManageServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITTroubleStandingBookService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITYehuaqiDeviceService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\PressureFlow.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TSiteStationInfoData.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TComplainDealMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TEnterpriseInfoMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TDetectorUserMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITVideoManagerService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\InspectionWork.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TProjectInfoMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TProjectInfoServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\Listaw.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\WorkerDirectdto.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\SysOperLogServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\DecryptMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\Hiddendanger.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TDetailInfoList.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TTransferPostRecordServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ISysDictTypeService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\SafetyData.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TUserLocationMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\DeviceDataList.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TSafeEquipmentStandingBook.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\SysConfigServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITWorkTaskPatrolCardService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\Construction.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITPatrolCheckInService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\vo\HomepageVo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TYehuaqiUserServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\PressureFlowList.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITSuperviseService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TWorkTaskMember.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TEmergencyDeviceMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\SysOperLog.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\IPipeInterfaceService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ISysNoticeService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\vo\TTroubleStandingBookVo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\THiddenDangerStandingBookMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITTrainPersonService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TSuperviseServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITPlanInfoService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\PipeDate.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\SysNotice.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TPlanInfoServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TLinePatrolPersonMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\SysNoticeServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\vo\EnterpriseVideoTreeNode.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\THiddenTroubleInfo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TSafeEquipmentStandingBookServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\vo\TDetectorUserVO.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\SysConfig.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TPlanInfo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TPipeInfoServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\SysDictTypeMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITDeviceUserService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TProjectInfo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\DecryptService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITHiddenTroubleInfoService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TWorkTaskPatrolMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\form\TTroubleStandingBookForm.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TVehicleLocationInfo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITWorkOrderService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TEventHandle.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TTransferPostRecord.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TWorkTaskPatrolCard.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TVideoManagerServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TEmployedPeopleInfoMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TWorkTaskPatrolServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ISysLogininforService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\SysDictDataServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITVehicleLocationInfoService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\SysUserPost.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITEmployedPeopleInfoService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TUserLocation.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\SysDictTypeServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\THiddenTroubleInfoServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITSiteStationInfoService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\DeviceData.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\SysRoleMenu.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TenterpriseInfoData.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TPatrolCheckInServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TDetectorReportDataMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITEmergencyDeviceService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TPatrolCheckIn.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\http\Save.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TDetectorReportDataServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITHiddenDangerStandingBookService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITProjectInfoService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\SysSettingMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TSiteStationInfo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TEmployedPeopleInfoServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TDeviceInfoMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ISysOperLogService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\THiddenDangerStandingBookServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TdetectorUserData.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\SysDeptMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TSiteStationInfoServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TVehicleInfoServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITPipeInfoService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\vo\THiddenDangerStandingBookVo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\form\TSafeEquipmentStandingBookForm.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\SysMenuMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\SysDeptServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ISysDictDataService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TDetectorInfoServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\vo\Passmodel.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TDeviceReportData.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TPipeInfo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\vo\TEnterpriseInfoVO.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TPlanInfoMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ISysRoleService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\SysUserServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\form\TDetectorReportDataForm.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TEventInfoServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TDetectorUser.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\SysRoleDept.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\WebSocketServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TMessageInfoServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITUserLocationService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\controller\WebSocketController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\SysUserOnline.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TYehuaqiUserMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TEnterpriseInfo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITYehuaqiUserService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\controller\TPlanInfoController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TWorkOrderServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TLinePatrolPerson.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TSupervise.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TWorkTaskMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\SysSettingServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TMessageDetailInfoServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TEventReceive.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TPatrolPositionServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TYehuaqiDeviceMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITDetectorUserService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\dto\TDetectorInfoDTO.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\Statistics.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TMessageDetailInfoMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TWorkOrder.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ISysMenuService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\keyInformation.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\SysUserPostMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITPatrolPositionService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\TTrainPersonServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TWorkTaskPatrolCardMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TWorkTaskPatrol.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\vo\TYehuaqiUserVO.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITEventHandleService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TDetectorInfoMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITComplainDealService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\Gascylinder.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITDetectorInfoService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TPatrolWorkInfo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ISysUserOnlineService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ISysUserService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITEventInfoService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TvideoManagerData.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TSupervisorInfo.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ISysPostService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\PipeList.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\controller\TEmergencyDeviceController.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITWorkTaskMemberService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\form\TDetectorReportDataQueryForm.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\Encryption.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\SysUserRole.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\mapper\TWorkTaskInspectMapper.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITSupervisorInfoService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\impl\SysUserOnlineServiceImpl.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\service\ITWorkTaskPatrolService.java
D:\20220924\othersoft\idea\workspace\zh-hengshuianping-project\zh-hengshuianping-system\src\main\java\com\zehong\system\domain\TDetectorInfo.java
...@@ -46,7 +46,7 @@ export class EditorMap { ...@@ -46,7 +46,7 @@ export class EditorMap {
constructor(contaienr, config = {}, vue) { constructor(contaienr, config = {}, vue) {
this.map = new AMap.Map(contaienr, { this.map = new AMap.Map(contaienr, {
viewMode: "3D", viewMode: "3D",
center: [118.168541, 39.838353], center: [115.52,38.23],
layers: [AMap.createDefaultLayer()], // layers 字段为空或者不赋值将会自动创建默认底图。 layers: [AMap.createDefaultLayer()], // layers 字段为空或者不赋值将会自动创建默认底图。
zoom: 14, zoom: 14,
zooms: [3, 20], zooms: [3, 20],
......
...@@ -558,7 +558,7 @@ export default { ...@@ -558,7 +558,7 @@ export default {
{ {
//center: path, //center: path,
//mapStyle: "amap://styles/f71d3a3d73e14f5b2bf5508bf1411758", //mapStyle: "amap://styles/f71d3a3d73e14f5b2bf5508bf1411758",
center: [118.168541,39.838353], center: [115.52,38.23],
zoom: 14.5, zoom: 14.5,
}, },
this this
......
...@@ -388,7 +388,7 @@ export default { ...@@ -388,7 +388,7 @@ export default {
}, },
methods: { methods: {
mapInit() { mapInit() {
this.map = new XjxcMap("xjxcmap", {center: [118.168541,39.838353]}, this); this.map = new XjxcMap("xjxcmap", {center: [115.52,38.23]}, this);
}, },
reset() { reset() {
this.searchData = { this.searchData = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment