2024-02-04 23:59:02 -- == sync_order start == 2024-02-04 23:59:02 -- start:2024-02-04,end:2024-02-04 2024-02-04 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 '2024-02-04%' OR l.modify_date like '2024-02-04%'; 2024-02-04 23:59:03 -- == sync omo_order_list == 2024-02-04 23:59:03 -- == update lake.omo_order_list == update omo_order_list set userId = '145361', process_status = '3', pay_status = '1', totalprice_after = '10735', lunar_date = '2023-11-06', invoice_status = '0',category_name = '迪化門市訂單,門市宅配訂單,迪化當日宅配', category_id = '43,15,44' where ordernumber = 'S23120140767' 2024-02-04 23:59:03 -- == 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 ('338679','375490',1,'','','O24020005912','1','1','1','1','1','','','0','0000-00-00','0','0','0','','150','100','1450','201','基隆市','信義區','204','基隆市','安樂區','1500','2024-02-04 00:47:35','2023-12-25') 2024-02-04 23:59:03 -- == 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 ('325624','362605',1,'','','O24020006081','1','1','1','1','1','','','0','0000-00-00','0','0','0','','150','30','960','827','高雄市','彌陀區','827','高雄市','彌陀區','1080','2024-02-04 16:30:59','2023-12-25') 2024-02-04 23:59:03 -- == 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 ('179337','145953',1,'','','O24020006123','1','1','1','1','1','','','0','0000-00-00','0','0','0','','150','0','3840','326','桃園市','楊梅區','326','桃園市','楊梅區','3990','2024-02-04 20:22:19','2023-12-25') 2024-02-04 23:59:03 -- == 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 ('338942','375751',1,'','','O24020006282','1','1','1','1','1','','','0','0000-00-00','0','0','0','','150','30','960','406','台中市','北屯區','406','台中市','北屯區','1080','2024-02-04 20:22:48','2023-12-25') 2024-02-04 23:59:03 -- == 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 ('338946','375755',1,'','','O24020006337','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','30','915','400','台中市','中區','970','花蓮縣','花蓮市','1035','2024-02-04 20:39:19','2023-12-25') 2024-02-04 23:59:03 -- == 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 ('334630','371502',1,'','','O24020006463','1','1','1','1','1','','','0','0000-00-00','0','0','0','','0','30','5760','820','高雄市','岡山區','351','苗栗縣','頭份市','5730','2024-02-04 22:45:45','2023-12-25') 2024-02-04 23:59:03 -- == sync_order end == 2024-02-04 23:59:03 -- == sync_order_detail start == 2024-02-04 23:59:03 -- start:2024-02-04,end:2024-02-04 2024-02-04 23:59:03 -- == sync omo_order_detail == 2024-02-04 23:59:03 -- == SELECT order_detail == SELECT * from order_detail WHERE create_date like '2024-02-04%' OR modify_date like '2024-02-04%' 2024-02-04 23:59:04 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S23120140767' and product_code = 'DG010315-05' 2024-02-04 23:59:04 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '215425',`firm_id` = '8',`ordernumber` = 'S23120140767', `product_name` = '金8結肉酥酥禮盒',`product_code` = 'DG010315-05',`product_sn` = 'DG010315',`product_spec` = '原辣肉酥酥【芝麻蛋捲】',`invoice_name` = '禮盒-金8結【芝麻+原辣肉絲酥】',`listprice` = '555',`sellingprice` = '555',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '555.0',`amount` = '10',`total_price` = '5550',`etd` = '2024-02-05',`create_date` = '2023-12-18 17:54:55',`modify_date` = '2024-02-04 13:58:04',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-11-06'where ordernumber = 'S23120140767' and product_code = 'DG010315-05' 2024-02-04 23:59:04 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S23120140767' and product_code = 'DG0103152-05' 2024-02-04 23:59:04 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '215425',`firm_id` = '8',`ordernumber` = 'S23120140767', `product_name` = '金典8結乳酪絲禮盒',`product_code` = 'DG0103152-05',`product_sn` = 'DG0103152',`product_spec` = '巧克力蛋捲.原味乳酪絲',`invoice_name` = '禮盒-金典(紅)【巧克力+乳酪絲(原味)】',`listprice` = '575',`sellingprice` = '575',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '10',`total_price` = '5750',`etd` = '2024-02-05',`create_date` = '2023-12-18 17:54:55',`modify_date` = '2024-02-04 13:58:04',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-11-06'where ordernumber = 'S23120140767' and product_code = 'DG0103152-05' 2024-02-04 23:59:04 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S23120140767' and product_code = 'ZP0101102-01' 2024-02-04 23:59:04 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '215425',`firm_id` = '8',`ordernumber` = 'S23120140767', `product_name` = '贈品-厚切海苔片(椒鹽+醬燒)',`product_code` = 'ZP0101102-01',`product_sn` = 'ZP0101102',`product_spec` = '贈品-醬燒海苔片+贈品-椒鹽海苔片',`invoice_name` = '贈品-海苔片(椒鹽+醬燒)',`listprice` = '0',`sellingprice` = '0',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '3',`total_price` = '0',`etd` = '2024-02-05',`create_date` = '2023-12-18 17:54:55',`modify_date` = '2024-02-04 13:58:04',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-11-06'where ordernumber = 'S23120140767' and product_code = 'ZP0101102-01' 2024-02-04 23:59:04 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020005912' and product_code = '13656' 2024-02-04 23:59:04 -- == 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,'228387','8','O24020005912','8結蛋捲【紅提袋裝】','13656','13656','40入原味蛋捲','組合-40入原味+紅提袋','290','290','0','0','0','0','1','0.0','3','870','2024-02-15','2024-02-04 00:47:35','2024-02-04 23:59:04',null,'1','2023-12-25') 2024-02-04 23:59:04 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228387',`firm_id` = '8',`ordernumber` = 'O24020005912', `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` = '3',`total_price` = '870',`etd` = '2024-02-15',`create_date` = '2024-02-04 00:47:35',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-25'where ordernumber = 'O24020005912' and product_code = '13656' 2024-02-04 23:59:04 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020005912' and product_code = '13657' 2024-02-04 23:59:04 -- == 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,'228387','8','O24020005912','8結蛋捲【紅提袋裝】','13657','13656','40入芝麻蛋捲','組合-40入芝麻+紅提袋','290','290','0','0','0','0','1','0.0','2','580','2024-02-15','2024-02-04 00:47:35','2024-02-04 23:59:04',null,'1','2023-12-25') 2024-02-04 23:59:04 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228387',`firm_id` = '8',`ordernumber` = 'O24020005912', `product_name` = '8結蛋捲【紅提袋裝】',`product_code` = '13657',`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` = '2024-02-15',`create_date` = '2024-02-04 00:47:35',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-25'where ordernumber = 'O24020005912' and product_code = '13657' 2024-02-04 23:59:04 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020006081' and product_code = 'DG010312-05' 2024-02-04 23:59:04 -- == 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,'228388','8','O24020006081','【原味+巧克力】金8結禮盒','DG010312-05','DG010312','金8結盒','禮盒-金8結【原味+巧克力】','590','480','0','0','0','0','1','480.0','1','480','2024-02-15','2024-02-04 16:30:59','2024-02-04 23:59:04',null,'1','2023-12-25') 2024-02-04 23:59:04 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228388',`firm_id` = '8',`ordernumber` = 'O24020006081', `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-15',`create_date` = '2024-02-04 16:30:59',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-25'where ordernumber = 'O24020006081' and product_code = 'DG010312-05' 2024-02-04 23:59:04 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020006081' and product_code = 'DG010312-02' 2024-02-04 23:59:04 -- == 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,'228388','8','O24020006081','【原味+芝麻】金8結禮盒','DG010312-02','DG010312','金8結盒','禮盒-金8結【原味+芝麻】','590','480','0','0','0','0','1','480.0','1','480','2024-02-15','2024-02-04 16:30:59','2024-02-04 23:59:04',null,'1','2023-12-25') 2024-02-04 23:59:04 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228388',`firm_id` = '8',`ordernumber` = 'O24020006081', `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-15',`create_date` = '2024-02-04 16:30:59',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-25'where ordernumber = 'O24020006081' and product_code = 'DG010312-02' 2024-02-04 23:59:04 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020006123' and product_code = 'DG010312-02' 2024-02-04 23:59:04 -- == 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,'228389','8','O24020006123','【原味+芝麻】金8結禮盒','DG010312-02','DG010312','金8結盒','禮盒-金8結【原味+芝麻】','590','480','0','0','0','0','1','480.0','8','3840','2024-02-15','2024-02-04 20:22:19','2024-02-04 23:59:04',null,'1','2023-12-25') 2024-02-04 23:59:04 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228389',`firm_id` = '8',`ordernumber` = 'O24020006123', `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` = '8',`total_price` = '3840',`etd` = '2024-02-15',`create_date` = '2024-02-04 20:22:19',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-25'where ordernumber = 'O24020006123' and product_code = 'DG010312-02' 2024-02-04 23:59:04 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020006282' and product_code = 'DG010312-08' 2024-02-04 23:59:04 -- == 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,'228390','8','O24020006282','【芝麻+海苔】金8結禮盒','DG010312-08','DG010312','金8結盒','禮盒-金8結【芝麻+海苔】','590','480','0','0','0','0','1','480.0','1','480','2024-02-19','2024-02-04 20:22:48','2024-02-04 23:59:04',null,'1','2023-12-25') 2024-02-04 23:59:04 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228390',`firm_id` = '8',`ordernumber` = 'O24020006282', `product_name` = '【芝麻+海苔】金8結禮盒',`product_code` = 'DG010312-08',`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-19',`create_date` = '2024-02-04 20:22:48',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-25'where ordernumber = 'O24020006282' and product_code = 'DG010312-08' 2024-02-04 23:59:04 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020006282' and product_code = 'DG010312-12' 2024-02-04 23:59:04 -- == 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,'228390','8','O24020006282','【咖啡+巧克力】金8結禮盒','DG010312-12','DG010312','金8結盒','禮盒-金8結【咖啡+巧克力】','590','480','0','0','0','0','1','480.0','1','480','2024-02-19','2024-02-04 20:22:48','2024-02-04 23:59:04',null,'1','2023-12-25') 2024-02-04 23:59:04 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228390',`firm_id` = '8',`ordernumber` = 'O24020006282', `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-19',`create_date` = '2024-02-04 20:22:48',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-25'where ordernumber = 'O24020006282' and product_code = 'DG010312-12' 2024-02-04 23:59:04 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020006337' and product_code = 'DG010312-02' 2024-02-04 23:59:04 -- == 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,'228391','8','O24020006337','【原味+芝麻】金8結禮盒','DG010312-02','DG010312','金8結盒','禮盒-金8結【原味+芝麻】','590','480','0','0','0','0','1','480.0','1','480','2024-02-26','2024-02-04 20:39:19','2024-02-04 23:59:04',null,'1','2023-12-25') 2024-02-04 23:59:04 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228391',`firm_id` = '8',`ordernumber` = 'O24020006337', `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-26',`create_date` = '2024-02-04 20:39:19',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-25'where ordernumber = 'O24020006337' and product_code = 'DG010312-02' 2024-02-04 23:59:04 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020006337' and product_code = 'FL010310-01' 2024-02-04 23:59:04 -- == 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,'228391','8','O24020006337','【預購品,2/26後出貨】一口酥24入家庭號禮盒','FL010310-01','12586','12入鳳梨酥+12入鳳梅酥','禮盒-24入家庭號【鳳梨酥+鳳梅酥】','435','435','0','0','0','0','1','0.0','1','435','2024-02-26','2024-02-04 20:39:19','2024-02-04 23:59:04',null,'1','2023-12-25') 2024-02-04 23:59:04 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228391',`firm_id` = '8',`ordernumber` = 'O24020006337', `product_name` = '【預購品,2/26後出貨】一口酥24入家庭號禮盒',`product_code` = 'FL010310-01',`product_sn` = '12586',`product_spec` = '12入鳳梨酥+12入鳳梅酥',`invoice_name` = '禮盒-24入家庭號【鳳梨酥+鳳梅酥】',`listprice` = '435',`sellingprice` = '435',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '435',`etd` = '2024-02-26',`create_date` = '2024-02-04 20:39:19',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-25'where ordernumber = 'O24020006337' and product_code = 'FL010310-01' 2024-02-04 23:59:04 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020006463' and product_code = 'DG010312-03' 2024-02-04 23:59:04 -- == 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,'228392','8','O24020006463','【原味+咖啡】金8結禮盒','DG010312-03','DG010312','金8結盒','禮盒-金8結【原味+咖啡】','590','480','0','0','0','0','1','480.0','6','2880','2024-02-15','2024-02-04 22:45:45','2024-02-04 23:59:04',null,'1','2023-12-25') 2024-02-04 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228392',`firm_id` = '8',`ordernumber` = 'O24020006463', `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` = '6',`total_price` = '2880',`etd` = '2024-02-15',`create_date` = '2024-02-04 22:45:45',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-25'where ordernumber = 'O24020006463' and product_code = 'DG010312-03' 2024-02-04 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020006463' and product_code = 'DG010312-05' 2024-02-04 23:59:05 -- == 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,'228392','8','O24020006463','【原味+巧克力】金8結禮盒','DG010312-05','DG010312','金8結盒','禮盒-金8結【原味+巧克力】','590','480','0','0','0','0','1','480.0','6','2880','2024-02-15','2024-02-04 22:45:45','2024-02-04 23:59:05',null,'1','2023-12-25') 2024-02-04 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228392',`firm_id` = '8',`ordernumber` = 'O24020006463', `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` = '6',`total_price` = '2880',`etd` = '2024-02-15',`create_date` = '2024-02-04 22:45:45',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-25'where ordernumber = 'O24020006463' and product_code = 'DG010312-05' 2024-02-04 23:59:05 -- == sync_order_detail end == 2024-02-04 23:59:05 -- == sync_order start == 2024-02-04 23:59:05 -- start:2024-02-04,end:2024-02-04 2024-02-04 23:59:05 -- == 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-04%' OR l.modify_date like '2024-02-04%'; 2024-02-04 23:59:05 -- == sync omo_order_list == 2024-02-04 23:59:05 -- == update lake.omo_order_list == update omo_order_list set userId = '369153', process_status = '3', pay_status = '8', totalprice_after = '400', lunar_date = '2023-12-09', invoice_status = '1', category_name = '彌月試吃,LINE@訂單', category_id = '2,9' where ordernumber = 'M24010026091' 2024-02-04 23:59:05 -- == update lake.omo_order_list == update omo_order_list set userId = '371873', process_status = '3', pay_status = '8', totalprice_after = '400', lunar_date = '2023-12-15', invoice_status = '1', category_name = 'LINE@訂單,彌月試吃', category_id = '9,2' where ordernumber = 'M24010035891' 2024-02-04 23:59:05 -- == sync_order end == 2024-02-04 23:59:05 -- == sync_order_detail start == 2024-02-04 23:59:05 -- start:2024-02-04,end:2024-02-04 2024-02-04 23:59:05 -- == sync omo_order_detail == 2024-02-04 23:59:05 -- == SELECT order_detail == SELECT * from order_detail WHERE create_date like '2024-02-04%' OR modify_date like '2024-02-04%' 2024-02-04 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'M24010026091' and product_code = 'DG010248-01' 2024-02-04 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '29954',`firm_id` = '11',`ordernumber` = 'M24010026091', `product_name` = '彌月試吃提盒-香頌日光',`product_code` = 'DG010248-01',`product_sn` = 'DG010248',`product_spec` = '原味',`invoice_name` = '提盒-彌月香頌日光-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` = '2024-02-02',`create_date` = '2024-01-19 11:08:04',`modify_date` = '2024-02-04 16:05:44',`points_use_id` = null,`item_status` = '1' where ordernumber = 'M24010026091' and product_code = 'DG010248-01', `lunar_date` = '2023-12-09' 2024-02-04 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'M24010026091' and product_code = 'DG010253-05' 2024-02-04 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '29954',`firm_id` = '11',`ordernumber` = 'M24010026091', `product_name` = '【小王子聯名】夢想旅程8結彌月提盒(試吃)',`product_code` = 'DG010253-05',`product_sn` = 'DG010253',`product_spec` = '巧克力',`invoice_name` = '提盒-彌月小王子(紅)-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` = '2024-02-02',`create_date` = '2024-01-19 11:08:04',`modify_date` = '2024-02-04 16:05:44',`points_use_id` = null,`item_status` = '1' where ordernumber = 'M24010026091' and product_code = 'DG010253-05', `lunar_date` = '2023-12-09' 2024-02-04 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'M24010035891' and product_code = 'DG010243-01' 2024-02-04 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '30063',`firm_id` = '11',`ordernumber` = 'M24010035891', `product_name` = '彌月試吃提盒-年輪',`product_code` = 'DG010243-01',`product_sn` = 'DG010243',`product_spec` = '原味',`invoice_name` = '提盒-彌月年輪-40入原味(試吃)',`listprice` = '300',`sellingprice` = '300',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '300.0',`amount` = '1',`total_price` = '300',`etd` = '2024-02-02',`create_date` = '2024-01-25 10:17:49',`modify_date` = '2024-02-04 14:27:48',`points_use_id` = null,`item_status` = '1' where ordernumber = 'M24010035891' and product_code = 'DG010243-01', `lunar_date` = '2023-12-15' 2024-02-04 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'M24010035891' and product_code = 'DG010264-05' 2024-02-04 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '30063',`firm_id` = '11',`ordernumber` = 'M24010035891', `product_name` = '【SNOOPY聯名】美好食光-8結彌月提盒(試吃)',`product_code` = 'DG010264-05',`product_sn` = 'DG010264',`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` = '2024-02-02',`create_date` = '2024-01-25 10:17:49',`modify_date` = '2024-02-04 14:27:48',`points_use_id` = null,`item_status` = '1' where ordernumber = 'M24010035891' and product_code = 'DG010264-05', `lunar_date` = '2023-12-15' 2024-02-04 23:59:05 -- == sync_order_detail end == 2024-02-04 23:59:05 -- == 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-04' OR o.updated_at = '2024-02-04') and o.deleted_at is null 2024-02-04 23:59:05 -- == sync_order_detail start == 2024-02-04 23:59:05 -- start:2024-02-04,end:2024-02-04 2024-02-04 23:59:06 -- step1: SELECT id,sku,combinations_product_spec_id FROM `product_specs` 2024-02-04 23:59:06 -- step2: SELECT * FROM `product_specs` WHERE combinations_product_spec_id is not null 2024-02-04 23:59:08 -- step3: SELECT id,product_code,product_sn FROM `omo_order_detail` WHERE `channel` = 6 and product_code like '%,%' and create_date LIKE '2024-02-04%';