Commit eb751e9c by 杨林龙

添加配置文件

1 parent 9267e140
#sql脚本
drop table if exists t_whitelist_sn;
create table t_whitelist_sn
(
`id` int(11) NOT NULL AUTO_INCREMENT,
`vin` varchar(32) DEFAULT NULL COMMENT '车架号',
`sn` varchar(32) DEFAULT NULL COMMENT '设备号',
`department_id` int(11) DEFAULT NULL COMMENT '部门id',
`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 `sn_index` (`sn`)
) ENGINE = InnoDB
AUTO_INCREMENT = 1
DEFAULT CHARSET = utf8 COMMENT ='新e盾|假性离线设备号白名单';
drop table if exists t_fake_offline_fence_sn;
create table t_fake_offline_fence_sn
(
`id` int(11) NOT NULL AUTO_INCREMENT,
`sn` varchar(32) DEFAULT NULL COMMENT '设备号',
`status` tinyint(2) DEFAULT NULL COMMENT '是否在家庭围栏或者工作围栏内, 1表是在围栏内, 2表示不在围栏内',
`merchant_type` tinyint(2) DEFAULT NULL COMMENT '围栏类型: 1.家庭所在地围栏 2.工作所在地围栏',
`entry_time` datetime default null comment '进围栏时间',
`out_time` datetime default null comment '出围栏时间',
`trigger_time` datetime default null comment '假性离线触发时间',
`addr` varchar(512) default null comment '家庭地址|工作地址',
`unique_flag` 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 `sn_index` (`sn`),
KEY `unique_flag_index` (`unique_flag`)
) ENGINE = InnoDB
AUTO_INCREMENT = 1
DEFAULT CHARSET = utf8 COMMENT ='新e盾|假性离线围栏数据';
drop table if exists t_fake_offline_vin;
create table t_fake_offline_vin
(
`id` int(11) NOT NULL AUTO_INCREMENT,
`vin` varchar(32) DEFAULT NULL COMMENT '车架号',
`status` tinyint(2) DEFAULT NULL COMMENT '是否是假性离线车架号, 1表是假性离线车架号, 2表示不是假性离线车架号',
`home_addr` varchar(512) default null comment '家庭地址',
`work_addr` varchar(512) 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`),
unique KEY `vin_index` (`vin`)
) ENGINE = InnoDB
AUTO_INCREMENT = 1
DEFAULT CHARSET = utf8 COMMENT ='新e盾|假性离线车架号数据';
alter table t_vehicle_permit
modify content_type tinyint default 0 not null comment '内容类型:0车辆',
modify permit_type varchar(5) default 'r' not null comment '权限类型 r=只读 wr=读写';
alter table t_vehicle_permit
add index idx_created_by (created_by),
add index idx_accorder_id (accorder_id),
add index idx_receiver_id (receiver_id);
alter table t_vehicle_permit add unique index uidx_vehicle_permit(content_id,receiver_id,content_type,del_flag);
update t_vehicle_permit set content_type = 0;
update t_vehicle_permit set permit_type = 'r';
\ No newline at end of file
......@@ -26,3 +26,92 @@
```
## 二、项目:ne-shield-kafkaconsumer
### 1、开发配置
```properties
#假性离线Topic
mq.kafka.fake.office.topic=fence_fake_offline
```
### 2、测试配置
```properties
#假性离线Topic
mq.kafka.fake.office.topic=fence_fake_offline
```
### 3、生产配置
```properties
#假性离线Topic
mq.kafka.fake.office.topic=fence_fake_offline
```
## 三、项目:biz-gps-kafka-pazlpush
### 1、开发配置
```properties
#平安租赁默认分组
pazlpush.pingan.groupid=200
需要修改的配置 对应的参数修改为一下参数:
# topic 断电报警 光感报警
assign.gpsalarm.topic=gps_alarm_pingan
# gps和基站
topic.device.gpsandbs=gps_gpsandbs_pingan
# GPS上点
topic.device.gps=gps_gpsdata_pingan
# 基站上点
topic.device.bs=gps_basestation_pingan
```
### 2、测试配置
```properties
#平安租赁默认分组
pazlpush.pingan.groupid=200
需要修改的配置 对应的参数修改为一下参数:
# topic 断电报警 光感报警
assign.gpsalarm.topic=gps_alarm_pingan
# gps和基站
topic.device.gpsandbs=gps_gpsandbs_pingan
# GPS上点
topic.device.gps=gps_gpsdata_pingan
# 基站上点
topic.device.bs=gps_basestation_pingan
```
### 3、生产配置
```properties
#平安租赁默认分组
pazlpush.pingan.groupid=402
需要修改的配置 对应的参数修改为一下参数:
# topic 断电报警 光感报警
assign.gpsalarm.topic=gps_alarm_pingan
# gps和基站
topic.device.gpsandbs=gps_gpsandbs_pingan
# GPS上点
topic.device.gps=gps_gpsdata_pingan
# 基站上点
topic.device.bs=gps_basestation_pingan
```
......@@ -27,5 +27,7 @@ http://192.168.3.233:8090/eshiled-new/ne-shield-devicemonitor.git v1
http://192.168.3.233:8090/eshiled-new/ne-shield-devicemonitor-api.git v1.5.0
http://192.168.3.233:8090/eshiled-new/ne-shield-alarmcenter.git v1.5.0
http://192.168.3.233:8090/eshiled-new/ne-shield-usercenter.git v1.5.0
svn://192.168.3.233/frms/code/biz_gps_kafkapush/biz-gps-kafka-pazlpush
http://192.168.3.233:8090/eshiled-new/ne-shield-publiccenter.git master
```
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!