Commit db7a7666 by 杨林龙

仲利工单配置文件

1 parent c6d5be3b
ne-shield-trialdrive-admin 需要新增的配置
------------------------------------------------------------------------------------------
# 包活干调用接口
bhg_access_orderService_url=http://bhg.glsx.com.cn/carservice/ordercenter/
-------------------------------------------------------------------------------------------
ne-shield-standard-interfaces 需要新增的配置
-------------------------------------------------------------------------------------------
mail.toMail.addr=592761523@qq.com,wangkl@didihu.com.cn,maisq@didihu.com.cn
#仲利新E盾接口转发开关(on,off)
zl.apinvoke.change.power=on
-------------------------------------------------------------------------------------------
biz-gps-kafka-neshield 需要新增的配置
--------------------------------------------------------------------------------------------
server.servlet.context-path=/
server.max-http-header-size=3145728
server.tomcat.uri-encoding=UTF-8
server.tomcat.max-threads=1000
server.tomcat.min-spare-threads=30
server.tomcat.basedir=/tmp
#nacos-server
spring.cloud.nacos.discovery.server-addr=192.168.0.63:8848
#sentinel-dashboard
spring.cloud.sentinel.transport.dashboard=http://192.168.0.63:8718
spring.cloud.sentinel.transport.port=8718
spring.cloud.sentinel.eager=true
feign.sentinel.enabled=true
feign.hystrix.enabled=false
#dubbo配置
dubbo.application.name=biz-gps-kafka-provider
dubbo.application.owner=biz-gps-kafka
dubbo.registry.address=zookeeper://192.168.1.36:2181
dubbo.cache.file=/home/jdkapp/.cache/biz_gps_kafka/dubbo-cache-biz_gps_kafka.properties
#kafka配置
assign.zookeeper.connect=192.168.3.131:2181
assign.group.id=biz-gps-kafka-consumer-test105
auto.commit.interval.ms=60000
auto.offset.reset=largest
assign.zookeeper.connect.timeout.ms=40000
assign.zookeeper.session.timeout.ms=40000
assign.rebalance.backoff.ms=3000
assign.rebalance.max.retries=8
#consumer
consumer.nThreads=1
#批量消费消息数
event.consumer.count=5
#访问地址
spring.redis.host=192.168.3.207
#访问端口
spring.redis.port=6379
#注意,如果没有password,此处不设置值,但这一项要保留
#spring.redis.password=hhxredis
#最大空闲数,数据库连接的最大空闲时间。超过空闲时间,数据库连接将被标记为不可用,然后被释放。设为0表示无限制。
spring.redis.maxIdle=300
#连接池的最大数据库连接数。设为0表示无限制
spring.redis.maxActive=600
#最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
spring.redis.maxWait=3000
#在borrow一个jedis实例时,是否提前进行alidate操作;如果为true,则得到的jedis实例均是可用的;
spring.redis.testOnBorrow=true
spring.redis.timeout=200000
spring.data.redis.repositories.enabled=false
#mybatis配置
mapper.not-empty=false
mapper.identity=MYSQL
mapper.style=normal
mybatis.mapper-locations=classpath*:/mappers/*Mapper.xml
mybatis.type-aliases-package=com.glsx.biz.tfims.common.entity
#pagehelper config
pagehelper.helperDialect=mysql
pagehelper.reasonable=true
pagehelper.supportMethodsArguments=true
pagehelper.params=count=countSql
# topic 超时停留报警 离线超时报警 低电量报警
assign.alarmcommon.topic=gps_alarm_common
# topic 断电报警 光感报警
assign.gpsalarm.topic=gps_alarm
# topic 优化后断电报警
assign.poweroff.topic=gps_alarm_poweroff
# topic 调频下发
assign.freq.topic=gps_setparam_mark
# topic 调频上点
assign.replay.topic=gps_freq_req
#设备登录
topic.device.login=gps_login
# 设备登出
topic.device.loginout=gps_logout
# 设备在线
topic.device.online=gps_online
# 设备休眠
topic.device.sleep=gps_sleep
# 设备状态
topic.device.devstate=device_state_change
# gps和基站
topic.device.gpsandbs=gps_gpsandbs_change
# GPS上点
topic.device.gps=gps_gpsdata_change
# 基站上点
topic.device.bs=gps_basestation_change
# 围栏
assign.electricFence.topic=gps_fence_alarm
assign.fspResp.topic=Q_FspResp_Kafka
assign.homeOffset.topic=gps_home_offset
#试驾围栏topic
fence.drive.topic=fence_drive
#异常聚集报警
topic.aggregation.data=aggregation_data
#大数据研判警情
topic.stujudge=black_abnormal_area_alarm
#设备统计相关
topic.device.statactive=devstat_active
topic.device.statmileage=devstat_mileage
#GEO 请求服务地址以及端口
map.geo.host=47.107.157.48
map.geo.host.port=10081
#基站解析方式选择 JUHE/ICE(聚合解析/ICE基站)
basestation.analyze.choice=ICE
#basestation.analyze.choice=JUHE
ice.bs.server.host=47.107.157.48
ice.bs.server.port=10945
ice.bs.backup.server.host=192.168.3.153
ice.bs.backup.server.port=10945
#ice服务配置
ice.gps.server.host=192.168.3.153
ice.gps.server.port=23469
ice.gps.backup.server.host=192.168.3.153
ice.gps.backup.server.port=23469
#设备状态查询
ice.device.state.host=192.168.3.153
ice.device.state.port=30080
#设备里程查询
ice.device.mileage.host=122.13.170.91
ice.device.mileage.port=23477
ice.service.tryCount=3
# ice 服务相关配置
ice.switch.fun.open=15
ice.init.tryCount=3
ice.init.connections=3
# ice 服务连接失败后,重连等待的毫秒数,目前一次连接等待 10 秒
ice.service.tryWaitTime=2000
#hbase最大请求配置
hbase.max.reqCount=2000
ddbox.gps.filterLevel=90
#调频设置时间间隔(分钟)
gps.setFrequency.timeInterval=7
#过滤报警设备批次号
alarm.filter.batch=4161008
#过滤报警设备设备号
alarm.filter.deviceno=4160915950,4160915951,4160915952
CLASSID_FOR_KAFKA_CONSUMER=9
#GPS_ALARM_BLACKOUT=2
#判断设备是否为SPECIAL_GT
special.gt.first=15,24,17,46,38,97
GPS_ALARM_LOWERVOL=2
GPS_ALARM_BLACKOUT=2
#gps天线开路报警指定上报次数有效
GPS_ALARM_GPSOPEN=5
#E盾小程序地址
eshield_mini_access_url=https://devwx.glsx.com.cn/otmini/wechatPublic/postmessage
# 推送制定分类
push.eshield.groupIds=120
#国金资管接口地址(测试)
guojinziguan.baseurl=https://amtest.zxiaowei.com/api/receiver
guojinziguan.gpsBaseUrl=https://gpsjserver.zxiaowei.com/gpsserver
guojinziguan.biz_cert_id=8e87354b-e04d-11e9-ad43-00163e00c4ec
guojinziguan.client_id=8f1fcbcc-e04d-11e9-ad43-00163e00c4ec
guojinziguan.client_secret=8fb8624d-e04d-11e9-ad43-00163e00c4ec
topic.test_topic=test_topic
#数据库配置
#Datasource
spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
#测试数据库
spring.datasource.url=jdbc:mysql://192.168.3.222:3307/newgps?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowMultiQueries=true
spring.datasource.username=root
spring.datasource.password=Msd^*$@online
#高危
topic.highRisk.data=highriskdata
#二押
topic.second.data=seconddata
#批量大小,积满入库一次
blocking.queue.size=60000
#休眠时间
blocking.queue.sleepTime=300000
assign.group.id.old=biz-gps-kafka-consumer-test333
update.partionSize=100000
obd.alert.topic=alert
obd.basestation.topic=baseStation
obd.crash.topic=crashalert
obd.gps.topic=gpsData
obd.insert.topic=insertalert
obd.ignition.topic=ignition
obd.flameout.topic=flameout
assign.group.id.obd=biz-gps-kafka-consumer10
assign.zookeeper.connect.obd=192.168.3.131:2181
#更新切割的list大小
update.partionSize=10000
#每次读写redis大小
operate.redisSize=10000
#设备警情推送到绑定业务队列a
kafka.metadata.broker.list=192.168.3.131:9092
kafka.alarm.bind.business.topic=eshiled_alarm_bind_business
#gpsba推送设备号kafka配置
gpsbs.assign.zookeeper.connect=192.168.3.131:2181
gpsbs.assign.group.id=biz-gps-kafka-consumer-test105
gpsbs.auto.commit.interval.ms=60000
gpsbs.auto.offset.reset=largest
gpsbs.assign.zookeeper.connect.timeout.ms=40000
gpsbs.assign.zookeeper.session.timeout.ms=40000
gpsbs.assign.rebalance.backoff.ms=3000
gpsbs.assign.rebalance.max.retries=8
kafka.gpsandbs.consumer.count=1
kafka.gpsandbs.consumer.maxintervalseconds=120
kafka.gpsandbs.push.sn.topic=gpsAndBsPushSn
kafka.gpsandbs.push.sn.count=1
kafka.gpsandbs.push.sn.maxintervalseconds=60
redis.key.prefix=biz_gpsbs_changefour
kafka.devicestate.consumer.count=1
kafka.bs.consumer.count=1
kafka.gps.consumer.count=1
------------------------------------------------------------------------
ne-shield-notifycenter 需要新增的配置
------------------------------------------------------------------------
server.servlet.context-path=/notifycenter
#配置服务中心,原则上用那个nacos配置中心就注册到那个nacos
spring.cloud.nacos.discovery.server-addr=192.168.0.63:8848
#actuator端点启用和暴露
management.endpoints.web.base-path=/xactuator
management.endpoints.web.exposure.include=*
#management.endpoint.shutdown.enabled=true
#management.endpoint.sentinel.enabled=false
#management.endpoint.health.show-details=always
#动态刷新配置 ---需要忽略权限拦截
management.security.enabled=false
#spring boot admin
spring.boot.admin.client.instance.prefer-ip=true
spring.boot.admin.client.url=http://192.168.0.63:8769
spring.boot.admin.client.username=admin
spring.boot.admin.client.password=admin123
#zipkin
spring.zipkin.base-url=http://192.168.0.63:9411
spring.zipkin.discovery-client-enabled=false
#采样百分比
spring.sleuth.sampler.rate=100
#sentinel-dashboard
spring.cloud.sentinel.transport.dashboard=http://192.168.0.63:8718
spring.cloud.sentinel.transport.port=8719
spring.cloud.sentinel.eager=true
#feign sentinel
feign.sentinel.enabled=true
upload.location.windows=f:/data/img/ne-shiled/
upload.location.linux=/data/img/ne-shiled/
#日志存储
loggin.strategy=mongodb
#mongodb
spring.data.mongodb.uri= mongodb://192.168.0.39:27017/ne-shield
spring.cloud.nacos.discovery.group=NES_GROUP
#jackson
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
spring.jackson.time-zone=GMT+8
spring.jackson.serialization.write_dates_as_timestamps=false
spring.jackson.default-property-inclusion=non_null
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#spring.datasource.url=jdbc:mysql://192.168.3.190:3306/neshield?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
#spring.datasource.username=dev_user
#spring.datasource.password=df234fl
#测试
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://192.168.3.222:3307/neshield?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
spring.datasource.username=biz_neshield
spring.datasource.password=9USarBaG
# Hikari
spring.datasource.type=com.zaxxer.hikari.HikariDataSource
spring.datasource.hikari.minimum-idle=5
spring.datasource.hikari.maximum-pool-size=15
spring.datasource.hikari.auto-commit=true
spring.datasource.hikari.idle-timeout=30000
spring.datasource.hikari.pool-name=DatebookHikariCP
spring.datasource.hikari.max-lifetime=1800000
spring.datasource.hikari.connection-timeout=30000
spring.datasource.hikari.connection-test-query=SELECT 1
# Druid
#spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
# 初始化大小,最小,最大
spring.datasource.druid.initialSize=3
spring.datasource.druid.minIdle=5
spring.datasource.druid.maxActive=20
# 配置获取连接等待超时的时间
spring.datasource.druid.maxWait=60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
spring.datasource.druid.timeBetweenEvictionRunsMillis=60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
spring.datasource.druid.minEvictableIdleTimeMillis=30000
spring.datasource.druid.validationQuery=select 'x'
spring.datasource.druid.testWhileIdle=true
spring.datasource.druid.testOnBorrow=false
spring.datasource.druid.testOnReturn=false
# 是否缓存preparedStatement,打开PSCache,并且指定每个连接上PSCache的大小。官方建议MySQL下建议关闭,如果用SQL防火墙 建议打开
spring.datasource.druid.poolPreparedStatements=true
spring.datasource.druid.maxPoolPreparedStatementPerConnectionSize=20
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
spring.datasource.druid.filters=stat,wall,slf4j
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
spring.datasource.druid.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
#redis config
spring.redis.host=192.168.0.39
spring.redis.port=6379
spring.redis.password=hhxredis
spring.redis.database=0
spring.redis.timeout=200000
spring.data.redis.repositories.enabled=false
#sentinel数据源配置
spring.cloud.sentinel.datasource.ds2.nacos.server-addr=192.168.0.63:8848
spring.cloud.sentinel.datasource.ds2.nacos.username=nacos
spring.cloud.sentinel.datasource.ds2.nacos.password=nacos
spring.cloud.sentinel.datasource.ds2.nacos.data-id=glsx-ne-shield-sentinel-dev.json
spring.cloud.sentinel.datasource.ds2.nacos.group-id=NESHIELD_DEV_GROUP
spring.cloud.sentinel.datasource.ds2.nacos.data-type=json
spring.cloud.sentinel.datasource.ds2.nacos.rule-type=flow
#jwt config
jwt.config.header=Authorization
jwt.config.ttl=86400
jwt.config.refreshTtl=86400
jwt.config.key=5371f568a45e5ab1f442c38e0932aef24447139c
jwt.config.blacklistKey=JWT_BLACKLIST::%s
# mybatis配置
mybatis.mapperLocations=classpath:mapper/*.xml
#dubbo setting
dubbo.application.name=trialdrive-admin-consumer
dubbo.protocol.name=dubbo
dubbo.protocol.port=20881
dubbo.registry.address=zookeeper://192.168.1.36:2181
dubbo.registry.timeout=10000
ribbon.ConnectTimeout=10000
ribbon.ReadTimeout=10000
# FastDFS Configuration
fdfs.so-timeout=1500
fdfs.connect-timeout=600
fdfs.thumb-image.height=150
fdfs.thumb-image.width=150
fdfs.pool.max-total=100
fdfs.pool.max-wait-millis=5000
fdfs.tracker-list=192.168.3.222:22122
#fdfs.tracker-list=common.fdfs.glsx.com:22122
#fdfs.tracker-nginx-domain=http://qcimg01.glsx.net:7060
fdfs.trackerNginxDomain=http://qcimg01.glsx.net:7060
#fdfs_tracker_nginx_port=80
### mail邮件配置
#设置邮箱主机
spring.mail.host=smtp.163.com
#spring.mail.host=smtphz.qiye.163.com
#设置用户名
#spring.mail.username=liuyf@didihu.com.cn
spring.mail.username=guangliansaixun@163.com
#设置授权密码
#QQ邮箱->设置->账户->POP3/SMTP服务:开启服务后会获得QQ的授权码
#spring.mail.password=DNvrDsxaYYXbLkVq
spring.mail.password=thisisglsx123
#端口
spring.mail.port=25
spring.mail.default-encoding=utf-8
#协议
#spring.mail.protocol=smtp
#设置是否需要认证,如果为true,那么用户名和密码就必须的,
#如果设置false,可以不设置用户名和密码,当然也得看你的对接的平台是否支持无密码进行访问的。
spring.mail.properties.mail.smtp.auth=true
#STARTTLS[1] 是对纯文本通信协议的扩展。它提供一种方式将纯文本连接升级为加密连接(TLS或SSL),而不是另外使用一个端口作加密通信。
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.starttls.required=true
spring.mail.properties.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
# 需要添加的表
CREATE TABLE if not exists `t_vehicle_log`
(
`id` int(11) NOT NULL AUTO_INCREMENT,
`vehicle_id` int(11) DEFAULT NULL COMMENT '关联工单id',
`operate_content` varchar(100) DEFAULT NULL COMMENT '操作内容',
`remark` varchar(64) DEFAULT NULL COMMENT '备注',
`del_flag` tinyint(4) DEFAULT '0' COMMENT '是否删除 0=正常 -1=删除',
`created_date` datetime DEFAULT NULL COMMENT '创建时间',
`created_by` int(11) DEFAULT NULL COMMENT '创建人用户id',
`updated_date` datetime DEFAULT NULL COMMENT '更新时间',
`updated_by` int(11) DEFAULT NULL COMMENT '更新人用户id',
PRIMARY KEY (`id`),
KEY `vehicle_id_index` (`vehicle_id`)
) ENGINE = InnoDB
AUTO_INCREMENT = 1
DEFAULT CHARSET = utf8 COMMENT ='新e盾|车辆操作日志表';
create table t_workorder_vehicle_device
(
id int auto_increment primary key,
workorder_id int not null comment '关联工单id',
vehicle_id int null comment '工单车辆id',
sn varchar(32) null comment '设备sn',
wire_type tinyint(2) null comment '有线无线类型:1有线,0无线',
position varchar(100) null comment '设备安装位置',
del_flag tinyint default 0 null comment '是否删除 0=正常 -1=删除',
created_date datetime null comment '创建时间',
created_by int null comment '创建人用户id',
updated_date datetime null comment '更新时间',
updated_by int null comment '更新人用户id'
)
comment '新e盾|工单车辆设备附属表';
create table t_workorder_activate_log
(
id int auto_increment comment 'id' primary key,
workorder_id int not null comment '关联工单id',
service_provider varchar(100) null comment '服务商名称',
service_provider_phone varchar(20) null comment '服务商电话',
mechanic_name varchar(100) null comment '技工名称',
mechanic_phone varchar(20) null comment '技工电话',
syn_channel varchar(16) default '' null comment '激活渠道(App;BGH(包活干))',
remark varchar(500) null comment '备注',
del_flag tinyint default 0 null comment '是否删除 0=正常 -1=删除',
created_date datetime null comment '创建时间',
created_by int null comment '创建人用户id',
updated_date datetime null comment '更新时间',
updated_by int null comment '更新人用户id'
) comment '工单激活日志';
create table t_workorder_activate_location
(
id int auto_increment comment 'id' primary key,
workorder_id int not null comment '关联工单id',
vehicle_id int not null comment '车辆id',
sn varchar(32) not null comment '设备sn',
position varchar(100) null comment '设备安装位置',
lnglat varchar(128) null comment '经纬度坐标',
address varchar(100) null comment '解析地址',
up_time datetime null comment '上点时间',
del_flag tinyint default 0 null comment '是否删除 0=正常 -1=删除',
created_date datetime null comment '创建时间',
created_by int null comment '创建人用户id',
updated_date datetime null comment '更新时间',
updated_by int null comment '更新人用户id'
) comment '工单激活位置信息';
alter table t_workorder
add column finished_time datetime null comment '工单完成时间' after finished_remark,
modify finished_remark varchar(512) null comment '工单完成备注';
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!