Commit 88b5779d by yuanlin

添加sql文件

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@26481 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 555b368d
INSERT INTO `sys_channel_org` VALUES ('2', 'dasouche', '438', '大搜车', '', now(), null, '0', null);--替换为生产环境的orgId
INSERT INTO `sys_dict_data`(`dict_type`, `data_value`, `data_key`, `data_status`, `sort`, `remark`, `create_by`, `create_time`, `update_by`, `update_time`)
VALUES ('sys_order_exception', '有单没车', 'sys_exception_order_no_car', '1', '1', '异常反馈', 'admin', now(), null, null);
INSERT INTO `sys_dict_data`(`dict_type`, `data_value`, `data_key`, `data_status`, `sort`, `remark`, `create_by`, `create_time`, `update_by`, `update_time`)
VALUES ('sys_order_exception', '车辆未做PDI', 'sys_exception_vehicle_no_pdi', '1', '2', '异常反馈', 'admin', now(), null, null);
INSERT INTO `sys_dict_data`(`dict_type`, `data_value`, `data_key`, `data_status`, `sort`, `remark`, `create_by`, `create_time`, `update_by`, `update_time`)
VALUES ('sys_order_exception', '车辆状态异常', 'sys_exception_vehicle_status', '1', '3', '异常反馈', 'admin', now(), null, null);
INSERT INTO `sys_dict_data`(`dict_type`, `data_value`, `data_key`, `data_status`, `sort`, `remark`, `create_by`, `create_time`, `update_by`, `update_time`)
VALUES ('sys_order_exception', '恶劣天气', 'sys_exception_bad_weather', '1', '4', '异常反馈', 'admin', now(), null, null);
INSERT INTO `sys_dict_data`(`dict_type`, `data_value`, `data_key`, `data_status`, `sort`, `remark`, `create_by`, `create_time`, `update_by`, `update_time`)
VALUES ('sys_order_exception', '其他', 'sys_exception_other', '1', '5', '异常反馈', 'admin', now(), null, null);
INSERT INTO `sys_dict_type`( `name`, `dict_type`, `dict_status`, `remark`, `create_by`, `create_time`, `update_by`, `update_time`)
VALUES ( '异常反馈代号', 'sys_order_exception', 1, '异常反馈代号说明', 0,now(), NULL, NULL);
--dict_type
CREATE TABLE `sys_order_exception` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`order_sn` varchar(50) DEFAULT NULL COMMENT '订单号',
`work_order_no` varchar(64) NOT NULL COMMENT '第三方工单号',
`dict_key` varchar(30) NOT NULL COMMENT '异常情况代号',
`remark` varchar(255) NOT NULL COMMENT '备注',
`feedback_status` tinyint(4) NOT NULL COMMENT '订单异常反馈状态',
KEY `idx_order_sn` (`order_sn`) USING BTREE,
KEY `idx_work_order_no` (`work_order_no`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='订单异常反馈表';
--installMode
ALTER TABLE `sys_order` ADD `install_mode` varchar(20) NULL DEFAULT '' COMMENT '安装模式 1:在库安装, 2:非在库安装';
--order_type 增加注释 4 审核驳回单
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!