|
@@ -80,13 +80,10 @@ SET FOREIGN_KEY_CHECKS = 1;
|
|
|
INSERT INTO t_rtk_device(rtk_sn_code,camera_sn,sg_rtk_sn,rtk_type,create_user_id,update_user_id,user_name,`password`,ip_addr,mount_point,`port`,operator,account_type,failure_time)
|
|
|
SELECT rtk_sn_code,camera_sn_code,sg_rtk_sn,rtk_type,create_user_id,update_user_id,user_name,`password`,ip_addr,mount_point,`port`,operator,1 as account_type,failure_time FROM t_rtk_info WHERE rec_status = 'A' and rtk_sn_code is not null and rtk_sn_code != ''
|
|
|
|
|
|
-
|
|
|
CREATE TEMPORARY TABLE temp_table AS
|
|
|
-
|
|
|
SELECT rd.id,camera_sn ,camera_type,d.type from t_rtk_device rd
|
|
|
LEFT JOIN t_camera a on rd.camera_sn = a.sn_code
|
|
|
LEFT JOIN t_camera_detail d on a.id = d.camera_id
|
|
|
-
|
|
|
WHERE rd.rec_status ='A' and camera_sn is not null and camera_type is null;
|
|
|
|
|
|
|