74 lines
3.8 KiB
Plaintext
74 lines
3.8 KiB
Plaintext
{"status":200,"message":"\u6210\u529f","data":{"sellerOrderResultDOS":[],"showVerify":false,"page":{"currentPage":2,"pageSize":10,"totalCount":0,"noMore":false},"canVerify":false,"canBatchDelivery":false,"canAsyncExportOrder":true},"success":true,"traceId":"EL2AgICAsoKsChjdAyDS_sLB8TEowpfGgQ8="}
|
||
|
||
ALTER TABLE `travel`.`orders`
|
||
MODIFY COLUMN `appointment_status` tinyint NOT NULL DEFAULT 0 COMMENT '是否已预约(0-未预约,1-已预约未处理,2-已预约已处理)' AFTER `next_remind_time`;
|
||
|
||
ALTER TABLE `admins`
|
||
ADD COLUMN `type` tinyint NOT NULL DEFAULT 0 COMMENT '类型(0-管理员,1-客服,2-主播,3-中控)' AFTER `route_type`;
|
||
|
||
ALTER TABLE `orders`
|
||
ADD COLUMN `live_room_works` int NOT NULL DEFAULT 0 COMMENT '排班表id' AFTER `appointment_status`;
|
||
|
||
|
||
|
||
2024/10/13
|
||
ALTER TABLE `orders`
|
||
ADD COLUMN `is_refunded` tinyint NOT NULL DEFAULT 0 COMMENT '是否已退款(0-否,1-是)' AFTER `update_time`;
|
||
|
||
update
|
||
`orders`
|
||
set is_refunded = 1
|
||
WHERE
|
||
`os` IN ( '1', '7' ) and order_status = 5;
|
||
|
||
update
|
||
`orders`
|
||
set is_refunded = 1
|
||
WHERE
|
||
(`os` IN ( '3', '5' ) and order_status = 4)
|
||
|
||
|
||
2024/10/19
|
||
ALTER TABLE `products`
|
||
ADD COLUMN `type` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0-未设置,1-境内,2-境外' AFTER `os`,
|
||
ADD COLUMN `day` int NOT NULL DEFAULT 0 COMMENT '天' AFTER `type`,
|
||
ADD COLUMN `night` int NOT NULL DEFAULT 0 COMMENT '晚' AFTER `day`,
|
||
ADD COLUMN `trip_info` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '' COMMENT '详细行程' AFTER `night`;
|
||
|
||
ALTER TABLE `orders`
|
||
ADD COLUMN `is_apply_appointment` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否已申请预约' AFTER `is_refunded`
|
||
|
||
// 班期表
|
||
CREATE TABLE `product_schedules` (
|
||
`id` int NOT NULL AUTO_INCREMENT,
|
||
`day` varchar(10) NOT NULL DEFAULT '' COMMENT '日期',
|
||
`num` int(10) DEFAULT 0 COMMENT '可预约人数',
|
||
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
|
||
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||
PRIMARY KEY (`id`)
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='商品班期表';
|
||
|
||
// 客服表
|
||
ALTER TABLE `admins`
|
||
ADD COLUMN `wechat` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '微信号' AFTER `type`,
|
||
ADD COLUMN `wechat_pic` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '微信图片' AFTER `wechat`,
|
||
ADD COLUMN `job` tinyint(1) NOT NULL DEFAULT 0 COMMENT '职位' AFTER `wechat_pic`,
|
||
ADD COLUMN `service_promise` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '服务承诺' AFTER `job`;
|
||
|
||
// 预约表
|
||
CREATE TABLE `order_books` (
|
||
`id` int NOT NULL AUTO_INCREMENT,
|
||
`order_id` int DEFAULT '0' COMMENT '订单号',
|
||
`travel_date` varchar(10) NOT NULL DEFAULT '' COMMENT '出游日期',
|
||
`num` int NOT NULL DEFAULT '0' COMMENT '出游人数',
|
||
`name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '出行人名称',
|
||
`mobile` char(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '联系电话',
|
||
`code_pic` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '券码图片',
|
||
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态(0-未处理,1-已处理)',
|
||
`note` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '备注',
|
||
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
|
||
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||
PRIMARY KEY (`id`)
|
||
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='订单预约表';
|
||
|