2025-01-27 23:59:02 -- == sync_order start == 2025-01-27 23:59:02 -- start:2025-01-27,end:2025-01-27 2025-01-27 23:59:02 -- == select june1.order_list == SELECT l.mid,m.uid,l.category_name,l.category_id,l.ordernumber,l.location,l.payway,l.delivery_way,l.pay_status,l.process_status,l.company_number,l.company_title,l.invoice_status,l.etd,l.web_discount,l.class_discount,l.member_discount,l.web_gift,l.freight,l.entity_discount,l.totalprice,l.orderzip,l.orderaddresscity,l.orderaddressarea,l.recipientzip,l.recipientaddresscity,l.recipientaddressarea,l.totalprice_after-web_discount-class_discount-member_discount-entity_discount as totalprice_after,l.create_date FROM `order_list` l LEFT JOIN member_list m on l.mid = m.id WHERE l.create_date like '2025-01-27%' OR l.modify_date like '2025-01-27%'; 2025-01-27 23:59:04 -- == sync omo_order_list == 2025-01-27 23:59:04 -- == inster lake.omo_order_list == INSERT INTO `omo_order_list` (mid,userId,channel,category_name,category_id,ordernumber,location,payway,delivery_way,pay_status,process_status,company_number,company_title,invoice_status,etd,web_discount,class_discount,member_discount,web_gift,freight,entity_discount,totalprice,orderzip,orderaddresscity,orderaddressarea,recipientzip,recipientaddresscity,recipientaddressarea,totalprice_after,create_date,lunar_date) VALUES ('417965','454218',1,'','','O25010987457','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','100','2050','333','桃園市','龜山區','333','桃園市','龜山區','2100','2025-01-27 03:20:40','2024-12-28') 2025-01-27 23:59:04 -- == inster lake.omo_order_list == INSERT INTO `omo_order_list` (mid,userId,channel,category_name,category_id,ordernumber,location,payway,delivery_way,pay_status,process_status,company_number,company_title,invoice_status,etd,web_discount,class_discount,member_discount,web_gift,freight,entity_discount,totalprice,orderzip,orderaddresscity,orderaddressarea,recipientzip,recipientaddresscity,recipientaddressarea,totalprice_after,create_date,lunar_date) VALUES ('418253','454502',1,'','','O25010987520','1','2','1','0','0','','','0','0000-00-00','0','0','0','','150','30','480','436','台中市','清水區','708','台南市','安平區','600','2025-01-27 10:28:44','2024-12-28') 2025-01-27 23:59:04 -- == inster lake.omo_order_list == INSERT INTO `omo_order_list` (mid,userId,channel,category_name,category_id,ordernumber,location,payway,delivery_way,pay_status,process_status,company_number,company_title,invoice_status,etd,web_discount,class_discount,member_discount,web_gift,freight,entity_discount,totalprice,orderzip,orderaddresscity,orderaddressarea,recipientzip,recipientaddresscity,recipientaddressarea,totalprice_after,create_date,lunar_date) VALUES ('414807','450820',1,'','','O25010987684','1','2','1','0','0','','','0','0000-00-00','0','0','0','','150','30','480','320','桃園市','中壢區','320','桃園市','中壢區','600','2025-01-27 12:08:44','2024-12-28') 2025-01-27 23:59:04 -- == inster lake.omo_order_list == INSERT INTO `omo_order_list` (mid,userId,channel,category_name,category_id,ordernumber,location,payway,delivery_way,pay_status,process_status,company_number,company_title,invoice_status,etd,web_discount,class_discount,member_discount,web_gift,freight,entity_discount,totalprice,orderzip,orderaddresscity,orderaddressarea,recipientzip,recipientaddresscity,recipientaddressarea,totalprice_after,create_date,lunar_date) VALUES ('238083','269322',1,'','','O25010987713','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','100','1000','303','新竹縣','湖口鄉','303','新竹縣','湖口鄉','1050','2025-01-27 16:18:09','2024-12-28') 2025-01-27 23:59:04 -- == inster lake.omo_order_list == INSERT INTO `omo_order_list` (mid,userId,channel,category_name,category_id,ordernumber,location,payway,delivery_way,pay_status,process_status,company_number,company_title,invoice_status,etd,web_discount,class_discount,member_discount,web_gift,freight,entity_discount,totalprice,orderzip,orderaddresscity,orderaddressarea,recipientzip,recipientaddresscity,recipientaddressarea,totalprice_after,create_date,lunar_date) VALUES ('417400','453664',1,'','','O25010987880','1','1','1','1','1','','','0','0000-00-00','0','0','0','','150','30','1200','807','高雄市','三民區','807','高雄市','三民區','1320','2025-01-27 17:51:37','2024-12-28') 2025-01-27 23:59:04 -- == inster lake.omo_order_list == INSERT INTO `omo_order_list` (mid,userId,channel,category_name,category_id,ordernumber,location,payway,delivery_way,pay_status,process_status,company_number,company_title,invoice_status,etd,web_discount,class_discount,member_discount,web_gift,freight,entity_discount,totalprice,orderzip,orderaddresscity,orderaddressarea,recipientzip,recipientaddresscity,recipientaddressarea,totalprice_after,create_date,lunar_date) VALUES ('418266','454513',1,'','','O25010987918','1','1','1','1','1','','','0','0000-00-00','1073','0','0','','0','30','21460','112','台北市','北投區','112','台北市','北投區','20357','2025-01-27 21:57:37','2024-12-28') 2025-01-27 23:59:04 -- == inster lake.omo_order_list == INSERT INTO `omo_order_list` (mid,userId,channel,category_name,category_id,ordernumber,location,payway,delivery_way,pay_status,process_status,company_number,company_title,invoice_status,etd,web_discount,class_discount,member_discount,web_gift,freight,entity_discount,totalprice,orderzip,orderaddresscity,orderaddressarea,recipientzip,recipientaddresscity,recipientaddressarea,totalprice_after,create_date,lunar_date) VALUES ('418267','454514',1,'','','O25010988028','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','30','1440','320','桃園市','中壢區','320','桃園市','中壢區','1560','2025-01-27 23:12:36','2024-12-28') 2025-01-27 23:59:04 -- == inster lake.omo_order_list == INSERT INTO `omo_order_list` (mid,userId,channel,category_name,category_id,ordernumber,location,payway,delivery_way,pay_status,process_status,company_number,company_title,invoice_status,etd,web_discount,class_discount,member_discount,web_gift,freight,entity_discount,totalprice,orderzip,orderaddresscity,orderaddressarea,recipientzip,recipientaddresscity,recipientaddressarea,totalprice_after,create_date,lunar_date) VALUES ('418261','454508',1,'','','O25010988141','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','30','1440','402','台中市','南區','971','花蓮縣','新城鄉','1560','2025-01-27 23:16:13','2024-12-28') 2025-01-27 23:59:04 -- == sync_order end == 2025-01-27 23:59:04 -- == sync_order_detail start == 2025-01-27 23:59:04 -- start:2025-01-27,end:2025-01-27 2025-01-27 23:59:04 -- == sync omo_order_detail == 2025-01-27 23:59:04 -- == SELECT order_detail == SELECT * from order_detail WHERE create_date like '2025-01-27%' OR modify_date like '2025-01-27%' 2025-01-27 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010987457' and product_code = '13656' 2025-01-27 23:59:06 -- == INSERT lake.omo_order_detail == INSERT INTO `omo_order_detail`(`id`,`channel`, `order_id`, `firm_id`, `ordernumber`, `product_name`, `product_code`, `product_sn`, `product_spec`, `invoice_name`, `listprice`, `sellingprice`, `isadd`, `isbaby`, `addprice`, `is_exclude`, `freight_type`, `commission`, `amount`, `total_price`, `etd`, `create_date`, `modify_date`, `points_use_id`, `item_status`, `lunar_date`) VALUES (null, 1,'268892','8','O25010987457','8結蛋捲【紅提袋裝】','13656','13656','40入原味蛋捲','組合-40入原味+紅提袋','290','290','0','0','0','0','1','0.0','2','580','2025-02-03','2025-01-27 03:20:40','2025-01-27 23:59:06',null,'1','2024-12-28') 2025-01-27 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268892',`firm_id` = '8',`ordernumber` = 'O25010987457', `product_name` = '8結蛋捲【紅提袋裝】',`product_code` = '13656',`product_sn` = '13656',`product_spec` = '40入原味蛋捲',`invoice_name` = '組合-40入原味+紅提袋',`listprice` = '290',`sellingprice` = '290',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '2',`total_price` = '580',`etd` = '2025-02-03',`create_date` = '2025-01-27 03:20:40',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-28'where ordernumber = 'O25010987457' and product_code = '13656' 2025-01-27 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010987457' and product_code = '13660' 2025-01-27 23:59:06 -- == INSERT lake.omo_order_detail == INSERT INTO `omo_order_detail`(`id`,`channel`, `order_id`, `firm_id`, `ordernumber`, `product_name`, `product_code`, `product_sn`, `product_spec`, `invoice_name`, `listprice`, `sellingprice`, `isadd`, `isbaby`, `addprice`, `is_exclude`, `freight_type`, `commission`, `amount`, `total_price`, `etd`, `create_date`, `modify_date`, `points_use_id`, `item_status`, `lunar_date`) VALUES (null, 1,'268892','8','O25010987457','8結蛋捲【紅提袋裝】','13660','13656','40入巧克力蛋捲','組合-40入巧克力+紅提袋','290','290','0','0','0','0','1','0.0','1','290','2025-02-03','2025-01-27 03:20:40','2025-01-27 23:59:06',null,'1','2024-12-28') 2025-01-27 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268892',`firm_id` = '8',`ordernumber` = 'O25010987457', `product_name` = '8結蛋捲【紅提袋裝】',`product_code` = '13660',`product_sn` = '13656',`product_spec` = '40入巧克力蛋捲',`invoice_name` = '組合-40入巧克力+紅提袋',`listprice` = '290',`sellingprice` = '290',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '290',`etd` = '2025-02-03',`create_date` = '2025-01-27 03:20:40',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-28'where ordernumber = 'O25010987457' and product_code = '13660' 2025-01-27 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010987457' and product_code = 'DG010275-01' 2025-01-27 23:59:06 -- == INSERT lake.omo_order_detail == INSERT INTO `omo_order_detail`(`id`,`channel`, `order_id`, `firm_id`, `ordernumber`, `product_name`, `product_code`, `product_sn`, `product_spec`, `invoice_name`, `listprice`, `sellingprice`, `isadd`, `isbaby`, `addprice`, `is_exclude`, `freight_type`, `commission`, `amount`, `total_price`, `etd`, `create_date`, `modify_date`, `points_use_id`, `item_status`, `lunar_date`) VALUES (null, 1,'268892','8','O25010987457','【小王子聯名】玫瑰星球8結提盒','DG010275-01','DG010275','原味','提盒-小王子(NEW)-40入原味','300','300','0','0','0','0','1','0.0','2','600','2025-02-03','2025-01-27 03:20:40','2025-01-27 23:59:06',null,'1','2024-12-28') 2025-01-27 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268892',`firm_id` = '8',`ordernumber` = 'O25010987457', `product_name` = '【小王子聯名】玫瑰星球8結提盒',`product_code` = 'DG010275-01',`product_sn` = 'DG010275',`product_spec` = '原味',`invoice_name` = '提盒-小王子(NEW)-40入原味',`listprice` = '300',`sellingprice` = '300',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '2',`total_price` = '600',`etd` = '2025-02-03',`create_date` = '2025-01-27 03:20:40',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-28'where ordernumber = 'O25010987457' and product_code = 'DG010275-01' 2025-01-27 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010987457' and product_code = 'DG010275-05' 2025-01-27 23:59:06 -- == INSERT lake.omo_order_detail == INSERT INTO `omo_order_detail`(`id`,`channel`, `order_id`, `firm_id`, `ordernumber`, `product_name`, `product_code`, `product_sn`, `product_spec`, `invoice_name`, `listprice`, `sellingprice`, `isadd`, `isbaby`, `addprice`, `is_exclude`, `freight_type`, `commission`, `amount`, `total_price`, `etd`, `create_date`, `modify_date`, `points_use_id`, `item_status`, `lunar_date`) VALUES (null, 1,'268892','8','O25010987457','【小王子聯名】玫瑰星球8結提盒','DG010275-05','DG010275','巧克力','提盒-小王子(NEW)-40入巧克力','300','300','0','0','0','0','1','0.0','1','300','2025-02-03','2025-01-27 03:20:40','2025-01-27 23:59:06',null,'1','2024-12-28') 2025-01-27 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268892',`firm_id` = '8',`ordernumber` = 'O25010987457', `product_name` = '【小王子聯名】玫瑰星球8結提盒',`product_code` = 'DG010275-05',`product_sn` = 'DG010275',`product_spec` = '巧克力',`invoice_name` = '提盒-小王子(NEW)-40入巧克力',`listprice` = '300',`sellingprice` = '300',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '300',`etd` = '2025-02-03',`create_date` = '2025-01-27 03:20:40',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-28'where ordernumber = 'O25010987457' and product_code = 'DG010275-05' 2025-01-27 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010987457' and product_code = 'DG010101-05' 2025-01-27 23:59:06 -- == INSERT lake.omo_order_detail == INSERT INTO `omo_order_detail`(`id`,`channel`, `order_id`, `firm_id`, `ordernumber`, `product_name`, `product_code`, `product_sn`, `product_spec`, `invoice_name`, `listprice`, `sellingprice`, `isadd`, `isbaby`, `addprice`, `is_exclude`, `freight_type`, `commission`, `amount`, `total_price`, `etd`, `create_date`, `modify_date`, `points_use_id`, `item_status`, `lunar_date`) VALUES (null, 1,'268892','8','O25010987457','濃情巧克力蛋捲','DG010101-05','DG010101','巧克力','40入巧克力蛋捲','320','280','0','0','0','0','1','280.0','1','280','2025-02-03','2025-01-27 03:20:40','2025-01-27 23:59:06',null,'1','2024-12-28') 2025-01-27 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268892',`firm_id` = '8',`ordernumber` = 'O25010987457', `product_name` = '濃情巧克力蛋捲',`product_code` = 'DG010101-05',`product_sn` = 'DG010101',`product_spec` = '巧克力',`invoice_name` = '40入巧克力蛋捲',`listprice` = '320',`sellingprice` = '280',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '280.0',`amount` = '1',`total_price` = '280',`etd` = '2025-02-03',`create_date` = '2025-01-27 03:20:40',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-28'where ordernumber = 'O25010987457' and product_code = 'DG010101-05' 2025-01-27 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010987520' and product_code = 'DG010312-09' 2025-01-27 23:59:06 -- == INSERT lake.omo_order_detail == INSERT INTO `omo_order_detail`(`id`,`channel`, `order_id`, `firm_id`, `ordernumber`, `product_name`, `product_code`, `product_sn`, `product_spec`, `invoice_name`, `listprice`, `sellingprice`, `isadd`, `isbaby`, `addprice`, `is_exclude`, `freight_type`, `commission`, `amount`, `total_price`, `etd`, `create_date`, `modify_date`, `points_use_id`, `item_status`, `lunar_date`) VALUES (null, 1,'268893','8','O25010987520','【芝麻+巧克力】金8結禮盒','DG010312-09','DG010312','金8結盒','禮盒-金8結【芝麻+巧克力】','590','480','0','0','0','0','1','480.0','1','480','2025-02-03','2025-01-27 10:28:44','2025-01-27 23:59:06',null,'1','2024-12-28') 2025-01-27 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268893',`firm_id` = '8',`ordernumber` = 'O25010987520', `product_name` = '【芝麻+巧克力】金8結禮盒',`product_code` = 'DG010312-09',`product_sn` = 'DG010312',`product_spec` = '金8結盒',`invoice_name` = '禮盒-金8結【芝麻+巧克力】',`listprice` = '590',`sellingprice` = '480',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '480.0',`amount` = '1',`total_price` = '480',`etd` = '2025-02-03',`create_date` = '2025-01-27 10:28:44',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-28'where ordernumber = 'O25010987520' and product_code = 'DG010312-09' 2025-01-27 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010987684' and product_code = 'DG010312-09' 2025-01-27 23:59:06 -- == INSERT lake.omo_order_detail == INSERT INTO `omo_order_detail`(`id`,`channel`, `order_id`, `firm_id`, `ordernumber`, `product_name`, `product_code`, `product_sn`, `product_spec`, `invoice_name`, `listprice`, `sellingprice`, `isadd`, `isbaby`, `addprice`, `is_exclude`, `freight_type`, `commission`, `amount`, `total_price`, `etd`, `create_date`, `modify_date`, `points_use_id`, `item_status`, `lunar_date`) VALUES (null, 1,'268894','8','O25010987684','【芝麻+巧克力】金8結禮盒','DG010312-09','DG010312','金8結盒','禮盒-金8結【芝麻+巧克力】','590','480','0','0','0','0','1','480.0','1','480','2025-02-03','2025-01-27 12:08:44','2025-01-27 23:59:06',null,'1','2024-12-28') 2025-01-27 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268894',`firm_id` = '8',`ordernumber` = 'O25010987684', `product_name` = '【芝麻+巧克力】金8結禮盒',`product_code` = 'DG010312-09',`product_sn` = 'DG010312',`product_spec` = '金8結盒',`invoice_name` = '禮盒-金8結【芝麻+巧克力】',`listprice` = '590',`sellingprice` = '480',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '480.0',`amount` = '1',`total_price` = '480',`etd` = '2025-02-03',`create_date` = '2025-01-27 12:08:44',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-28'where ordernumber = 'O25010987684' and product_code = 'DG010312-09' 2025-01-27 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010987713' and product_code = 'DG0103223-02' 2025-01-27 23:59:06 -- == INSERT lake.omo_order_detail == INSERT INTO `omo_order_detail`(`id`,`channel`, `order_id`, `firm_id`, `ordernumber`, `product_name`, `product_code`, `product_sn`, `product_spec`, `invoice_name`, `listprice`, `sellingprice`, `isadd`, `isbaby`, `addprice`, `is_exclude`, `freight_type`, `commission`, `amount`, `total_price`, `etd`, `create_date`, `modify_date`, `points_use_id`, `item_status`, `lunar_date`) VALUES (null, 1,'268895','8','O25010987713','【小王子聯名】玫瑰星球8結禮盒','DG0103223-02','DG0103223','原味+芝麻','禮盒-小王子(NEW)【原味+芝麻】','500','500','0','0','0','0','1','0.0','1','500','2025-02-03','2025-01-27 16:18:09','2025-01-27 23:59:06',null,'1','2024-12-28') 2025-01-27 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268895',`firm_id` = '8',`ordernumber` = 'O25010987713', `product_name` = '【小王子聯名】玫瑰星球8結禮盒',`product_code` = 'DG0103223-02',`product_sn` = 'DG0103223',`product_spec` = '原味+芝麻',`invoice_name` = '禮盒-小王子(NEW)【原味+芝麻】',`listprice` = '500',`sellingprice` = '500',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '500',`etd` = '2025-02-03',`create_date` = '2025-01-27 16:18:09',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-28'where ordernumber = 'O25010987713' and product_code = 'DG0103223-02' 2025-01-27 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010987713' and product_code = 'DG0103188-02' 2025-01-27 23:59:06 -- == INSERT lake.omo_order_detail == INSERT INTO `omo_order_detail`(`id`,`channel`, `order_id`, `firm_id`, `ordernumber`, `product_name`, `product_code`, `product_sn`, `product_spec`, `invoice_name`, `listprice`, `sellingprice`, `isadd`, `isbaby`, `addprice`, `is_exclude`, `freight_type`, `commission`, `amount`, `total_price`, `etd`, `create_date`, `modify_date`, `points_use_id`, `item_status`, `lunar_date`) VALUES (null, 1,'268895','8','O25010987713','【SNOOPY 聯名】美好探尋-8結禮盒','DG0103188-02','DG0103188','芝麻蛋捲,芝麻蛋捲','禮盒-SNOOPY(橘)【芝麻+芝麻】','500','500','0','0','0','0','1','0.0','1','500','2025-02-03','2025-01-27 16:18:09','2025-01-27 23:59:06',null,'1','2024-12-28') 2025-01-27 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268895',`firm_id` = '8',`ordernumber` = 'O25010987713', `product_name` = '【SNOOPY 聯名】美好探尋-8結禮盒',`product_code` = 'DG0103188-02',`product_sn` = 'DG0103188',`product_spec` = '芝麻蛋捲,芝麻蛋捲',`invoice_name` = '禮盒-SNOOPY(橘)【芝麻+芝麻】',`listprice` = '500',`sellingprice` = '500',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '500',`etd` = '2025-02-03',`create_date` = '2025-01-27 16:18:09',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-28'where ordernumber = 'O25010987713' and product_code = 'DG0103188-02' 2025-01-27 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010987880' and product_code = 'DG010265-05' 2025-01-27 23:59:06 -- == INSERT lake.omo_order_detail == INSERT INTO `omo_order_detail`(`id`,`channel`, `order_id`, `firm_id`, `ordernumber`, `product_name`, `product_code`, `product_sn`, `product_spec`, `invoice_name`, `listprice`, `sellingprice`, `isadd`, `isbaby`, `addprice`, `is_exclude`, `freight_type`, `commission`, `amount`, `total_price`, `etd`, `create_date`, `modify_date`, `points_use_id`, `item_status`, `lunar_date`) VALUES (null, 1,'268896','8','O25010987880','【SNOOPY 聯名】獨特心意-8結提盒','DG010265-05','DG010265','巧克力','提盒-SNOOPY(粉)-40入巧克力','300','300','0','0','0','0','1','0.0','3','900','2025-02-03','2025-01-27 17:51:37','2025-01-27 23:59:06',null,'1','2024-12-28') 2025-01-27 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268896',`firm_id` = '8',`ordernumber` = 'O25010987880', `product_name` = '【SNOOPY 聯名】獨特心意-8結提盒',`product_code` = 'DG010265-05',`product_sn` = 'DG010265',`product_spec` = '巧克力',`invoice_name` = '提盒-SNOOPY(粉)-40入巧克力',`listprice` = '300',`sellingprice` = '300',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '3',`total_price` = '900',`etd` = '2025-02-03',`create_date` = '2025-01-27 17:51:37',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-28'where ordernumber = 'O25010987880' and product_code = 'DG010265-05' 2025-01-27 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010987880' and product_code = 'DG010265-03' 2025-01-27 23:59:06 -- == INSERT lake.omo_order_detail == INSERT INTO `omo_order_detail`(`id`,`channel`, `order_id`, `firm_id`, `ordernumber`, `product_name`, `product_code`, `product_sn`, `product_spec`, `invoice_name`, `listprice`, `sellingprice`, `isadd`, `isbaby`, `addprice`, `is_exclude`, `freight_type`, `commission`, `amount`, `total_price`, `etd`, `create_date`, `modify_date`, `points_use_id`, `item_status`, `lunar_date`) VALUES (null, 1,'268896','8','O25010987880','【SNOOPY 聯名】獨特心意-8結提盒','DG010265-03','DG010265','咖啡','提盒-SNOOPY(粉)-40入咖啡','300','300','0','0','0','0','1','0.0','1','300','2025-02-03','2025-01-27 17:51:37','2025-01-27 23:59:06',null,'1','2024-12-28') 2025-01-27 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268896',`firm_id` = '8',`ordernumber` = 'O25010987880', `product_name` = '【SNOOPY 聯名】獨特心意-8結提盒',`product_code` = 'DG010265-03',`product_sn` = 'DG010265',`product_spec` = '咖啡',`invoice_name` = '提盒-SNOOPY(粉)-40入咖啡',`listprice` = '300',`sellingprice` = '300',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '300',`etd` = '2025-02-03',`create_date` = '2025-01-27 17:51:37',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-28'where ordernumber = 'O25010987880' and product_code = 'DG010265-03' 2025-01-27 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010987918' and product_code = '13656' 2025-01-27 23:59:06 -- == INSERT lake.omo_order_detail == INSERT INTO `omo_order_detail`(`id`,`channel`, `order_id`, `firm_id`, `ordernumber`, `product_name`, `product_code`, `product_sn`, `product_spec`, `invoice_name`, `listprice`, `sellingprice`, `isadd`, `isbaby`, `addprice`, `is_exclude`, `freight_type`, `commission`, `amount`, `total_price`, `etd`, `create_date`, `modify_date`, `points_use_id`, `item_status`, `lunar_date`) VALUES (null, 1,'268897','8','O25010987918','8結蛋捲【紅提袋裝】','13656','13656','40入原味蛋捲','組合-40入原味+紅提袋','290','290','0','0','0','0','1','0.0','74','21460','2025-02-04','2025-01-27 21:57:37','2025-01-27 23:59:06',null,'1','2024-12-28') 2025-01-27 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268897',`firm_id` = '8',`ordernumber` = 'O25010987918', `product_name` = '8結蛋捲【紅提袋裝】',`product_code` = '13656',`product_sn` = '13656',`product_spec` = '40入原味蛋捲',`invoice_name` = '組合-40入原味+紅提袋',`listprice` = '290',`sellingprice` = '290',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '74',`total_price` = '21460',`etd` = '2025-02-04',`create_date` = '2025-01-27 21:57:37',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-28'where ordernumber = 'O25010987918' and product_code = '13656' 2025-01-27 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010988028' and product_code = 'DG010312-03' 2025-01-27 23:59:06 -- == INSERT lake.omo_order_detail == INSERT INTO `omo_order_detail`(`id`,`channel`, `order_id`, `firm_id`, `ordernumber`, `product_name`, `product_code`, `product_sn`, `product_spec`, `invoice_name`, `listprice`, `sellingprice`, `isadd`, `isbaby`, `addprice`, `is_exclude`, `freight_type`, `commission`, `amount`, `total_price`, `etd`, `create_date`, `modify_date`, `points_use_id`, `item_status`, `lunar_date`) VALUES (null, 1,'268898','8','O25010988028','【原味+咖啡】金8結禮盒','DG010312-03','DG010312','金8結盒','禮盒-金8結【原味+咖啡】','590','480','0','0','0','0','1','480.0','1','480','2025-02-06','2025-01-27 23:12:36','2025-01-27 23:59:06',null,'1','2024-12-28') 2025-01-27 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268898',`firm_id` = '8',`ordernumber` = 'O25010988028', `product_name` = '【原味+咖啡】金8結禮盒',`product_code` = 'DG010312-03',`product_sn` = 'DG010312',`product_spec` = '金8結盒',`invoice_name` = '禮盒-金8結【原味+咖啡】',`listprice` = '590',`sellingprice` = '480',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '480.0',`amount` = '1',`total_price` = '480',`etd` = '2025-02-06',`create_date` = '2025-01-27 23:12:36',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-28'where ordernumber = 'O25010988028' and product_code = 'DG010312-03' 2025-01-27 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010988028' and product_code = 'DG010312-05' 2025-01-27 23:59:06 -- == INSERT lake.omo_order_detail == INSERT INTO `omo_order_detail`(`id`,`channel`, `order_id`, `firm_id`, `ordernumber`, `product_name`, `product_code`, `product_sn`, `product_spec`, `invoice_name`, `listprice`, `sellingprice`, `isadd`, `isbaby`, `addprice`, `is_exclude`, `freight_type`, `commission`, `amount`, `total_price`, `etd`, `create_date`, `modify_date`, `points_use_id`, `item_status`, `lunar_date`) VALUES (null, 1,'268898','8','O25010988028','【原味+巧克力】金8結禮盒','DG010312-05','DG010312','金8結盒','禮盒-金8結【原味+巧克力】','590','480','0','0','0','0','1','480.0','1','480','2025-02-06','2025-01-27 23:12:36','2025-01-27 23:59:06',null,'1','2024-12-28') 2025-01-27 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268898',`firm_id` = '8',`ordernumber` = 'O25010988028', `product_name` = '【原味+巧克力】金8結禮盒',`product_code` = 'DG010312-05',`product_sn` = 'DG010312',`product_spec` = '金8結盒',`invoice_name` = '禮盒-金8結【原味+巧克力】',`listprice` = '590',`sellingprice` = '480',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '480.0',`amount` = '1',`total_price` = '480',`etd` = '2025-02-06',`create_date` = '2025-01-27 23:12:36',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-28'where ordernumber = 'O25010988028' and product_code = 'DG010312-05' 2025-01-27 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010988028' and product_code = 'DG010312-09' 2025-01-27 23:59:06 -- == INSERT lake.omo_order_detail == INSERT INTO `omo_order_detail`(`id`,`channel`, `order_id`, `firm_id`, `ordernumber`, `product_name`, `product_code`, `product_sn`, `product_spec`, `invoice_name`, `listprice`, `sellingprice`, `isadd`, `isbaby`, `addprice`, `is_exclude`, `freight_type`, `commission`, `amount`, `total_price`, `etd`, `create_date`, `modify_date`, `points_use_id`, `item_status`, `lunar_date`) VALUES (null, 1,'268898','8','O25010988028','【芝麻+巧克力】金8結禮盒','DG010312-09','DG010312','金8結盒','禮盒-金8結【芝麻+巧克力】','590','480','0','0','0','0','1','480.0','1','480','2025-02-06','2025-01-27 23:12:36','2025-01-27 23:59:06',null,'1','2024-12-28') 2025-01-27 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268898',`firm_id` = '8',`ordernumber` = 'O25010988028', `product_name` = '【芝麻+巧克力】金8結禮盒',`product_code` = 'DG010312-09',`product_sn` = 'DG010312',`product_spec` = '金8結盒',`invoice_name` = '禮盒-金8結【芝麻+巧克力】',`listprice` = '590',`sellingprice` = '480',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '480.0',`amount` = '1',`total_price` = '480',`etd` = '2025-02-06',`create_date` = '2025-01-27 23:12:36',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-28'where ordernumber = 'O25010988028' and product_code = 'DG010312-09' 2025-01-27 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010988141' and product_code = 'DG010312-09' 2025-01-27 23:59:06 -- == INSERT lake.omo_order_detail == INSERT INTO `omo_order_detail`(`id`,`channel`, `order_id`, `firm_id`, `ordernumber`, `product_name`, `product_code`, `product_sn`, `product_spec`, `invoice_name`, `listprice`, `sellingprice`, `isadd`, `isbaby`, `addprice`, `is_exclude`, `freight_type`, `commission`, `amount`, `total_price`, `etd`, `create_date`, `modify_date`, `points_use_id`, `item_status`, `lunar_date`) VALUES (null, 1,'268899','8','O25010988141','【芝麻+巧克力】金8結禮盒','DG010312-09','DG010312','金8結盒','禮盒-金8結【芝麻+巧克力】','590','480','0','0','0','0','1','480.0','3','1440','2025-02-03','2025-01-27 23:16:13','2025-01-27 23:59:06',null,'1','2024-12-28') 2025-01-27 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268899',`firm_id` = '8',`ordernumber` = 'O25010988141', `product_name` = '【芝麻+巧克力】金8結禮盒',`product_code` = 'DG010312-09',`product_sn` = 'DG010312',`product_spec` = '金8結盒',`invoice_name` = '禮盒-金8結【芝麻+巧克力】',`listprice` = '590',`sellingprice` = '480',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '480.0',`amount` = '3',`total_price` = '1440',`etd` = '2025-02-03',`create_date` = '2025-01-27 23:16:13',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-28'where ordernumber = 'O25010988141' and product_code = 'DG010312-09' 2025-01-27 23:59:06 -- == sync_order_detail end == 2025-01-27 23:59:06 -- == sync_order start == 2025-01-27 23:59:06 -- start:2025-01-27,end:2025-01-27 2025-01-27 23:59:06 -- == select june1.order_list == select l.mid,m.uid,l.category_name,l.category_id,l.ordernumber,l.location,l.payway,l.delivery_way,l.pay_status,l.process_status,l.company_number,l.company_title,l.invoice_status,l.etd,l.web_discount,l.class_discount,l.member_discount,l.web_gift,l.freight,l.entity_discount,l.totalprice,l.orderzip,l.orderaddresscity,l.orderaddressarea,l.recipientzip,l.recipientaddresscity,l.recipientaddressarea,l.totalprice_after-web_discount-class_discount-member_discount-entity_discount as totalprice_after,l.create_date FROM `order_list` l LEFT JOIN member_list m on l.mid = m.id WHERE l.create_date like '2025-01-27%' OR l.modify_date like '2025-01-27%'; 2025-01-27 23:59:07 -- == sync omo_order_list == 2025-01-27 23:59:07 -- == sync_order end == 2025-01-27 23:59:07 -- == sync_order_detail start == 2025-01-27 23:59:07 -- start:2025-01-27,end:2025-01-27 2025-01-27 23:59:07 -- == sync omo_order_detail == 2025-01-27 23:59:07 -- == SELECT order_detail == SELECT * from order_detail WHERE create_date like '2025-01-27%' OR modify_date like '2025-01-27%' 2025-01-27 23:59:07 -- == sync_order_detail end == 2025-01-27 23:59:07 -- == select one.order_list == SELECT o.code,o.pay_status,o.order_status,o.user_id,o.pay_method_id,o.activity_freight_id,o.freight_fee,o.items_total,o.total,DATE(o.shipped_at) as shipped_at,o.created_at as create_date, inv.company_number,inv.company_title,inv.invoice_status, cust.zipcode,cust.county,cust.district, rec.zipcode as recipientzip,rec.county as recipientaddresscity,rec.district as recipientaddressarea, af.type as freight_type FROM `orders` o LEFT JOIN systemlead_invoices inv on o.id = inv.order_id LEFT JOIN order_customers cust on o.id = cust.order_id LEFT JOIN order_receivers rec on o.id = rec.order_id LEFT JOIN activity_freights af on o.activity_freight_id = af.id WHERE (DATE(o.created_at) = '2025-01-27' OR o.updated_at = '2025-01-27') and o.deleted_at is null 2025-01-27 23:59:07 -- == sync_order_detail start == 2025-01-27 23:59:07 -- start:2025-01-27,end:2025-01-27 2025-01-27 23:59:07 -- step1: SELECT id,sku,combinations_product_spec_id FROM `product_specs` 2025-01-27 23:59:08 -- step2: SELECT * FROM `product_specs` WHERE combinations_product_spec_id is not null 2025-01-27 23:59:12 -- step3: SELECT id,product_code,product_sn FROM `omo_order_detail` WHERE `channel` = 6 and product_code like '%,%' and create_date LIKE '2025-01-27%';