2024-02-10 23:59:03 -- == sync_order start == 2024-02-10 23:59:03 -- start:2024-02-10,end:2024-02-10 2024-02-10 23:59:03 -- == 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 '2024-02-10%' OR l.modify_date like '2024-02-10%'; 2024-02-10 23:59:04 -- == sync omo_order_list == 2024-02-10 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 ('340027','376825',1,'','','O24020017393','1','2','1','0','0','','','0','0000-00-00','0','0','0','','150','30','2760','235','新北市','中和區','235','新北市','中和區','2880','2024-02-10 02:18:58','2024-01-01') 2024-02-10 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 ('340028','376826',1,'','','O24020017481','1','1','1','1','1','','','0','0000-00-00','0','0','0','','150','30','580','733','台南市','東山區','733','台南市','東山區','700','2024-02-10 03:43:20','2024-01-01') 2024-02-10 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 ('323819','360811',1,'','','O24020017558','1','1','1','1','1','','','0','0000-00-00','900','0','0','','0','0','18000','116','台北市','文山區','100','台北市','中正區','17100','2024-02-10 10:42:40','2024-01-01') 2024-02-10 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 ('340042','376840',1,'','','O24020017697','1','2','1','0','0','','','0','0000-00-00','0','0','0','','150','30','2480','821','高雄市','路竹區','821','高雄市','路竹區','2600','2024-02-10 12:27:40','2024-01-01') 2024-02-10 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 ('291077','328519',1,'','','O24020017753','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','0','1440','231','新北市','新店區','231','新北市','新店區','1590','2024-02-10 13:18:40','2024-01-01') 2024-02-10 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 ('339724','376523',1,'','','O24020017851','1','2','1','0','0','45018531','名佳利金屬工業股份有限公司','0','0000-00-00','0','0','0','','0','0','5800','320','桃園市','中壢區','320','桃園市','中壢區','5800','2024-02-10 13:19:56','2024-01-01') 2024-02-10 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 ('340035','376833',1,'','','O24020017944','1','1','1','0','0','','','0','0000-00-00','0','0','0','','150','0','1000','730','台南市','新營區','730','台南市','新營區','1150','2024-02-10 19:48:55','2024-01-01') 2024-02-10 23:59:04 -- == sync_order end == 2024-02-10 23:59:04 -- == sync_order_detail start == 2024-02-10 23:59:04 -- start:2024-02-10,end:2024-02-10 2024-02-10 23:59:04 -- == sync omo_order_detail == 2024-02-10 23:59:04 -- == SELECT order_detail == SELECT * from order_detail WHERE create_date like '2024-02-10%' OR modify_date like '2024-02-10%' 2024-02-10 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020017393' and product_code = 'DG0103168-02' 2024-02-10 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,'228508','8','O24020017393','隨享唐寧茶禮盒','DG0103168-02','DG0103168','原味+芝麻','禮盒-隨享唐寧茶【原味+芝麻】+唐寧早餐茶+茶葉匙','880','880','0','0','0','0','1','0.0','2','1760','2024-02-15','2024-02-10 02:18:58','2024-02-10 23:59:06',null,'1','2024-01-01') 2024-02-10 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228508',`firm_id` = '8',`ordernumber` = 'O24020017393', `product_name` = '隨享唐寧茶禮盒',`product_code` = 'DG0103168-02',`product_sn` = 'DG0103168',`product_spec` = '原味+芝麻',`invoice_name` = '禮盒-隨享唐寧茶【原味+芝麻】+唐寧早餐茶+茶葉匙',`listprice` = '880',`sellingprice` = '880',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '2',`total_price` = '1760',`etd` = '2024-02-15',`create_date` = '2024-02-10 02:18:58',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-01-01'where ordernumber = 'O24020017393' and product_code = 'DG0103168-02' 2024-02-10 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020017393' and product_code = 'DG010327-03' 2024-02-10 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,'228508','8','O24020017393','【小王子聯名】仰望星空8結禮盒 ','DG010327-03','DG010327','原味,咖啡','禮盒-小王子(藍)【原味+咖啡】','500','500','0','0','0','0','1','0.0','1','500','2024-02-15','2024-02-10 02:18:58','2024-02-10 23:59:06',null,'1','2024-01-01') 2024-02-10 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228508',`firm_id` = '8',`ordernumber` = 'O24020017393', `product_name` = '【小王子聯名】仰望星空8結禮盒 ',`product_code` = 'DG010327-03',`product_sn` = 'DG010327',`product_spec` = '原味,咖啡',`invoice_name` = '禮盒-小王子(藍)【原味+咖啡】',`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` = '2024-02-15',`create_date` = '2024-02-10 02:18:58',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-01-01'where ordernumber = 'O24020017393' and product_code = 'DG010327-03' 2024-02-10 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020017393' and product_code = 'DG010327-05' 2024-02-10 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,'228508','8','O24020017393','【小王子聯名】仰望星空8結禮盒 ','DG010327-05','DG010327','原味,巧克力','禮盒-小王子(藍)【原味+巧克力】','500','500','0','0','0','0','1','0.0','1','500','2024-02-15','2024-02-10 02:18:58','2024-02-10 23:59:06',null,'1','2024-01-01') 2024-02-10 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228508',`firm_id` = '8',`ordernumber` = 'O24020017393', `product_name` = '【小王子聯名】仰望星空8結禮盒 ',`product_code` = 'DG010327-05',`product_sn` = 'DG010327',`product_spec` = '原味,巧克力',`invoice_name` = '禮盒-小王子(藍)【原味+巧克力】',`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` = '2024-02-15',`create_date` = '2024-02-10 02:18:58',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-01-01'where ordernumber = 'O24020017393' and product_code = 'DG010327-05' 2024-02-10 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020017481' and product_code = '13656' 2024-02-10 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,'228509','8','O24020017481','8結蛋捲【紅提袋裝】','13656','13656','40入原味蛋捲','組合-40入原味+紅提袋','290','290','0','0','0','0','1','0.0','1','290','2024-02-15','2024-02-10 03:43:20','2024-02-10 23:59:06',null,'1','2024-01-01') 2024-02-10 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228509',`firm_id` = '8',`ordernumber` = 'O24020017481', `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` = '1',`total_price` = '290',`etd` = '2024-02-15',`create_date` = '2024-02-10 03:43:20',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-01-01'where ordernumber = 'O24020017481' and product_code = '13656' 2024-02-10 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020017481' and product_code = '13660' 2024-02-10 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,'228509','8','O24020017481','8結蛋捲【紅提袋裝】','13660','13656','40入巧克力蛋捲','組合-40入巧克力+紅提袋','290','290','0','0','0','0','1','0.0','1','290','2024-02-15','2024-02-10 03:43:20','2024-02-10 23:59:06',null,'1','2024-01-01') 2024-02-10 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228509',`firm_id` = '8',`ordernumber` = 'O24020017481', `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` = '2024-02-15',`create_date` = '2024-02-10 03:43:20',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-01-01'where ordernumber = 'O24020017481' and product_code = '13660' 2024-02-10 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020017558' and product_code = 'DG010225-01' 2024-02-10 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,'228510','8','O24020017558','唐人宮樂8結蛋捲提盒【國立故宮博物院聯名】','DG010225-01','DG010225','40入原味蛋捲','提盒-故宮(人物款)-40入原味','300','300','0','0','0','0','1','0.0','30','9000','2024-02-15','2024-02-10 10:42:40','2024-02-10 23:59:06',null,'1','2024-01-01') 2024-02-10 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228510',`firm_id` = '8',`ordernumber` = 'O24020017558', `product_name` = '唐人宮樂8結蛋捲提盒【國立故宮博物院聯名】',`product_code` = 'DG010225-01',`product_sn` = 'DG010225',`product_spec` = '40入原味蛋捲',`invoice_name` = '提盒-故宮(人物款)-40入原味',`listprice` = '300',`sellingprice` = '300',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '30',`total_price` = '9000',`etd` = '2024-02-15',`create_date` = '2024-02-10 10:42:40',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-01-01'where ordernumber = 'O24020017558' and product_code = 'DG010225-01' 2024-02-10 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020017558' and product_code = 'DG010225-02' 2024-02-10 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,'228510','8','O24020017558','唐人宮樂8結蛋捲提盒【國立故宮博物院聯名】','DG010225-02','DG010225','40入芝麻蛋捲','提盒-故宮(人物款)-40入芝麻','300','300','0','0','0','0','1','0.0','30','9000','2024-02-15','2024-02-10 10:42:40','2024-02-10 23:59:06',null,'1','2024-01-01') 2024-02-10 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228510',`firm_id` = '8',`ordernumber` = 'O24020017558', `product_name` = '唐人宮樂8結蛋捲提盒【國立故宮博物院聯名】',`product_code` = 'DG010225-02',`product_sn` = 'DG010225',`product_spec` = '40入芝麻蛋捲',`invoice_name` = '提盒-故宮(人物款)-40入芝麻',`listprice` = '300',`sellingprice` = '300',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '30',`total_price` = '9000',`etd` = '2024-02-15',`create_date` = '2024-02-10 10:42:40',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-01-01'where ordernumber = 'O24020017558' and product_code = 'DG010225-02' 2024-02-10 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020017697' and product_code = 'DG010523-12' 2024-02-10 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,'228511','8','O24020017697','SNOOPY帶走心意-蛋捲三入組','DG010523-12','DG010523','原味+巧克力+咖啡','組合-32入(原味+咖啡+巧克力)+SNOOPY心意提袋','990','990','0','0','0','1','1','0.0','2','1980','2024-02-15','2024-02-10 12:27:40','2024-02-10 23:59:06',null,'1','2024-01-01') 2024-02-10 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228511',`firm_id` = '8',`ordernumber` = 'O24020017697', `product_name` = 'SNOOPY帶走心意-蛋捲三入組',`product_code` = 'DG010523-12',`product_sn` = 'DG010523',`product_spec` = '原味+巧克力+咖啡',`invoice_name` = '組合-32入(原味+咖啡+巧克力)+SNOOPY心意提袋',`listprice` = '990',`sellingprice` = '990',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '1',`freight_type` = '1',`commission` = '0.0',`amount` = '2',`total_price` = '1980',`etd` = '2024-02-15',`create_date` = '2024-02-10 12:27:40',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-01-01'where ordernumber = 'O24020017697' and product_code = 'DG010523-12' 2024-02-10 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020017697' and product_code = 'DG010327-12' 2024-02-10 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,'228511','8','O24020017697','【小王子聯名】仰望星空8結禮盒 ','DG010327-12','DG010327','巧克力,咖啡','禮盒-小王子(藍)【巧克力+咖啡】','500','500','0','0','0','0','1','0.0','1','500','2024-02-15','2024-02-10 12:27:40','2024-02-10 23:59:06',null,'1','2024-01-01') 2024-02-10 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228511',`firm_id` = '8',`ordernumber` = 'O24020017697', `product_name` = '【小王子聯名】仰望星空8結禮盒 ',`product_code` = 'DG010327-12',`product_sn` = 'DG010327',`product_spec` = '巧克力,咖啡',`invoice_name` = '禮盒-小王子(藍)【巧克力+咖啡】',`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` = '2024-02-15',`create_date` = '2024-02-10 12:27:40',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-01-01'where ordernumber = 'O24020017697' and product_code = 'DG010327-12' 2024-02-10 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020017753' and product_code = 'DG010312-02' 2024-02-10 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,'228512','8','O24020017753','【原味+芝麻】金8結禮盒','DG010312-02','DG010312','金8結盒','禮盒-金8結【原味+芝麻】','590','480','0','0','0','0','1','480.0','1','480','2024-02-16','2024-02-10 13:18:40','2024-02-10 23:59:06',null,'1','2024-01-01') 2024-02-10 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228512',`firm_id` = '8',`ordernumber` = 'O24020017753', `product_name` = '【原味+芝麻】金8結禮盒',`product_code` = 'DG010312-02',`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` = '2024-02-16',`create_date` = '2024-02-10 13:18:40',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-01-01'where ordernumber = 'O24020017753' and product_code = 'DG010312-02' 2024-02-10 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020017753' and product_code = 'DG010312-05' 2024-02-10 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,'228512','8','O24020017753','【原味+巧克力】金8結禮盒','DG010312-05','DG010312','金8結盒','禮盒-金8結【原味+巧克力】','590','480','0','0','0','0','1','480.0','1','480','2024-02-16','2024-02-10 13:18:40','2024-02-10 23:59:06',null,'1','2024-01-01') 2024-02-10 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228512',`firm_id` = '8',`ordernumber` = 'O24020017753', `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` = '2024-02-16',`create_date` = '2024-02-10 13:18:40',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-01-01'where ordernumber = 'O24020017753' and product_code = 'DG010312-05' 2024-02-10 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020017753' and product_code = 'DG010312-12' 2024-02-10 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,'228512','8','O24020017753','【咖啡+巧克力】金8結禮盒','DG010312-12','DG010312','金8結盒','禮盒-金8結【咖啡+巧克力】','590','480','0','0','0','0','1','480.0','1','480','2024-02-16','2024-02-10 13:18:40','2024-02-10 23:59:06',null,'1','2024-01-01') 2024-02-10 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228512',`firm_id` = '8',`ordernumber` = 'O24020017753', `product_name` = '【咖啡+巧克力】金8結禮盒',`product_code` = 'DG010312-12',`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` = '2024-02-16',`create_date` = '2024-02-10 13:18:40',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-01-01'where ordernumber = 'O24020017753' and product_code = 'DG010312-12' 2024-02-10 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020017851' and product_code = '13656' 2024-02-10 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,'228513','8','O24020017851','8結蛋捲【紅提袋裝】','13656','13656','40入原味蛋捲','組合-40入原味+紅提袋','290','290','0','0','0','0','1','0.0','20','5800','2024-02-15','2024-02-10 13:19:56','2024-02-10 23:59:06',null,'1','2024-01-01') 2024-02-10 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228513',`firm_id` = '8',`ordernumber` = 'O24020017851', `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` = '20',`total_price` = '5800',`etd` = '2024-02-15',`create_date` = '2024-02-10 13:19:56',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-01-01'where ordernumber = 'O24020017851' and product_code = '13656' 2024-02-10 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020017944' and product_code = 'DG0103155-05' 2024-02-10 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,'228514','8','O24020017944','【SNOOPY聯名】友你相伴-8結禮盒','DG0103155-05','DG0103155','原味蛋捲,巧克力蛋捲','禮盒-SNOOPY【原味+巧克力】','500','500','0','0','0','0','1','0.0','2','1000','2024-02-15','2024-02-10 19:48:55','2024-02-10 23:59:06',null,'1','2024-01-01') 2024-02-10 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228514',`firm_id` = '8',`ordernumber` = 'O24020017944', `product_name` = '【SNOOPY聯名】友你相伴-8結禮盒',`product_code` = 'DG0103155-05',`product_sn` = 'DG0103155',`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` = '2',`total_price` = '1000',`etd` = '2024-02-15',`create_date` = '2024-02-10 19:48:55',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-01-01'where ordernumber = 'O24020017944' and product_code = 'DG0103155-05' 2024-02-10 23:59:06 -- == sync_order_detail end == 2024-02-10 23:59:06 -- == sync_order start == 2024-02-10 23:59:06 -- start:2024-02-10,end:2024-02-10 2024-02-10 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 '2024-02-10%' OR l.modify_date like '2024-02-10%'; 2024-02-10 23:59:06 -- == sync omo_order_list == 2024-02-10 23:59:06 -- == sync_order end == 2024-02-10 23:59:06 -- == sync_order_detail start == 2024-02-10 23:59:06 -- start:2024-02-10,end:2024-02-10 2024-02-10 23:59:06 -- == sync omo_order_detail == 2024-02-10 23:59:06 -- == SELECT order_detail == SELECT * from order_detail WHERE create_date like '2024-02-10%' OR modify_date like '2024-02-10%' 2024-02-10 23:59:07 -- == sync_order_detail end == 2024-02-10 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) = '2024-02-10' OR o.updated_at = '2024-02-10') and o.deleted_at is null 2024-02-10 23:59:07 -- == sync_order_detail start == 2024-02-10 23:59:07 -- start:2024-02-10,end:2024-02-10 2024-02-10 23:59:07 -- step1: SELECT id,sku,combinations_product_spec_id FROM `product_specs` 2024-02-10 23:59:07 -- step2: SELECT * FROM `product_specs` WHERE combinations_product_spec_id is not null 2024-02-10 23:59:09 -- step3: SELECT id,product_code,product_sn FROM `omo_order_detail` WHERE `channel` = 6 and product_code like '%,%' and create_date LIKE '2024-02-10%';