sql/增量sql/xprt_account.sql
New file @@ -0,0 +1,175 @@ SET FOREIGN_KEY_CHECKS=0; ALTER TABLE `xpeng_account`.`xp_app_user_coupon` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_app_user_coupon_0` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_app_user_coupon_1` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_app_user_coupon_2` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_app_user_coupon_3` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_app_user_coupon_4` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_app_user_coupon_5` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_app_user_coupon_6` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_app_user_coupon_7` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_app_user_coupon_8` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_app_user_coupon_9` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_app_user_coupon_10` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_app_user_coupon_11` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_app_user_coupon_12` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_app_user_coupon_13` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_app_user_coupon_14` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_app_user_coupon_15` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_app_user_coupon_16` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_app_user_coupon_17` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_app_user_coupon_18` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_app_user_coupon_19` MODIFY COLUMN `activity_id` bigint NULL DEFAULT NULL COMMENT '活动id' AFTER `coupon_id`; ALTER TABLE `xpeng_account`.`xp_operations_user` ADD COLUMN `sex` tinyint(1) NULL DEFAULT 1 COMMENT '性别 1-男 2-女' AFTER `avatar`; ALTER TABLE `xpeng_account`.`xp_operations_user` ADD COLUMN `device_type` tinyint(1) NULL DEFAULT NULL COMMENT '登录设备类型 1-安卓 2-iOS' AFTER `training_graduation_certificate`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `notification_content`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_0` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_0` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `update_by`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_0` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_1` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_1` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `update_by`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_1` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_2` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_2` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `update_by`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_2` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_3` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_3` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `update_by`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_3` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_4` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_4` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `update_by`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_4` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_5` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_5` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `update_by`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_5` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_6` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_6` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `update_by`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_6` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_7` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_7` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `update_by`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_7` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_8` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_8` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `update_by`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_8` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_9` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_9` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `update_by`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_9` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_10` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_10` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `update_by`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_10` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_11` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_11` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `update_by`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_11` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_12` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_12` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `update_by`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_12` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_13` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_13` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `update_by`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_13` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_14` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_14` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `update_by`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_14` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_15` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_15` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `update_by`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_15` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_16` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_16` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `update_by`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_16` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_17` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_17` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `update_by`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_17` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_18` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_18` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `update_by`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_18` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_19` ADD COLUMN `read_status` tinyint(1) NULL DEFAULT 0 COMMENT '已读状态 0-未读 1-已读' AFTER `data_id`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_19` ADD COLUMN `notification_ext` json NULL COMMENT '消息推送ext' AFTER `update_by`; ALTER TABLE `xpeng_account`.`xp_operations_user_notification_19` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; SET FOREIGN_KEY_CHECKS=1; sql/增量sql/xprt_maintenance.sql
New file @@ -0,0 +1,521 @@ SET FOREIGN_KEY_CHECKS=0; ALTER TABLE `xpeng_maintenance`.`xp_clock_in` MODIFY COLUMN `clock_out_result` int NULL DEFAULT 1 COMMENT '下班打卡结果 1=正常 2=早退 3=缺卡' AFTER `update_by`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_0` MODIFY COLUMN `clock_in_lat` double(20, 10) NOT NULL COMMENT '上班打卡纬度' AFTER `clock_in_lon`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_0` MODIFY COLUMN `clock_out_result` int NULL DEFAULT 1 COMMENT '下班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `update_by`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_0` MODIFY COLUMN `clock_out_lon` double(20, 10) NULL DEFAULT NULL COMMENT '下班打卡经度' AFTER `clock_out_result`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_0` MODIFY COLUMN `clock_out_lat` double(20, 10) NULL DEFAULT NULL COMMENT '下班打卡纬度' AFTER `clock_out_lon`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_1` MODIFY COLUMN `clock_in_lat` double(20, 10) NOT NULL COMMENT '上班打卡纬度' AFTER `clock_in_lon`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_1` MODIFY COLUMN `clock_out_result` int NULL DEFAULT 1 COMMENT '下班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `update_by`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_1` MODIFY COLUMN `clock_out_lon` double(20, 10) NULL DEFAULT NULL COMMENT '下班打卡经度' AFTER `clock_out_result`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_1` MODIFY COLUMN `clock_out_lat` double(20, 10) NULL DEFAULT NULL COMMENT '下班打卡纬度' AFTER `clock_out_lon`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_2` MODIFY COLUMN `clock_out_result` int NULL DEFAULT 1 COMMENT '下班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `update_by`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_2` MODIFY COLUMN `clock_out_lon` double(20, 10) NULL DEFAULT NULL COMMENT '下班打卡经度' AFTER `clock_out_result`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_2` MODIFY COLUMN `clock_out_lat` double(20, 10) NULL DEFAULT NULL COMMENT '下班打卡纬度' AFTER `clock_out_lon`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_3` MODIFY COLUMN `clock_in_lat` double(20, 10) NOT NULL COMMENT '上班打卡纬度' AFTER `clock_in_lon`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_3` MODIFY COLUMN `clock_out_result` int NULL DEFAULT 1 COMMENT '下班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `update_by`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_3` MODIFY COLUMN `clock_out_lon` double(20, 10) NULL DEFAULT NULL COMMENT '下班打卡经度' AFTER `clock_out_result`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_3` MODIFY COLUMN `clock_out_lat` double(20, 10) NULL DEFAULT NULL COMMENT '下班打卡纬度' AFTER `clock_out_lon`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_4` MODIFY COLUMN `clock_in_lat` double(20, 10) NOT NULL COMMENT '上班打卡纬度' AFTER `clock_in_lon`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_4` MODIFY COLUMN `clock_out_result` int NULL DEFAULT 1 COMMENT '下班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `update_by`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_4` MODIFY COLUMN `clock_out_lon` double(20, 10) NULL DEFAULT NULL COMMENT '下班打卡经度' AFTER `clock_out_result`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_4` MODIFY COLUMN `clock_out_lat` double(20, 10) NULL DEFAULT NULL COMMENT '下班打卡纬度' AFTER `clock_out_lon`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_5` MODIFY COLUMN `clock_in_lat` double(20, 10) NOT NULL COMMENT '上班打卡纬度' AFTER `clock_in_lon`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_5` MODIFY COLUMN `clock_out_result` int NULL DEFAULT 1 COMMENT '下班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `update_by`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_5` MODIFY COLUMN `clock_out_lon` double(20, 10) NULL DEFAULT NULL COMMENT '下班打卡经度' AFTER `clock_out_result`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_5` MODIFY COLUMN `clock_out_lat` double(20, 10) NULL DEFAULT NULL COMMENT '下班打卡纬度' AFTER `clock_out_lon`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_6` MODIFY COLUMN `clock_in_lat` double(20, 10) NOT NULL COMMENT '上班打卡纬度' AFTER `clock_in_lon`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_6` MODIFY COLUMN `clock_out_result` int NULL DEFAULT 1 COMMENT '下班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `update_by`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_6` MODIFY COLUMN `clock_out_lon` double(20, 10) NULL DEFAULT NULL COMMENT '下班打卡经度' AFTER `clock_out_result`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_6` MODIFY COLUMN `clock_out_lat` double(20, 10) NULL DEFAULT NULL COMMENT '下班打卡纬度' AFTER `clock_out_lon`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_7` MODIFY COLUMN `clock_in_lat` double(20, 10) NOT NULL COMMENT '上班打卡纬度' AFTER `clock_in_lon`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_7` MODIFY COLUMN `clock_out_result` int NULL DEFAULT 1 COMMENT '下班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `update_by`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_7` MODIFY COLUMN `clock_out_lon` double(20, 10) NULL DEFAULT NULL COMMENT '下班打卡经度' AFTER `clock_out_result`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_7` MODIFY COLUMN `clock_out_lat` double(20, 10) NULL DEFAULT NULL COMMENT '下班打卡纬度' AFTER `clock_out_lon`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_8` MODIFY COLUMN `clock_in_lat` double(20, 10) NOT NULL COMMENT '上班打卡纬度' AFTER `clock_in_lon`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_8` MODIFY COLUMN `clock_out_result` int NULL DEFAULT 1 COMMENT '下班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `update_by`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_8` MODIFY COLUMN `clock_out_lon` double(20, 10) NULL DEFAULT NULL COMMENT '下班打卡经度' AFTER `clock_out_result`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_8` MODIFY COLUMN `clock_out_lat` double(20, 10) NULL DEFAULT NULL COMMENT '下班打卡纬度' AFTER `clock_out_lon`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_9` MODIFY COLUMN `clock_in_lat` double(20, 10) NOT NULL COMMENT '上班打卡纬度' AFTER `clock_in_lon`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_9` MODIFY COLUMN `clock_out_result` int NULL DEFAULT 1 COMMENT '下班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `update_by`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_9` MODIFY COLUMN `clock_out_lon` double(20, 10) NULL DEFAULT NULL COMMENT '下班打卡经度' AFTER `clock_out_result`; ALTER TABLE `xpeng_maintenance`.`xp_clock_in_9` MODIFY COLUMN `clock_out_lat` double(20, 10) NULL DEFAULT NULL COMMENT '下班打卡纬度' AFTER `clock_out_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task` ADD COLUMN `belong_user_ids` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '任务归属人员ids' AFTER `end_time`; ALTER TABLE `xpeng_maintenance`.`xp_task` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务归属人ids,当任务通过后台分配指定角色或有处理人执行达到现场之后,该字段存储为单个指定处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_0` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task_0` MODIFY COLUMN `vehicle_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未获取到车辆当前位置' COMMENT '车辆位置' AFTER `task_image`; ALTER TABLE `xpeng_maintenance`.`xp_task_0` MODIFY COLUMN `vehicle_lon` decimal(10, 6) NOT NULL DEFAULT 104.060000 COMMENT '车辆经度' AFTER `vehicle_id`; ALTER TABLE `xpeng_maintenance`.`xp_task_0` MODIFY COLUMN `vehicle_lat` decimal(10, 6) NOT NULL DEFAULT 30.590000 COMMENT '车辆纬度' AFTER `vehicle_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task_0` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_0` MODIFY COLUMN `end_time` datetime NULL DEFAULT NULL COMMENT '任务处理时限' AFTER `status`; ALTER TABLE `xpeng_maintenance`.`xp_task_1` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task_1` MODIFY COLUMN `vehicle_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未获取到车辆当前位置' COMMENT '车辆位置' AFTER `task_image`; ALTER TABLE `xpeng_maintenance`.`xp_task_1` MODIFY COLUMN `vehicle_lon` decimal(10, 6) NOT NULL DEFAULT 104.060000 COMMENT '车辆经度' AFTER `vehicle_id`; ALTER TABLE `xpeng_maintenance`.`xp_task_1` MODIFY COLUMN `vehicle_lat` decimal(10, 6) NOT NULL DEFAULT 30.590000 COMMENT '车辆纬度' AFTER `vehicle_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task_1` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_1` MODIFY COLUMN `end_time` datetime NULL DEFAULT NULL COMMENT '任务处理时限' AFTER `status`; ALTER TABLE `xpeng_maintenance`.`xp_task_2` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task_2` MODIFY COLUMN `vehicle_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未获取到车辆当前位置' COMMENT '车辆位置' AFTER `task_image`; ALTER TABLE `xpeng_maintenance`.`xp_task_2` MODIFY COLUMN `vehicle_lon` decimal(10, 6) NOT NULL DEFAULT 104.060000 COMMENT '车辆经度' AFTER `vehicle_id`; ALTER TABLE `xpeng_maintenance`.`xp_task_2` MODIFY COLUMN `vehicle_lat` decimal(10, 6) NOT NULL DEFAULT 30.590000 COMMENT '车辆纬度' AFTER `vehicle_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task_2` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_2` MODIFY COLUMN `end_time` datetime NULL DEFAULT NULL COMMENT '任务处理时限' AFTER `status`; ALTER TABLE `xpeng_maintenance`.`xp_task_3` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task_3` MODIFY COLUMN `vehicle_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未获取到车辆当前位置' COMMENT '车辆位置' AFTER `task_image`; ALTER TABLE `xpeng_maintenance`.`xp_task_3` MODIFY COLUMN `vehicle_lon` decimal(10, 6) NOT NULL DEFAULT 104.060000 COMMENT '车辆经度' AFTER `vehicle_id`; ALTER TABLE `xpeng_maintenance`.`xp_task_3` MODIFY COLUMN `vehicle_lat` decimal(10, 6) NOT NULL DEFAULT 30.590000 COMMENT '车辆纬度' AFTER `vehicle_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task_3` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_3` MODIFY COLUMN `end_time` datetime NULL DEFAULT NULL COMMENT '任务处理时限' AFTER `status`; ALTER TABLE `xpeng_maintenance`.`xp_task_4` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task_4` MODIFY COLUMN `vehicle_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未获取到车辆当前位置' COMMENT '车辆位置' AFTER `task_image`; ALTER TABLE `xpeng_maintenance`.`xp_task_4` MODIFY COLUMN `vehicle_lon` decimal(10, 6) NOT NULL DEFAULT 104.060000 COMMENT '车辆经度' AFTER `vehicle_id`; ALTER TABLE `xpeng_maintenance`.`xp_task_4` MODIFY COLUMN `vehicle_lat` decimal(10, 6) NOT NULL DEFAULT 30.590000 COMMENT '车辆纬度' AFTER `vehicle_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task_4` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_4` MODIFY COLUMN `end_time` datetime NULL DEFAULT NULL COMMENT '任务处理时限' AFTER `status`; ALTER TABLE `xpeng_maintenance`.`xp_task_5` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task_5` MODIFY COLUMN `vehicle_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未获取到车辆当前位置' COMMENT '车辆位置' AFTER `task_image`; ALTER TABLE `xpeng_maintenance`.`xp_task_5` MODIFY COLUMN `vehicle_lon` decimal(10, 6) NOT NULL DEFAULT 104.060000 COMMENT '车辆经度' AFTER `vehicle_id`; ALTER TABLE `xpeng_maintenance`.`xp_task_5` MODIFY COLUMN `vehicle_lat` decimal(10, 6) NOT NULL DEFAULT 30.590000 COMMENT '车辆纬度' AFTER `vehicle_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task_5` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_5` MODIFY COLUMN `end_time` datetime NULL DEFAULT NULL COMMENT '任务处理时限' AFTER `status`; ALTER TABLE `xpeng_maintenance`.`xp_task_6` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task_6` MODIFY COLUMN `vehicle_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未获取到车辆当前位置' COMMENT '车辆位置' AFTER `task_image`; ALTER TABLE `xpeng_maintenance`.`xp_task_6` MODIFY COLUMN `vehicle_lon` decimal(10, 6) NOT NULL DEFAULT 104.060000 COMMENT '车辆经度' AFTER `vehicle_id`; ALTER TABLE `xpeng_maintenance`.`xp_task_6` MODIFY COLUMN `vehicle_lat` decimal(10, 6) NOT NULL DEFAULT 30.590000 COMMENT '车辆纬度' AFTER `vehicle_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task_6` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_6` MODIFY COLUMN `end_time` datetime NULL DEFAULT NULL COMMENT '任务处理时限' AFTER `status`; ALTER TABLE `xpeng_maintenance`.`xp_task_7` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task_7` MODIFY COLUMN `vehicle_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未获取到车辆当前位置' COMMENT '车辆位置' AFTER `task_image`; ALTER TABLE `xpeng_maintenance`.`xp_task_7` MODIFY COLUMN `vehicle_lon` decimal(10, 6) NOT NULL DEFAULT 104.060000 COMMENT '车辆经度' AFTER `vehicle_id`; ALTER TABLE `xpeng_maintenance`.`xp_task_7` MODIFY COLUMN `vehicle_lat` decimal(10, 6) NOT NULL DEFAULT 30.590000 COMMENT '车辆纬度' AFTER `vehicle_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task_7` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_7` MODIFY COLUMN `end_time` datetime NULL DEFAULT NULL COMMENT '任务处理时限' AFTER `status`; ALTER TABLE `xpeng_maintenance`.`xp_task_8` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task_8` MODIFY COLUMN `vehicle_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未获取到车辆当前位置' COMMENT '车辆位置' AFTER `task_image`; ALTER TABLE `xpeng_maintenance`.`xp_task_8` MODIFY COLUMN `vehicle_lon` decimal(10, 6) NOT NULL DEFAULT 104.060000 COMMENT '车辆经度' AFTER `vehicle_id`; ALTER TABLE `xpeng_maintenance`.`xp_task_8` MODIFY COLUMN `vehicle_lat` decimal(10, 6) NOT NULL DEFAULT 30.590000 COMMENT '车辆纬度' AFTER `vehicle_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task_8` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_8` MODIFY COLUMN `end_time` datetime NULL DEFAULT NULL COMMENT '任务处理时限' AFTER `status`; ALTER TABLE `xpeng_maintenance`.`xp_task_9` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task_9` MODIFY COLUMN `vehicle_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未获取到车辆当前位置' COMMENT '车辆位置' AFTER `task_image`; ALTER TABLE `xpeng_maintenance`.`xp_task_9` MODIFY COLUMN `vehicle_lon` decimal(10, 6) NOT NULL DEFAULT 104.060000 COMMENT '车辆经度' AFTER `vehicle_id`; ALTER TABLE `xpeng_maintenance`.`xp_task_9` MODIFY COLUMN `vehicle_lat` decimal(10, 6) NOT NULL DEFAULT 30.590000 COMMENT '车辆纬度' AFTER `vehicle_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task_9` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_9` MODIFY COLUMN `end_time` datetime NULL DEFAULT NULL COMMENT '任务处理时限' AFTER `status`; ALTER TABLE `xpeng_maintenance`.`xp_task_10` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task_10` MODIFY COLUMN `vehicle_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未获取到车辆当前位置' COMMENT '车辆位置' AFTER `task_image`; ALTER TABLE `xpeng_maintenance`.`xp_task_10` MODIFY COLUMN `vehicle_lon` decimal(10, 6) NOT NULL DEFAULT 104.060000 COMMENT '车辆经度' AFTER `vehicle_id`; ALTER TABLE `xpeng_maintenance`.`xp_task_10` MODIFY COLUMN `vehicle_lat` decimal(10, 6) NOT NULL DEFAULT 30.590000 COMMENT '车辆纬度' AFTER `vehicle_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task_10` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_10` MODIFY COLUMN `end_time` datetime NULL DEFAULT NULL COMMENT '任务处理时限' AFTER `status`; ALTER TABLE `xpeng_maintenance`.`xp_task_11` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task_11` MODIFY COLUMN `vehicle_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未获取到车辆当前位置' COMMENT '车辆位置' AFTER `task_image`; ALTER TABLE `xpeng_maintenance`.`xp_task_11` MODIFY COLUMN `vehicle_lon` decimal(10, 6) NOT NULL DEFAULT 104.060000 COMMENT '车辆经度' AFTER `vehicle_id`; ALTER TABLE `xpeng_maintenance`.`xp_task_11` MODIFY COLUMN `vehicle_lat` decimal(10, 6) NOT NULL DEFAULT 30.590000 COMMENT '车辆纬度' AFTER `vehicle_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task_11` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_11` MODIFY COLUMN `end_time` datetime NULL DEFAULT NULL COMMENT '任务处理时限' AFTER `status`; ALTER TABLE `xpeng_maintenance`.`xp_task_12` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task_12` MODIFY COLUMN `vehicle_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未获取到车辆当前位置' COMMENT '车辆位置' AFTER `task_image`; ALTER TABLE `xpeng_maintenance`.`xp_task_12` MODIFY COLUMN `vehicle_lon` decimal(10, 6) NOT NULL DEFAULT 104.060000 COMMENT '车辆经度' AFTER `vehicle_id`; ALTER TABLE `xpeng_maintenance`.`xp_task_12` MODIFY COLUMN `vehicle_lat` decimal(10, 6) NOT NULL DEFAULT 30.590000 COMMENT '车辆纬度' AFTER `vehicle_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task_12` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_12` MODIFY COLUMN `end_time` datetime NULL DEFAULT NULL COMMENT '任务处理时限' AFTER `status`; ALTER TABLE `xpeng_maintenance`.`xp_task_13` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task_13` MODIFY COLUMN `vehicle_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未获取到车辆当前位置' COMMENT '车辆位置' AFTER `task_image`; ALTER TABLE `xpeng_maintenance`.`xp_task_13` MODIFY COLUMN `vehicle_lon` decimal(10, 6) NOT NULL DEFAULT 104.060000 COMMENT '车辆经度' AFTER `vehicle_id`; ALTER TABLE `xpeng_maintenance`.`xp_task_13` MODIFY COLUMN `vehicle_lat` decimal(10, 6) NOT NULL DEFAULT 30.590000 COMMENT '车辆纬度' AFTER `vehicle_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task_13` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_13` MODIFY COLUMN `end_time` datetime NULL DEFAULT NULL COMMENT '任务处理时限' AFTER `status`; ALTER TABLE `xpeng_maintenance`.`xp_task_14` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task_14` MODIFY COLUMN `vehicle_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未获取到车辆当前位置' COMMENT '车辆位置' AFTER `task_image`; ALTER TABLE `xpeng_maintenance`.`xp_task_14` MODIFY COLUMN `vehicle_lon` decimal(10, 6) NOT NULL DEFAULT 104.060000 COMMENT '车辆经度' AFTER `vehicle_id`; ALTER TABLE `xpeng_maintenance`.`xp_task_14` MODIFY COLUMN `vehicle_lat` decimal(10, 6) NOT NULL DEFAULT 30.590000 COMMENT '车辆纬度' AFTER `vehicle_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task_14` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_14` MODIFY COLUMN `end_time` datetime NULL DEFAULT NULL COMMENT '任务处理时限' AFTER `status`; ALTER TABLE `xpeng_maintenance`.`xp_task_15` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task_15` MODIFY COLUMN `vehicle_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未获取到车辆当前位置' COMMENT '车辆位置' AFTER `task_image`; ALTER TABLE `xpeng_maintenance`.`xp_task_15` MODIFY COLUMN `vehicle_lon` decimal(10, 6) NOT NULL DEFAULT 104.060000 COMMENT '车辆经度' AFTER `vehicle_id`; ALTER TABLE `xpeng_maintenance`.`xp_task_15` MODIFY COLUMN `vehicle_lat` decimal(10, 6) NOT NULL DEFAULT 30.590000 COMMENT '车辆纬度' AFTER `vehicle_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task_15` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_15` MODIFY COLUMN `end_time` datetime NULL DEFAULT NULL COMMENT '任务处理时限' AFTER `status`; ALTER TABLE `xpeng_maintenance`.`xp_task_16` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task_16` MODIFY COLUMN `vehicle_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未获取到车辆当前位置' COMMENT '车辆位置' AFTER `task_image`; ALTER TABLE `xpeng_maintenance`.`xp_task_16` MODIFY COLUMN `vehicle_lon` decimal(10, 6) NOT NULL DEFAULT 104.060000 COMMENT '车辆经度' AFTER `vehicle_id`; ALTER TABLE `xpeng_maintenance`.`xp_task_16` MODIFY COLUMN `vehicle_lat` decimal(10, 6) NOT NULL DEFAULT 30.590000 COMMENT '车辆纬度' AFTER `vehicle_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task_16` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_16` MODIFY COLUMN `end_time` datetime NULL DEFAULT NULL COMMENT '任务处理时限' AFTER `status`; ALTER TABLE `xpeng_maintenance`.`xp_task_17` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task_17` MODIFY COLUMN `vehicle_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未获取到车辆当前位置' COMMENT '车辆位置' AFTER `task_image`; ALTER TABLE `xpeng_maintenance`.`xp_task_17` MODIFY COLUMN `vehicle_lon` decimal(10, 6) NOT NULL DEFAULT 104.060000 COMMENT '车辆经度' AFTER `vehicle_id`; ALTER TABLE `xpeng_maintenance`.`xp_task_17` MODIFY COLUMN `vehicle_lat` decimal(10, 6) NOT NULL DEFAULT 30.590000 COMMENT '车辆纬度' AFTER `vehicle_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task_17` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_17` MODIFY COLUMN `end_time` datetime NULL DEFAULT NULL COMMENT '任务处理时限' AFTER `status`; ALTER TABLE `xpeng_maintenance`.`xp_task_18` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task_18` MODIFY COLUMN `vehicle_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未获取到车辆当前位置' COMMENT '车辆位置' AFTER `task_image`; ALTER TABLE `xpeng_maintenance`.`xp_task_18` MODIFY COLUMN `vehicle_lon` decimal(10, 6) NOT NULL DEFAULT 104.060000 COMMENT '车辆经度' AFTER `vehicle_id`; ALTER TABLE `xpeng_maintenance`.`xp_task_18` MODIFY COLUMN `vehicle_lat` decimal(10, 6) NOT NULL DEFAULT 30.590000 COMMENT '车辆纬度' AFTER `vehicle_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task_18` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_18` MODIFY COLUMN `end_time` datetime NULL DEFAULT NULL COMMENT '任务处理时限' AFTER `status`; ALTER TABLE `xpeng_maintenance`.`xp_task_19` MODIFY COLUMN `task_image` json NULL COMMENT '任务图片' AFTER `task_description`; ALTER TABLE `xpeng_maintenance`.`xp_task_19` MODIFY COLUMN `vehicle_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '未获取到车辆当前位置' COMMENT '车辆位置' AFTER `task_image`; ALTER TABLE `xpeng_maintenance`.`xp_task_19` MODIFY COLUMN `vehicle_lon` decimal(10, 6) NOT NULL DEFAULT 104.060000 COMMENT '车辆经度' AFTER `vehicle_id`; ALTER TABLE `xpeng_maintenance`.`xp_task_19` MODIFY COLUMN `vehicle_lat` decimal(10, 6) NOT NULL DEFAULT 30.590000 COMMENT '车辆纬度' AFTER `vehicle_lon`; ALTER TABLE `xpeng_maintenance`.`xp_task_19` MODIFY COLUMN `handle_user_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '处理人id' AFTER `vehicle_lat`; ALTER TABLE `xpeng_maintenance`.`xp_task_19` MODIFY COLUMN `end_time` datetime NULL DEFAULT NULL COMMENT '任务处理时限' AFTER `status`; ALTER TABLE `xpeng_maintenance`.`xp_task_rule` ADD COLUMN `vehicle_clean_cycle` int NOT NULL COMMENT '车身清洁保养周期X' AFTER `vehicle_clean_time`; ALTER TABLE `xpeng_maintenance`.`xp_task_rule` ADD COLUMN `routine_maintenance_cycle` int NOT NULL COMMENT '日常整备保养周期X' AFTER `vehicle_clean_level`; ALTER TABLE `xpeng_maintenance`.`xp_task_rule` MODIFY COLUMN `vehicle_inspection_time` time NOT NULL COMMENT '车辆日常检测 任务下放时间' AFTER `vehicle_inspection_frequency`; ALTER TABLE `xpeng_maintenance`.`xp_task_rule` MODIFY COLUMN `vehicle_collection_time` time NOT NULL COMMENT '车辆收车每日时间' AFTER `vehicle_collection`; ALTER TABLE `xpeng_maintenance`.`xp_task_rule` MODIFY COLUMN `maintenance_cycle_task_time` time NOT NULL COMMENT '车辆保养周期 任务下放时间' AFTER `maintenance_cycle_time_type`; ALTER TABLE `xpeng_maintenance`.`xp_task_rule` MODIFY COLUMN `vehicle_clean_time` time NOT NULL COMMENT '车身清洁保养任务下放时间' AFTER `charging_strategy_level`; ALTER TABLE `xpeng_maintenance`.`xp_task_rule` MODIFY COLUMN `routine_maintenance_time` time NOT NULL COMMENT '日常整备保养任务下放时间' AFTER `routine_maintenance_cycle`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle` MODIFY COLUMN `vehicle_pictures` json NULL COMMENT '车辆图片' AFTER `vehicle_color`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_clean_0` MODIFY COLUMN `id` bigint NOT NULL FIRST; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_clean_1` MODIFY COLUMN `id` bigint NOT NULL FIRST; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_clean_2` MODIFY COLUMN `id` bigint NOT NULL FIRST; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_clean_3` MODIFY COLUMN `id` bigint NOT NULL FIRST; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_clean_4` MODIFY COLUMN `id` bigint NOT NULL FIRST; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_clean_5` MODIFY COLUMN `id` bigint NOT NULL FIRST; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_clean_6` MODIFY COLUMN `id` bigint NOT NULL FIRST; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_clean_7` MODIFY COLUMN `id` bigint NOT NULL FIRST; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_clean_8` MODIFY COLUMN `id` bigint NOT NULL FIRST; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_clean_9` MODIFY COLUMN `id` bigint NOT NULL FIRST; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection` MODIFY COLUMN `sensor_cleaning_picture` json NULL COMMENT '传感器清洁检测图' AFTER `sensor_cleaning`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection` MODIFY COLUMN `interactive_screen_picture` json NULL COMMENT '交互屏检测图' AFTER `interactive_screen`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection` MODIFY COLUMN `help_button_picture` json NULL COMMENT '求助按钮图' AFTER `help_button`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection` MODIFY COLUMN `payment_function_picture` json NULL COMMENT '支付功能图' AFTER `payment_function`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection` MODIFY COLUMN `system_check_picture` json NULL COMMENT '系统检查图' AFTER `system_check`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_0` MODIFY COLUMN `sensor_cleaning_picture` json NULL COMMENT '传感器清洁检测图' AFTER `sensor_cleaning`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_0` MODIFY COLUMN `interactive_screen_picture` json NULL COMMENT '交互屏检测图' AFTER `interactive_screen`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_0` MODIFY COLUMN `help_button_picture` json NULL COMMENT '求助按钮图' AFTER `help_button`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_0` MODIFY COLUMN `payment_function_picture` json NULL COMMENT '支付功能图' AFTER `payment_function`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_0` MODIFY COLUMN `system_check_picture` json NULL COMMENT '系统检查图' AFTER `system_check`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_1` MODIFY COLUMN `sensor_cleaning_picture` json NULL COMMENT '传感器清洁检测图' AFTER `sensor_cleaning`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_1` MODIFY COLUMN `interactive_screen_picture` json NULL COMMENT '交互屏检测图' AFTER `interactive_screen`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_1` MODIFY COLUMN `help_button_picture` json NULL COMMENT '求助按钮图' AFTER `help_button`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_1` MODIFY COLUMN `payment_function_picture` json NULL COMMENT '支付功能图' AFTER `payment_function`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_1` MODIFY COLUMN `system_check_picture` json NULL COMMENT '系统检查图' AFTER `system_check`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_2` MODIFY COLUMN `sensor_cleaning_picture` json NULL COMMENT '传感器清洁检测图' AFTER `sensor_cleaning`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_2` MODIFY COLUMN `interactive_screen_picture` json NULL COMMENT '交互屏检测图' AFTER `interactive_screen`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_2` MODIFY COLUMN `help_button_picture` json NULL COMMENT '求助按钮图' AFTER `help_button`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_2` MODIFY COLUMN `payment_function_picture` json NULL COMMENT '支付功能图' AFTER `payment_function`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_2` MODIFY COLUMN `system_check_picture` json NULL COMMENT '系统检查图' AFTER `system_check`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_3` MODIFY COLUMN `sensor_cleaning_picture` json NULL COMMENT '传感器清洁检测图' AFTER `sensor_cleaning`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_3` MODIFY COLUMN `interactive_screen_picture` json NULL COMMENT '交互屏检测图' AFTER `interactive_screen`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_3` MODIFY COLUMN `help_button_picture` json NULL COMMENT '求助按钮图' AFTER `help_button`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_3` MODIFY COLUMN `payment_function_picture` json NULL COMMENT '支付功能图' AFTER `payment_function`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_3` MODIFY COLUMN `system_check_picture` json NULL COMMENT '系统检查图' AFTER `system_check`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_4` MODIFY COLUMN `sensor_cleaning_picture` json NULL COMMENT '传感器清洁检测图' AFTER `sensor_cleaning`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_4` MODIFY COLUMN `interactive_screen_picture` json NULL COMMENT '交互屏检测图' AFTER `interactive_screen`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_4` MODIFY COLUMN `help_button_picture` json NULL COMMENT '求助按钮图' AFTER `help_button`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_4` MODIFY COLUMN `payment_function_picture` json NULL COMMENT '支付功能图' AFTER `payment_function`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_4` MODIFY COLUMN `system_check_picture` json NULL COMMENT '系统检查图' AFTER `system_check`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_5` MODIFY COLUMN `sensor_cleaning_picture` json NULL COMMENT '传感器清洁检测图' AFTER `sensor_cleaning`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_5` MODIFY COLUMN `interactive_screen_picture` json NULL COMMENT '交互屏检测图' AFTER `interactive_screen`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_5` MODIFY COLUMN `help_button_picture` json NULL COMMENT '求助按钮图' AFTER `help_button`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_5` MODIFY COLUMN `payment_function_picture` json NULL COMMENT '支付功能图' AFTER `payment_function`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_5` MODIFY COLUMN `system_check_picture` json NULL COMMENT '系统检查图' AFTER `system_check`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_6` MODIFY COLUMN `sensor_cleaning_picture` json NULL COMMENT '传感器清洁检测图' AFTER `sensor_cleaning`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_6` MODIFY COLUMN `interactive_screen_picture` json NULL COMMENT '交互屏检测图' AFTER `interactive_screen`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_6` MODIFY COLUMN `help_button_picture` json NULL COMMENT '求助按钮图' AFTER `help_button`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_6` MODIFY COLUMN `payment_function_picture` json NULL COMMENT '支付功能图' AFTER `payment_function`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_6` MODIFY COLUMN `system_check_picture` json NULL COMMENT '系统检查图' AFTER `system_check`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_7` MODIFY COLUMN `sensor_cleaning_picture` json NULL COMMENT '传感器清洁检测图' AFTER `sensor_cleaning`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_7` MODIFY COLUMN `interactive_screen_picture` json NULL COMMENT '交互屏检测图' AFTER `interactive_screen`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_7` MODIFY COLUMN `help_button_picture` json NULL COMMENT '求助按钮图' AFTER `help_button`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_7` MODIFY COLUMN `payment_function_picture` json NULL COMMENT '支付功能图' AFTER `payment_function`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_7` MODIFY COLUMN `system_check_picture` json NULL COMMENT '系统检查图' AFTER `system_check`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_8` MODIFY COLUMN `sensor_cleaning_picture` json NULL COMMENT '传感器清洁检测图' AFTER `sensor_cleaning`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_8` MODIFY COLUMN `interactive_screen_picture` json NULL COMMENT '交互屏检测图' AFTER `interactive_screen`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_8` MODIFY COLUMN `help_button_picture` json NULL COMMENT '求助按钮图' AFTER `help_button`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_8` MODIFY COLUMN `payment_function_picture` json NULL COMMENT '支付功能图' AFTER `payment_function`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_8` MODIFY COLUMN `system_check_picture` json NULL COMMENT '系统检查图' AFTER `system_check`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_9` MODIFY COLUMN `sensor_cleaning_picture` json NULL COMMENT '传感器清洁检测图' AFTER `sensor_cleaning`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_9` MODIFY COLUMN `interactive_screen_picture` json NULL COMMENT '交互屏检测图' AFTER `interactive_screen`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_9` MODIFY COLUMN `help_button_picture` json NULL COMMENT '求助按钮图' AFTER `help_button`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_9` MODIFY COLUMN `payment_function_picture` json NULL COMMENT '支付功能图' AFTER `payment_function`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_detection_9` MODIFY COLUMN `system_check_picture` json NULL COMMENT '系统检查图' AFTER `system_check`; ALTER TABLE `xpeng_maintenance`.`xp_vehicle_repair_3` MODIFY COLUMN `repair_money_detail` json NULL COMMENT '维修费用明细' AFTER `repair_money`; ALTER TABLE `xpeng_maintenance`.`xp_work_order` MODIFY COLUMN `problem_image` json NULL COMMENT '图片' AFTER `problem_description`; ALTER TABLE `xpeng_maintenance`.`xp_work_order` MODIFY COLUMN `feedback_user_phone` int NOT NULL COMMENT '反馈用户手机号' AFTER `problem_image`; ALTER TABLE `xpeng_maintenance`.`xp_work_order_0` ADD COLUMN `create_by_id` bigint NOT NULL COMMENT '创建人id' AFTER `handle_user_id`; ALTER TABLE `xpeng_maintenance`.`xp_work_order_0` MODIFY COLUMN `problem_image` json NULL COMMENT '图片' AFTER `problem_description`; ALTER TABLE `xpeng_maintenance`.`xp_work_order_1` ADD COLUMN `create_by_id` bigint NOT NULL COMMENT '创建人id' AFTER `handle_user_id`; ALTER TABLE `xpeng_maintenance`.`xp_work_order_1` MODIFY COLUMN `problem_image` json NULL COMMENT '图片' AFTER `problem_description`; ALTER TABLE `xpeng_maintenance`.`xp_work_order_2` ADD COLUMN `create_by_id` bigint NOT NULL COMMENT '创建人id' AFTER `handle_user_id`; ALTER TABLE `xpeng_maintenance`.`xp_work_order_2` MODIFY COLUMN `problem_image` json NULL COMMENT '图片' AFTER `problem_description`; ALTER TABLE `xpeng_maintenance`.`xp_work_order_3` ADD COLUMN `create_by_id` bigint NOT NULL COMMENT '创建人id' AFTER `handle_user_id`; ALTER TABLE `xpeng_maintenance`.`xp_work_order_3` MODIFY COLUMN `problem_image` json NULL COMMENT '图片' AFTER `problem_description`; ALTER TABLE `xpeng_maintenance`.`xp_work_order_4` ADD COLUMN `create_by_id` bigint NOT NULL COMMENT '创建人id' AFTER `handle_user_id`; ALTER TABLE `xpeng_maintenance`.`xp_work_order_4` MODIFY COLUMN `problem_image` json NULL COMMENT '图片' AFTER `problem_description`; ALTER TABLE `xpeng_maintenance`.`xp_work_order_5` ADD COLUMN `create_by_id` bigint NOT NULL COMMENT '创建人id' AFTER `handle_user_id`; ALTER TABLE `xpeng_maintenance`.`xp_work_order_5` MODIFY COLUMN `problem_image` json NULL COMMENT '图片' AFTER `problem_description`; ALTER TABLE `xpeng_maintenance`.`xp_work_order_6` ADD COLUMN `create_by_id` bigint NOT NULL COMMENT '创建人id' AFTER `handle_user_id`; ALTER TABLE `xpeng_maintenance`.`xp_work_order_6` MODIFY COLUMN `problem_image` json NULL COMMENT '图片' AFTER `problem_description`; ALTER TABLE `xpeng_maintenance`.`xp_work_order_7` ADD COLUMN `create_by_id` bigint NOT NULL COMMENT '创建人id' AFTER `handle_user_id`; ALTER TABLE `xpeng_maintenance`.`xp_work_order_7` MODIFY COLUMN `problem_image` json NULL COMMENT '图片' AFTER `problem_description`; ALTER TABLE `xpeng_maintenance`.`xp_work_order_8` ADD COLUMN `create_by_id` bigint NOT NULL COMMENT '创建人id' AFTER `handle_user_id`; ALTER TABLE `xpeng_maintenance`.`xp_work_order_8` MODIFY COLUMN `problem_image` json NULL COMMENT '图片' AFTER `problem_description`; ALTER TABLE `xpeng_maintenance`.`xp_work_order_9` ADD COLUMN `create_by_id` bigint NOT NULL COMMENT '创建人id' AFTER `handle_user_id`; ALTER TABLE `xpeng_maintenance`.`xp_work_order_9` MODIFY COLUMN `problem_image` json NULL COMMENT '图片' AFTER `problem_description`; SET FOREIGN_KEY_CHECKS=1; sql/增量sql/xprt_operation.sql
New file @@ -0,0 +1,221 @@ SET FOREIGN_KEY_CHECKS=0; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point` ADD COLUMN `stop_flag` tinyint NULL DEFAULT NULL COMMENT '是否停车 0-否 1-是' AFTER `sort_order`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point` MODIFY COLUMN `point_id` bigint NULL DEFAULT NULL COMMENT '点位ID' AFTER `cruise_plan_id`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point` DROP COLUMN `is_deleted`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point` DROP COLUMN `create_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point` DROP COLUMN `update_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point` DROP COLUMN `create_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point` DROP COLUMN `update_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_0` ADD COLUMN `id` bigint NOT NULL COMMENT '自增id' FIRST; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_0` ADD COLUMN `stop_flag` tinyint NULL DEFAULT NULL COMMENT '是否停车 0-否 1-是' AFTER `sort_order`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_0` MODIFY COLUMN `point_id` bigint NULL DEFAULT NULL COMMENT '点位ID' AFTER `cruise_plan_id`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_0` ADD PRIMARY KEY (`id`) USING BTREE; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_0` DROP COLUMN `is_deleted`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_0` DROP COLUMN `create_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_0` DROP COLUMN `update_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_0` DROP COLUMN `create_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_0` DROP COLUMN `update_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_1` ADD COLUMN `id` bigint NOT NULL COMMENT '自增id' FIRST; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_1` ADD COLUMN `stop_flag` tinyint NULL DEFAULT NULL COMMENT '是否停车 0-否 1-是' AFTER `sort_order`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_1` MODIFY COLUMN `point_id` bigint NULL DEFAULT NULL COMMENT '点位ID' AFTER `cruise_plan_id`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_1` ADD PRIMARY KEY (`id`) USING BTREE; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_1` DROP COLUMN `is_deleted`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_1` DROP COLUMN `create_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_1` DROP COLUMN `update_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_1` DROP COLUMN `create_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_1` DROP COLUMN `update_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_2` ADD COLUMN `id` bigint NOT NULL COMMENT '自增id' FIRST; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_2` ADD COLUMN `stop_flag` tinyint NULL DEFAULT NULL COMMENT '是否停车 0-否 1-是' AFTER `sort_order`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_2` MODIFY COLUMN `point_id` bigint NULL DEFAULT NULL COMMENT '点位ID' AFTER `cruise_plan_id`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_2` ADD PRIMARY KEY (`id`) USING BTREE; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_2` DROP COLUMN `is_deleted`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_2` DROP COLUMN `create_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_2` DROP COLUMN `update_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_2` DROP COLUMN `create_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_2` DROP COLUMN `update_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_3` ADD COLUMN `id` bigint NOT NULL COMMENT '自增id' FIRST; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_3` ADD COLUMN `stop_flag` tinyint NULL DEFAULT NULL COMMENT '是否停车 0-否 1-是' AFTER `sort_order`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_3` MODIFY COLUMN `point_id` bigint NULL DEFAULT NULL COMMENT '点位ID' AFTER `cruise_plan_id`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_3` ADD PRIMARY KEY (`id`) USING BTREE; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_3` DROP COLUMN `is_deleted`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_3` DROP COLUMN `create_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_3` DROP COLUMN `update_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_3` DROP COLUMN `create_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_3` DROP COLUMN `update_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_4` ADD COLUMN `id` bigint NOT NULL COMMENT '自增id' FIRST; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_4` ADD COLUMN `stop_flag` tinyint NULL DEFAULT NULL COMMENT '是否停车 0-否 1-是' AFTER `sort_order`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_4` MODIFY COLUMN `point_id` bigint NULL DEFAULT NULL COMMENT '点位ID' AFTER `cruise_plan_id`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_4` ADD PRIMARY KEY (`id`) USING BTREE; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_4` DROP COLUMN `is_deleted`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_4` DROP COLUMN `create_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_4` DROP COLUMN `update_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_4` DROP COLUMN `create_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_4` DROP COLUMN `update_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_5` ADD COLUMN `id` bigint NOT NULL COMMENT '自增id' FIRST; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_5` ADD COLUMN `stop_flag` tinyint NULL DEFAULT NULL COMMENT '是否停车 0-否 1-是' AFTER `sort_order`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_5` MODIFY COLUMN `point_id` bigint NULL DEFAULT NULL COMMENT '点位ID' AFTER `cruise_plan_id`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_5` ADD PRIMARY KEY (`id`) USING BTREE; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_5` DROP COLUMN `is_deleted`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_5` DROP COLUMN `create_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_5` DROP COLUMN `update_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_5` DROP COLUMN `create_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_5` DROP COLUMN `update_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_6` ADD COLUMN `id` bigint NOT NULL COMMENT '自增id' FIRST; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_6` ADD COLUMN `stop_flag` tinyint NULL DEFAULT NULL COMMENT '是否停车 0-否 1-是' AFTER `sort_order`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_6` MODIFY COLUMN `point_id` bigint NULL DEFAULT NULL COMMENT '点位ID' AFTER `cruise_plan_id`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_6` ADD PRIMARY KEY (`id`) USING BTREE; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_6` DROP COLUMN `is_deleted`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_6` DROP COLUMN `create_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_6` DROP COLUMN `update_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_6` DROP COLUMN `create_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_6` DROP COLUMN `update_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_7` ADD COLUMN `id` bigint NOT NULL COMMENT '自增id' FIRST; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_7` ADD COLUMN `stop_flag` tinyint NULL DEFAULT NULL COMMENT '是否停车 0-否 1-是' AFTER `sort_order`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_7` MODIFY COLUMN `point_id` bigint NULL DEFAULT NULL COMMENT '点位ID' AFTER `cruise_plan_id`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_7` ADD PRIMARY KEY (`id`) USING BTREE; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_7` DROP COLUMN `is_deleted`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_7` DROP COLUMN `create_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_7` DROP COLUMN `update_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_7` DROP COLUMN `create_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_7` DROP COLUMN `update_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_8` ADD COLUMN `id` bigint NOT NULL COMMENT '自增id' FIRST; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_8` ADD COLUMN `stop_flag` tinyint NULL DEFAULT NULL COMMENT '是否停车 0-否 1-是' AFTER `sort_order`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_8` MODIFY COLUMN `point_id` bigint NULL DEFAULT NULL COMMENT '点位ID' AFTER `cruise_plan_id`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_8` ADD PRIMARY KEY (`id`) USING BTREE; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_8` DROP COLUMN `is_deleted`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_8` DROP COLUMN `create_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_8` DROP COLUMN `update_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_8` DROP COLUMN `create_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_8` DROP COLUMN `update_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_9` ADD COLUMN `id` bigint NOT NULL COMMENT '自增id' FIRST; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_9` ADD COLUMN `stop_flag` tinyint NULL DEFAULT NULL COMMENT '是否停车 0-否 1-是' AFTER `sort_order`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_9` MODIFY COLUMN `point_id` bigint NULL DEFAULT NULL COMMENT '点位ID' AFTER `cruise_plan_id`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_9` ADD PRIMARY KEY (`id`) USING BTREE; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_9` DROP COLUMN `is_deleted`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_9` DROP COLUMN `create_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_9` DROP COLUMN `update_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_9` DROP COLUMN `create_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_point_9` DROP COLUMN `update_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_vehicle` DROP PRIMARY KEY; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_vehicle` DROP COLUMN `id`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_vehicle` DROP COLUMN `is_deleted`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_vehicle` DROP COLUMN `create_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_vehicle` DROP COLUMN `update_time`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_vehicle` DROP COLUMN `create_by`; ALTER TABLE `xpeng_operation`.`xp_cruise_plan_vehicle` DROP COLUMN `update_by`; ALTER TABLE `xpeng_operation`.`xp_notification` MODIFY COLUMN `notification_type` int NOT NULL DEFAULT 1 COMMENT '通知类型 1=新增事故,2=事故即将超时提示,3=事故超时提示,4=排班信息变动,5=事故状态变更,6=新增任务,7=任务过期提示,8=版本更新提示,9=变更协议政策内容,10=变更协议内容并需用户授权,11=打卡成功通知' AFTER `id`; ALTER TABLE `xpeng_operation`.`xp_point` MODIFY COLUMN `parking_point` int NULL DEFAULT 0 COMMENT '0否 1是 收车点位' AFTER `charge_point`; ALTER TABLE `xpeng_operation`.`xp_region` ADD COLUMN `china` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `lon`; ALTER TABLE `xpeng_operation`.`xp_trading_strategy_city` MODIFY COLUMN `id` bigint NOT NULL FIRST; ALTER TABLE `xpeng_operation`.`xp_trading_strategy_city` MODIFY COLUMN `id` bigint NOT NULL AUTO_INCREMENT; SET FOREIGN_KEY_CHECKS=1; sql/增量sql/xprt_order.sql
New file @@ -0,0 +1,207 @@ SET FOREIGN_KEY_CHECKS=0; ALTER TABLE `xpeng_order`.`xp_cruise_order` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_0` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_0` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_1` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_1` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_2` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_2` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_3` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_3` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_4` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_4` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_5` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_5` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_6` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_6` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_7` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_7` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_8` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_8` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_9` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_9` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_10` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_10` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_11` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_11` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_12` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_12` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_13` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_13` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_14` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_14` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_15` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_15` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_16` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_16` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_17` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_17` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_18` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_18` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_19` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_19` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_20` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_20` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_21` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_21` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_22` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_22` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_23` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_23` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_24` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_24` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_25` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_25` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_26` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_26` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_27` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_27` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_28` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_28` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_29` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_29` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_30` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_30` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_31` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_31` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_32` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_32` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_33` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_33` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_34` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_34` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_35` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_35` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_36` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_36` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_37` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_37` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_38` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_38` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_39` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_39` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_40` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_40` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_41` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_41` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_42` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_42` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_43` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_43` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_44` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_44` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_45` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_45` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_46` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_46` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_47` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_47` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_48` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_48` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; ALTER TABLE `xpeng_order`.`xp_cruise_order_49` ADD COLUMN `fleet_id` bigint NULL DEFAULT NULL COMMENT '车队ID' AFTER `vehicle_id`; ALTER TABLE `xpeng_order`.`xp_cruise_order_49` ADD COLUMN `order_reverse` int NULL DEFAULT NULL COMMENT '1正方 2反方' AFTER `update_by`; SET FOREIGN_KEY_CHECKS=1; xp-robotaxi-api/src/main/java/com/xiaopeng/api/dto/automaticPilot/PushOrderDto.java
@@ -1,5 +1,6 @@ package com.xiaopeng.api.dto.automaticPilot; import com.xiaopeng.api.vo.OrderType; import com.xiaopeng.api.vo.automaticPilot.proto.down.cloudOrderOperation.OrderOperationType; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -19,6 +20,23 @@ @ApiModelProperty("订单id") private String orderId; @ApiModelProperty("起点经度") private Double startLongitude; @ApiModelProperty("起点纬度") private Double startLatitude; @ApiModelProperty("终点经度") private Double endLongitude; @ApiModelProperty("终点纬度") private Double endLatitude; @ApiModelProperty("订单类型") private String orderType; @ApiModelProperty("行程阶段(1=行程接驾,2=行程送达)") private Integer stage; /** * 订单操作类型 xp-robotaxi-automatic-pilot-boot/src/main/java/com/xiaopeng/automaticPilot/controller/OrderMissionController.java
@@ -76,6 +76,45 @@ }else { taskBuilder.setTaskType(OrderType.ORDER_TYPE_ROBOTAXI); } //构建点位信息 Waypoint.Builder pointBuilder = Waypoint.newBuilder(); //巡游订单 if(dto.getOrderType().equals(com.xiaopeng.api.vo.OrderType.CRUISE_ORDER)){ pointBuilder.setPointType(PointType.CRUISE_END_POINT); pointBuilder.setSequence(1); //构建终点坐标 GeoPoint.Builder geoPointBuilder = GeoPoint.newBuilder(); geoPointBuilder.setLatitude(dto.getEndLatitude()); geoPointBuilder.setLongitude(dto.getEndLatitude()); // geoPointBuilder.setPoiName("Start Point"); // GeoPoint might not have poi_name pointBuilder.setPoint(geoPointBuilder.build()); }else{ //用户订单 if(dto.getStage() == 1){ //开往上车点 pointBuilder.setPointType(PointType.START_POINT); pointBuilder.setActionType(ActionType.PICK_UP); pointBuilder.setSequence(1); //构建起点坐标 GeoPoint.Builder geoPointBuilder = GeoPoint.newBuilder(); geoPointBuilder.setLatitude(dto.getStartLatitude()); geoPointBuilder.setLongitude(dto.getStartLongitude()); // geoPointBuilder.setPoiName("Start Point"); // GeoPoint might not have poi_name pointBuilder.setPoint(geoPointBuilder.build()); }else{ //开往终点 pointBuilder.setPointType(PointType.END_POINT); pointBuilder.setActionType(ActionType.PICK_UP); pointBuilder.setSequence(1); //构建起点坐标 GeoPoint.Builder geoPointBuilder = GeoPoint.newBuilder(); geoPointBuilder.setLatitude(dto.getEndLatitude()); geoPointBuilder.setLongitude(dto.getEndLatitude()); // geoPointBuilder.setPoiName("Start Point"); // GeoPoint might not have poi_name pointBuilder.setPoint(geoPointBuilder.build()); } } taskBuilder.addPoints(pointBuilder); RtTaskList.Builder taskListBuilder = RtTaskList.newBuilder(); taskListBuilder.addTasks(taskBuilder.build()); @@ -169,6 +208,7 @@ if(StringUtils.isNotEmpty(code)){ xpOrder = xpOrderClient.queryOrderByOrderNo(code).getData(); } orderId = xpOrder.getId(); OrderRouteAndFareDto dto = new OrderRouteAndFareDto(); dto.setOrderId(orderId); LonLatDto origin = new LonLatDto(); @@ -233,16 +273,18 @@ if(StringUtils.isNotEmpty(code)){ xpOrder = xpOrderClient.queryOrderByOrderNo(code).getData(); } orderId = xpOrder.getId(); String vin = xpVehicle.getVehicleVin(); Long appUserId = xpOrder.getAppUserId(); Object cacheObject = redisService.getCacheObject("ORDER_NAVIGATION_START_DATA:" + xpOrder.getAppUserId()); RouteVo routeVo = JSON.parseObject(cacheObject.toString(), RouteVo.class); ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 1, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<>(1000)); Long finalOrderId = orderId; threadPoolExecutor.execute(() -> { //等待10秒后开始执行车子位移 try { Thread.sleep(10000); Thread.sleep(1000); } catch (InterruptedException e) { throw new RuntimeException(e); } @@ -268,12 +310,12 @@ vehiclePosition.setSpeed(50F); vehiclePosition.setCurrentElectricity(80); vehiclePosition.setMileageRange(300f); vehiclePosition.setOrderId(orderId); vehiclePosition.setOrderId(finalOrderId); mongoTemplate.save(vehiclePosition); //调用推送服务接口 if (null != orderId) { if (null != finalOrderId) { PushOrderRouteDTO dto = new PushOrderRouteDTO(); dto.setOrderId(orderId); dto.setOrderId(finalOrderId); dto.setRouteType(1); dto.setLongitude(longitude); dto.setLatitude(latitude); @@ -294,7 +336,7 @@ //构建推送消息 Map<String, Object> params = new HashMap<>(); Map<String, Object> content = new HashMap<>(); content.put("orderId", orderId.toString()); content.put("orderId", finalOrderId.toString()); content.put("status", 4); params.put("type", PushMessageTypeEnum.ORDER_STATUS.getDesc()); params.put("content", JSONObject.toJSONString(content)); @@ -307,7 +349,7 @@ if (R.isError(stringR)) { log.error("推送消息失败:{}", stringR.getMsg()); } xpOrderClient.updateOrderStatus(orderId, OrderStatusEnum.PICK_UP_GUESTS.getCode()); xpOrderClient.updateOrderStatus(finalOrderId, OrderStatusEnum.PICK_UP_GUESTS.getCode()); }); } @@ -328,6 +370,7 @@ if(StringUtils.isNotEmpty(code)){ xpOrder = xpOrderClient.queryOrderByOrderNo(code).getData(); } orderId = xpOrder.getId(); //构建推送消息 Map<String, Object> params = new HashMap<>(); Map<String, Object> content = new HashMap<>(); @@ -397,16 +440,18 @@ if(StringUtils.isNotEmpty(code)){ xpOrder = xpOrderClient.queryOrderByOrderNo(code).getData(); } orderId = xpOrder.getId(); String vin = xpVehicle.getVehicleVin(); Long appUserId = xpOrder.getAppUserId(); Object cacheObject = redisService.getCacheObject("ORDER_NAVIGATION_END_DATA:" + xpOrder.getAppUserId()); RouteVo routeVo = JSON.parseObject(cacheObject.toString(), RouteVo.class); ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 1, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<>(1000)); Long finalOrderId = orderId; threadPoolExecutor.execute(() -> { //等待10秒后开始执行车子位移 try { Thread.sleep(10000); Thread.sleep(1000); } catch (InterruptedException e) { throw new RuntimeException(e); } @@ -432,12 +477,12 @@ vehiclePosition.setSpeed(50F); vehiclePosition.setCurrentElectricity(80); vehiclePosition.setMileageRange(300f); vehiclePosition.setOrderId(orderId); vehiclePosition.setOrderId(finalOrderId); mongoTemplate.save(vehiclePosition); //调用推送服务接口 if (null != orderId) { if (null != finalOrderId) { PushOrderRouteDTO dto = new PushOrderRouteDTO(); dto.setOrderId(orderId); dto.setOrderId(finalOrderId); dto.setRouteType(1); dto.setLongitude(longitude); dto.setLatitude(latitude); @@ -448,7 +493,7 @@ //存储历史轨迹 OrderTrajectoryVo orderTrajectory = new OrderTrajectoryVo(); orderTrajectory.setOrderId(orderId); orderTrajectory.setOrderId(finalOrderId); orderTrajectory.setLocation(longitude + "," + latitude); orderTrajectory.setDirection(dto.getDirection()); orderTrajectory.setSpeed(0D); @@ -468,7 +513,7 @@ //构建推送消息 Map<String, Object> params = new HashMap<>(); Map<String, Object> content = new HashMap<>(); content.put("orderId", orderId.toString()); content.put("orderId", finalOrderId.toString()); content.put("status", 7); params.put("type", PushMessageTypeEnum.ORDER_STATUS.getDesc()); params.put("content", JSONObject.toJSONString(content)); @@ -481,7 +526,7 @@ if (R.isError(stringR)) { log.error("推送消息失败:{}", stringR.getMsg()); } xpOrderClient.updateOrderStatus(orderId, OrderStatusEnum.SEE_OFF_GUESTS.getCode()); xpOrderClient.updateOrderStatus(finalOrderId, OrderStatusEnum.SEE_OFF_GUESTS.getCode()); }); } xp-robotaxi-automatic-pilot-boot/src/main/java/com/xiaopeng/automaticPilot/service/KafkaConsumerService.java
@@ -28,11 +28,6 @@ import com.xiaopeng.api.vo.OrderType; import com.xiaopeng.api.vo.SystemEventType; import com.xiaopeng.api.vo.automaticPilot.VehiclePosition; import com.xiaopeng.api.vo.automaticPilot.proto.down.cloudOrderOperation.ActionType; import com.xiaopeng.api.vo.automaticPilot.proto.down.cloudOrderOperation.OrderOperationType; import com.xiaopeng.api.vo.automaticPilot.proto.down.cloudOrderOperation.PointType; import com.xiaopeng.api.vo.automaticPilot.proto.up.navigationDeviationEvent.NavigationDeviationMessage; import com.xiaopeng.api.vo.automaticPilot.proto.up.orderStateUpdateEvent.OrderStatusInfoEvent; import com.xiaopeng.api.vo.automaticPilot.protobuf.*; import com.xiaopeng.api.vo.automaticPilot.protobuf.AbnormalReason; import com.xiaopeng.api.vo.automaticPilot.protobuf.GearLevel; @@ -877,24 +872,25 @@ lastXpCruiseOrder.setId("XU"+ IdUtil.fastUUID()); lastXpCruiseOrder.setStatus(1); xpCruiseOrderClient.addCruiseOrder(lastXpCruiseOrder); // 获取点位id Long endPointId = xpCruiseOrder.getEndPointId(); // 获取点位信息 获取点位是否需要停车 // xpCruisePlanClient.getPlanPointInfo(endPointId); //构建下发XPU订单报文数据 RtTask.Builder taskBuilder = RtTask.newBuilder(); taskBuilder.setOrderId(lastXpCruiseOrder.getId()); taskBuilder.setTaskId("MISSION_"+ IdUtil.fastUUID()); taskBuilder.setTaskType(com.xiaopeng.api.vo.automaticPilot.protobuf.OrderType.ORDER_TYPE_CRUISE); //构建点位信息 Waypoint.Builder pointBuilder = Waypoint.newBuilder(); pointBuilder.setPointType(PointType.CRUISE_END_POINT); pointBuilder.setSequence(1); //构建终点坐标 GeoPoint.Builder geoPointBuilder = GeoPoint.newBuilder(); geoPointBuilder.setLatitude(lastXpCruiseOrder.getEndLat()); geoPointBuilder.setLongitude(lastXpCruiseOrder.getEndLat()); // geoPointBuilder.setPoiName("Start Point"); // GeoPoint might not have poi_name pointBuilder.setPoint(geoPointBuilder.build()); taskBuilder.addPoints(pointBuilder); RtTask task = taskBuilder.build(); RtTaskList taskList = RtTaskList.newBuilder().addTasks(task).build(); SnowFlake snowFlake = new SnowFlake(0, 0); snowFlake.withStartTimestamp(1420041600000L); @@ -929,10 +925,23 @@ if(cruisePoint!=null){ xpCruiseOrderClient.addCruiseOrder(cruisePoint.getData()); RtTask.Builder taskBuilder = RtTask.newBuilder(); //TODO 设置目标地点信息 taskBuilder.setOrderId(newXpCruiseOrder.getId()); taskBuilder.setTaskId("MISSION_"+ IdUtil.fastUUID()); taskBuilder.setTaskType(com.xiaopeng.api.vo.automaticPilot.protobuf.OrderType.ORDER_TYPE_CRUISE); //构建点位信息 Waypoint.Builder pointBuilder = Waypoint.newBuilder(); pointBuilder.setPointType(PointType.CRUISE_END_POINT); pointBuilder.setSequence(1); //构建终点坐标 GeoPoint.Builder geoPointBuilder = GeoPoint.newBuilder(); geoPointBuilder.setLatitude(cruisePoint.getData().getEndLat()); geoPointBuilder.setLongitude(cruisePoint.getData().getEndLat()); // geoPointBuilder.setPoiName("Start Point"); // GeoPoint might not have poi_name pointBuilder.setPoint(geoPointBuilder.build()); taskBuilder.addPoints(pointBuilder); RtTaskList.Builder taskListBuilder = RtTaskList.newBuilder(); taskListBuilder.addTasks(taskBuilder.build()); xp-robotaxi-itinerary-boot/src/main/java/com/xiaopeng/itinerary/service/impl/XpPricingServiceImpl.java
@@ -416,8 +416,6 @@ @Override public String saveOrder(XpOrderDto dto, String uid) { // 是否在运营区域时间内 XpElectronicFenceArea xpElectronicFenceArea = xpElectronicFenceAreaMapper.selectById(dto.getXpElectronicFenceAreaId()); XpElectronicFence xpElectronicFence = xpElectronicFenceMapper.selectById(xpElectronicFenceArea.getElectronicId()); xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/controller/XpVehicleOperationsController.java
@@ -9,6 +9,7 @@ import com.xiaopeng.api.feignClient.vehicleConvoy.XpVehicleClient; import com.xiaopeng.api.model.order.XpCruiseOrder; import com.xiaopeng.api.model.vehicleConvoy.XpVehicle; import com.xiaopeng.api.vo.OrderType; import com.xiaopeng.api.vo.automaticPilot.VehiclePosition; import com.xiaopeng.common.core.domain.R; import com.xiaopeng.common.core.web.page.PageInfo; @@ -79,7 +80,16 @@ R<XpCruiseOrder> newCruiseOrder = xpCruisePlanClient.getNewCruiseOrder(new NewCruiseOrderDto(xpVehicle.getId(),xpVehicle.getVehicleVin(),xpVehicle.getFleetId())); if(newCruiseOrder.getData()!=null){ // 下发命令 orderMissionClient.pushOrder(new PushOrderDto(xpVehicle.getVehicleVin(),newCruiseOrder.getData().getId(),null)); PushOrderDto pushOrderDto = new PushOrderDto(); pushOrderDto.setVin(xpVehicle.getVehicleVin()); pushOrderDto.setOrderId(newCruiseOrder.getData().getId()); pushOrderDto.setStartLatitude(newCruiseOrder.getData().getStartLat()); pushOrderDto.setStartLongitude(newCruiseOrder.getData().getStartLon()); pushOrderDto.setEndLatitude(newCruiseOrder.getData().getEndLat()); pushOrderDto.setEndLongitude(newCruiseOrder.getData().getEndLon()); pushOrderDto.setOrderType(OrderType.CRUISE_ORDER); pushOrderDto.setStage(2); orderMissionClient.pushOrder(pushOrderDto); } @@ -110,7 +120,16 @@ if(returnCruisePoint!=null){ xpCruiseOrderClient.addCruiseOrder(returnCruisePoint.getData()); // 下发命令 orderMissionClient.pushOrder(new PushOrderDto( xpCruiseOrder.getVehicleVin(),xpCruiseOrder.getId(),null)); PushOrderDto pushOrderDto = new PushOrderDto(); pushOrderDto.setVin(returnCruisePoint.getData().getVehicleVin()); pushOrderDto.setOrderId(returnCruisePoint.getData().getId()); pushOrderDto.setStartLatitude(returnCruisePoint.getData().getStartLat()); pushOrderDto.setStartLongitude(returnCruisePoint.getData().getStartLon()); pushOrderDto.setEndLatitude(returnCruisePoint.getData().getEndLat()); pushOrderDto.setEndLongitude(returnCruisePoint.getData().getEndLon()); pushOrderDto.setOrderType(OrderType.CRUISE_ORDER); pushOrderDto.setStage(2); orderMissionClient.pushOrder(pushOrderDto); } } xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/schedule/VehicleCollectionScheduleTask.java
@@ -10,6 +10,7 @@ import com.xiaopeng.api.model.maintenance.XpTaskRule; import com.xiaopeng.api.model.order.XpCruiseOrder; import com.xiaopeng.api.model.vehicleConvoy.XpVehicle; import com.xiaopeng.api.vo.OrderType; import com.xiaopeng.api.vo.automaticPilot.VehiclePosition; import com.xiaopeng.common.core.domain.R; import com.xiaopeng.maintenance.mapper.XpTaskRuleMapper; @@ -231,7 +232,16 @@ if(returnCruisePoint!=null){ xpCruiseOrderClient.addCruiseOrder(returnCruisePoint.getData()); // 下发命令 orderMissionClient.pushOrder(new PushOrderDto( xpCruiseOrder.getVehicleVin(),xpCruiseOrder.getId(),null)); PushOrderDto pushOrderDto = new PushOrderDto(); pushOrderDto.setVin(returnCruisePoint.getData().getVehicleVin()); pushOrderDto.setOrderId(returnCruisePoint.getData().getId()); pushOrderDto.setStartLatitude(returnCruisePoint.getData().getStartLat()); pushOrderDto.setStartLongitude(returnCruisePoint.getData().getStartLon()); pushOrderDto.setEndLatitude(returnCruisePoint.getData().getEndLat()); pushOrderDto.setEndLongitude(returnCruisePoint.getData().getEndLon()); pushOrderDto.setOrderType(OrderType.CRUISE_ORDER); pushOrderDto.setStage(2); orderMissionClient.pushOrder(pushOrderDto); } log.info("向车辆[{}]发送收车指令", xpVehicle.getPlateNumber()); } xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/utils/TaskOrderUtil.java
@@ -16,6 +16,7 @@ import com.xiaopeng.api.model.operation.XpTradingStrategy; import com.xiaopeng.api.model.order.XpOrder; import com.xiaopeng.api.model.vehicleConvoy.XpVehicle; import com.xiaopeng.api.vo.OrderType; import com.xiaopeng.api.vo.automaticPilot.VehiclePosition; import com.xiaopeng.api.vo.operation.RouteVo; import com.xiaopeng.api.vo.operation.VehiclePositionVo; @@ -773,11 +774,16 @@ // 关闭巡游单子 xpCruiseOrderClient.updateCruiseOrder(vehiclePosition.getVehicleVin()); // 下发命令 PushOrderDto pushOrderDto = new PushOrderDto(); pushOrderDto.setOrderId(xpOrder.getId().toString()); pushOrderDto.setVin(vehiclePosition.getVehicleVin()); pushOrderDto.setOrderId(xpOrder.getId().toString()); pushOrderDto.setStartLatitude(xpOrder.getStartLat()); pushOrderDto.setStartLongitude(xpOrder.getStartLon()); pushOrderDto.setEndLatitude(xpOrder.getEndLat()); pushOrderDto.setEndLongitude(xpOrder.getEndLon()); pushOrderDto.setOrderType(OrderType.USER_ORDER); pushOrderDto.setStage(1); // 调用推送服务 orderId + carVin orderMissionClient.pushOrder(pushOrderDto); @@ -810,11 +816,15 @@ // 关闭巡游单子 xpCruiseOrderClient.updateCruiseOrder(vehicleId1.getVehicleVin()); PushOrderDto pushOrderDto = new PushOrderDto(); pushOrderDto.setOrderId(xpOrder.getId().toString()); pushOrderDto.setVin(vehiclePosition.getVin()); pushOrderDto.setOrderId(xpOrder.getId().toString()); pushOrderDto.setStartLatitude(xpOrder.getStartLat()); pushOrderDto.setStartLongitude(xpOrder.getStartLon()); pushOrderDto.setEndLatitude(xpOrder.getEndLat()); pushOrderDto.setEndLongitude(xpOrder.getEndLon()); pushOrderDto.setOrderType(OrderType.USER_ORDER); pushOrderDto.setStage(1); // 调用推送服务 orderId + carVin orderMissionClient.pushOrder(pushOrderDto); redisService.popFirstElement(quoteName); @@ -885,10 +895,17 @@ xpCruiseOrderClient.updateCruiseOrder(vehicleId1.getVehicleVin()); PushOrderDto pushOrderDto = new PushOrderDto(); pushOrderDto.setOrderId(data.getId().toString()); pushOrderDto.setVin(vehiclePosition.getVin()); pushOrderDto.setOrderId(data.getId().toString()); pushOrderDto.setStartLatitude(data.getStartLat()); pushOrderDto.setStartLongitude(data.getStartLon()); pushOrderDto.setEndLatitude(data.getEndLat()); pushOrderDto.setEndLongitude(data.getEndLon()); pushOrderDto.setOrderType(OrderType.USER_ORDER); pushOrderDto.setStage(1); // 调用推送服务 orderId + carVin orderMissionClient.pushOrder(pushOrderDto); } catch (Exception e) { } finally { xp-robotaxi-order-boot/src/main/java/com/xiaopeng/order/controller/XpCruiseOrderController.java
@@ -5,6 +5,7 @@ import com.xiaopeng.api.dto.order.AddCruiseMissionDto; import com.xiaopeng.api.feignClient.automaticPilot.OrderMissionClient; import com.xiaopeng.api.model.order.XpCruiseOrder; import com.xiaopeng.api.vo.OrderType; import com.xiaopeng.common.core.domain.R; import com.xiaopeng.common.core.web.page.PageInfo; import com.xiaopeng.order.service.IXpCruiseOrderService; @@ -90,6 +91,13 @@ PushOrderDto pushOrderDto = new PushOrderDto(); pushOrderDto.setVin(order.getVehicleVin()); pushOrderDto.setOrderId(order.getId()); pushOrderDto.setStartLatitude(order.getStartLat()); pushOrderDto.setStartLongitude(order.getStartLon()); pushOrderDto.setEndLatitude(order.getEndLat()); pushOrderDto.setEndLongitude(order.getEndLon()); pushOrderDto.setOrderType(OrderType.CRUISE_ORDER); pushOrderDto.setStage(2); // 调用推送服务 orderId + carVin orderMissionClient.pushOrder(pushOrderDto); return R.ok(order.getId()); xp-robotaxi-order-boot/src/main/java/com/xiaopeng/order/job/jobs/AddCruiseMissionJob.java
@@ -4,6 +4,7 @@ import com.xiaopeng.api.model.order.XpCruiseOrder; import com.xiaopeng.api.model.order.XpOrder; import com.xiaopeng.api.model.vehicleConvoy.XpVehicle; import com.xiaopeng.api.vo.OrderType; import com.xiaopeng.common.core.domain.R; import com.xiaopeng.order.job.base.AbstractJob; import lombok.extern.slf4j.Slf4j; @@ -33,7 +34,17 @@ XpCruiseOrder xpCruiseOrder = xpCruiseOrderService.getById(orderId); R<XpVehicle> xpVehicleR = xpVehicleClient.queryById(xpCruiseOrder.getVehicleId()); if(xpVehicleR.getData().getState()==0){ orderMissionClient.pushOrder(new PushOrderDto(xpCruiseOrder.getVehicleVin(),xpCruiseOrder.getId(),null)); PushOrderDto pushOrderDto = new PushOrderDto(); pushOrderDto.setVin(xpCruiseOrder.getVehicleVin()); pushOrderDto.setOrderId(xpCruiseOrder.getId()); pushOrderDto.setStartLatitude(xpCruiseOrder.getStartLat()); pushOrderDto.setStartLongitude(xpCruiseOrder.getStartLon()); pushOrderDto.setEndLatitude(xpCruiseOrder.getEndLat()); pushOrderDto.setEndLongitude(xpCruiseOrder.getEndLon()); pushOrderDto.setOrderType(OrderType.CRUISE_ORDER); pushOrderDto.setStage(2); // 调用推送服务 orderId + carVin orderMissionClient.pushOrder(pushOrderDto); } }catch(Exception e){ e.printStackTrace(); xp-robotaxi-order-boot/src/main/java/com/xiaopeng/order/service/impl/XpOrderServiceImpl.java
@@ -709,10 +709,19 @@ } // 11.2 下发订单到新车辆 PushOrderDto pushDto = new PushOrderDto(); pushDto.setOrderId(order.getId().toString()); pushDto.setVin(newVehicle.getVehicleVin()); orderMissionClient.pushOrder(pushDto); PushOrderDto pushOrderDto = new PushOrderDto(); pushOrderDto.setVin(newVehicle.getVehicleVin()); pushOrderDto.setOrderId(order.getId().toString()); pushOrderDto.setStartLatitude(order.getStartLat()); pushOrderDto.setStartLongitude(order.getStartLon()); pushOrderDto.setEndLatitude(order.getEndLat()); pushOrderDto.setEndLongitude(order.getEndLon()); pushOrderDto.setOrderType(OrderType.USER_ORDER); pushOrderDto.setStage(1); // 调用推送服务 orderId + carVin orderMissionClient.pushOrder(pushOrderDto); log.info("已下发订单到新车辆,订单ID: {}, VIN: {}", orderId, newVehicle.getVehicleVin()); // 11.3 更新新车辆状态为已接单 @@ -796,10 +805,17 @@ xpCruiseOrderMapper.insert(returnOrder); // 下发巡游订单到原车辆 PushOrderDto pushDto = new PushOrderDto(); pushDto.setVin(oldVehicle.getVehicleVin()); pushDto.setOrderId(returnOrder.getId()); orderMissionClient.pushOrder(pushDto); PushOrderDto pushOrderDto = new PushOrderDto(); pushOrderDto.setVin(oldVehicle.getVehicleVin()); pushOrderDto.setOrderId(returnOrder.getId().toString()); pushOrderDto.setStartLatitude(returnOrder.getStartLat()); pushOrderDto.setStartLongitude(returnOrder.getStartLon()); pushOrderDto.setEndLatitude(returnOrder.getEndLat()); pushOrderDto.setEndLongitude(returnOrder.getEndLon()); pushOrderDto.setOrderType(OrderType.CRUISE_ORDER); pushOrderDto.setStage(2); // 调用推送服务 orderId + carVin orderMissionClient.pushOrder(pushOrderDto); log.info("为原车辆创建返程巡游订单成功,订单ID: {}, 车辆ID: {}", returnOrder.getId(), oldVehicle.getId());