Commit fcdc5fd9 by levphon

围栏设备vdid更新

1 parent b511ce25
......@@ -124,7 +124,13 @@ alter table t_electric_fence modify fence_name varchar(256) null comment '栅栏
alter table t_vehicle modify engine varchar(52) null comment '发动机';
alter table t_workorder_vehicle modify engine_no varchar(52) null comment '发动机号';
#基础数据创建帐号
update t_message_template set content = '【广联赛讯】尊敬的{0}先生/女士,({1})车辆于({2})发生出({3})围栏报警,请您留意具体车辆。' where template = 'SMS_TEMPLATE_ENTER_FENCE';
update t_message_template set content = '【广联赛讯】尊敬的{0}先生/女士,({1})车辆于({2})发生出({3})围栏报警,请您留意具体车辆。' where template = 'SMS_TEMPLATE_LEAVE_FENCE';
update t_message_template set content = '【广联赛讯】尊敬的{0}先生/女士,({1})车辆于({2})发生进出({3})围栏报警,请您留意具体车辆。' where template = 'SMS_TEMPLATE_ENTER_LEAVE_FENCE';
-- #基础数据创建帐号
ALTER TABLE `t_zhongli_department` ADD COLUMN user_account VARCHAR(50) DEFAULT NULL COMMENT '用户名';
ALTER TABLE `t_zhongli_department` ADD COLUMN user_id INT(11) DEFAULT NULL COMMENT '用户ID';
ALTER TABLE `t_zhongli_department` ADD COLUMN department_id INT(11) DEFAULT NULL COMMENT '组织ID';
......@@ -180,6 +186,7 @@ alter table t_electric_fence_sns_copy add vd_id int null comment '车辆设备
alter table t_electric_fence_sns_copy add index idx_sn(sn);
-- 更新围栏设备vdid
update t_electric_fence_sns_copy tefs ,t_vehicle_device tvd,t_vehicle tv
set tefs.vd_id = tvd.id
where tvd.sn = tefs.sn
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!