2025-01-25 23:59:02 -- == sync_order start == 2025-01-25 23:59:02 -- start:2025-01-25,end:2025-01-25 2025-01-25 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-25%' OR l.modify_date like '2025-01-25%'; 2025-01-25 23:59:03 -- == sync omo_order_list == 2025-01-25 23:59:03 -- == update lake.omo_order_list == update omo_order_list set userId = '375796', process_status = '1', pay_status = '1', totalprice_after = '3690', lunar_date = '2024-11-13', invoice_status = '0',category_name = '美村門市訂單,電話訂單', category_id = '32,12' where ordernumber = 'S24120168126' 2025-01-25 23:59:03 -- == update lake.omo_order_list == update omo_order_list set userId = '429419', process_status = '3', pay_status = '1', totalprice_after = '23380', lunar_date = '2024-11-16', invoice_status = '1',category_name = '迪化門市訂單', category_id = '43' where ordernumber = 'S24120234574' 2025-01-25 23:59:03 -- == update lake.omo_order_list == update omo_order_list set userId = '388015', process_status = '3', pay_status = '1', totalprice_after = '7375', lunar_date = '2024-11-17', invoice_status = '0',category_name = '迪化門市訂單', category_id = '43' where ordernumber = 'S24120255588' 2025-01-25 23:59:03 -- == update lake.omo_order_list == update omo_order_list set userId = '443333', process_status = '3', pay_status = '1', totalprice_after = '2975', lunar_date = '2024-12-04', invoice_status = '0',category_name = '迪化門市訂單', category_id = '43' where ordernumber = 'S25010116959' 2025-01-25 23:59:03 -- == update lake.omo_order_list == update omo_order_list set userId = '443993', process_status = '3', pay_status = '1', totalprice_after = '9280', lunar_date = '2024-12-05', invoice_status = '0',category_name = '迪化門市訂單,正式彌月', category_id = '43,1' where ordernumber = 'S25010183231' 2025-01-25 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 ('417033','453003',1,'','','O25010985580','1','1','1','1','1','','','0','0000-00-00','0','0','0','','150','30','555','407','台中市','西屯區','941','屏東縣','枋山鄉','675','2025-01-25 02:24:05','2024-12-26') 2025-01-25 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 ('417033','453003',1,'','','O25010985674','1','1','1','1','1','','','0','0000-00-00','0','0','0','','150','30','295','407','台中市','西屯區','830','高雄市','鳳山區','415','2025-01-25 02:30:34','2024-12-26') 2025-01-25 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 ('239484','271086',1,'','','O25010985793','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','0','4833','242','新北市','新莊區','242','新北市','新莊區','4983','2025-01-25 10:34:25','2024-12-26') 2025-01-25 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 ('341186','377974',1,'','','O25010985830','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','0','1770','104','台北市','中山區','104','台北市','中山區','1920','2025-01-25 14:25:43','2024-12-26') 2025-01-25 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 ('417879','454133',1,'','','O25010985974','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','30','300','247','新北市','蘆洲區','247','新北市','蘆洲區','420','2025-01-25 15:10:53','2024-12-26') 2025-01-25 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 ('387789','424080',1,'','','O25010986059','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','0','480','103','台北市','大同區','702','台南市','南區','630','2025-01-25 17:01:17','2024-12-26') 2025-01-25 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 ('417645','453905',1,'','','O25010986175','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','30','1740','260','宜蘭縣','宜蘭市','260','宜蘭縣','宜蘭市','1860','2025-01-25 17:51:59','2024-12-26') 2025-01-25 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 ('417951','454204',1,'','','O25010986266','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','30','790','701','台南市','東區','701','台南市','東區','910','2025-01-25 18:31:19','2024-12-26') 2025-01-25 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 ('382181','418538',1,'','','O25010986356','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','0','1250','437','台中市','大甲區','437','台中市','大甲區','1400','2025-01-25 19:48:17','2024-12-26') 2025-01-25 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 ('403319','439470',1,'','','O25010986489','1','1','1','1','1','','','0','0000-00-00','0','0','0','','150','0','2700','820','高雄市','岡山區','820','高雄市','岡山區','2850','2025-01-25 20:21:56','2024-12-26') 2025-01-25 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 ('417967','454220',1,'','','O25010986581','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','30','880','360','苗栗縣','苗栗市','360','苗栗縣','苗栗市','1000','2025-01-25 23:28:46','2024-12-26') 2025-01-25 23:59:03 -- == sync_order end == 2025-01-25 23:59:03 -- == sync_order_detail start == 2025-01-25 23:59:03 -- start:2025-01-25,end:2025-01-25 2025-01-25 23:59:03 -- == sync omo_order_detail == 2025-01-25 23:59:03 -- == SELECT order_detail == SELECT * from order_detail WHERE create_date like '2025-01-25%' OR modify_date like '2025-01-25%' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24120168126' and product_code = 'DG010312-02' 2025-01-25 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '253345',`firm_id` = '8',`ordernumber` = 'S24120168126', `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` = '4',`total_price` = '1920',`etd` = '2025-01-23',`create_date` = '2024-12-13 09:45:54',`modify_date` = '2025-01-25 18:32:22',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2024-11-13'where ordernumber = 'S24120168126' and product_code = 'DG010312-02' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24120168126' and product_code = 'DG010206-01' 2025-01-25 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '253345',`firm_id` = '8',`ordernumber` = 'S24120168126', `product_name` = '8結蛋捲【紅提盒裝】',`product_code` = 'DG010206-01',`product_sn` = 'DG010206',`product_spec` = '原味',`invoice_name` = '提盒-品牌(紅)-40入原味蛋捲',`listprice` = '295',`sellingprice` = '295',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '3',`total_price` = '885',`etd` = '2025-01-23',`create_date` = '2024-12-13 09:45:54',`modify_date` = '2025-01-25 18:32:22',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2024-11-13'where ordernumber = 'S24120168126' and product_code = 'DG010206-01' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24120168126' and product_code = 'DG010206-02' 2025-01-25 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '253345',`firm_id` = '8',`ordernumber` = 'S24120168126', `product_name` = '8結蛋捲【紅提盒裝】',`product_code` = 'DG010206-02',`product_sn` = 'DG010206',`product_spec` = '芝麻',`invoice_name` = '提盒-品牌(紅)-40入芝麻蛋捲',`listprice` = '295',`sellingprice` = '295',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '3',`total_price` = '885',`etd` = '2025-01-23',`create_date` = '2024-12-13 09:45:54',`modify_date` = '2025-01-25 18:32:22',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2024-11-13'where ordernumber = 'S24120168126' and product_code = 'DG010206-02' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24120234574' and product_code = 'DG0103148-09' 2025-01-25 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '254026',`firm_id` = '8',`ordernumber` = 'S24120234574', `product_name` = '金典8結禮盒',`product_code` = 'DG0103148-09',`product_sn` = 'DG0103148',`product_spec` = '芝麻+巧克力',`invoice_name` = '禮盒-金典(紅)【芝麻+巧克力】',`listprice` = '480',`sellingprice` = '480',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '2',`total_price` = '960',`etd` = '2025-01-10',`create_date` = '2024-12-16 11:27:31',`modify_date` = '2025-01-25 15:04:45',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2024-11-16'where ordernumber = 'S24120234574' and product_code = 'DG0103148-09' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24120234574' and product_code = 'DG0103149-04' 2025-01-25 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '254026',`firm_id` = '8',`ordernumber` = 'S24120234574', `product_name` = '金典8結肉酥酥禮盒',`product_code` = 'DG0103149-04',`product_sn` = '02945',`product_spec` = '芝麻+原原肉酥酥',`invoice_name` = '禮盒-金典(紅)【芝麻+原味肉酥酥】',`listprice` = '555',`sellingprice` = '555',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '14',`total_price` = '7770',`etd` = '2025-01-10',`create_date` = '2024-12-16 11:27:31',`modify_date` = '2025-01-25 15:04:45',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2024-11-16'where ordernumber = 'S24120234574' and product_code = 'DG0103149-04' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24120234574' and product_code = 'DG0103149-13' 2025-01-25 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '254026',`firm_id` = '8',`ordernumber` = 'S24120234574', `product_name` = '金典8結肉酥酥禮盒',`product_code` = 'DG0103149-13',`product_sn` = '02945',`product_spec` = '巧克力+原原肉酥酥',`invoice_name` = '禮盒-金典(紅)【巧克力+原味肉酥酥】',`listprice` = '555',`sellingprice` = '555',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '10',`total_price` = '5550',`etd` = '2025-01-10',`create_date` = '2024-12-16 11:27:31',`modify_date` = '2025-01-25 15:04:45',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2024-11-16'where ordernumber = 'S24120234574' and product_code = 'DG0103149-13' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24120234574' and product_code = 'DG0103152-28' 2025-01-25 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '254026',`firm_id` = '8',`ordernumber` = 'S24120234574', `product_name` = '金典8結乳酪絲禮盒',`product_code` = 'DG0103152-28',`product_sn` = 'DG0103152',`product_spec` = '咖啡蛋捲.黑松露乳酪絲',`invoice_name` = '禮盒-金典(紅)【咖啡+乳酪絲(黑松露)】',`listprice` = '655',`sellingprice` = '655',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '2',`total_price` = '1310',`etd` = '2025-01-10',`create_date` = '2024-12-16 11:27:31',`modify_date` = '2025-01-25 15:04:45',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2024-11-16'where ordernumber = 'S24120234574' and product_code = 'DG0103152-28' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24120234574' and product_code = 'DG0103152-29' 2025-01-25 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '254026',`firm_id` = '8',`ordernumber` = 'S24120234574', `product_name` = '金典8結乳酪絲禮盒',`product_code` = 'DG0103152-29',`product_sn` = 'DG0103152',`product_spec` = '海苔蛋捲.黑松露乳酪絲',`invoice_name` = '禮盒-金典(紅)【海苔+乳酪絲(黑松露)】',`listprice` = '655',`sellingprice` = '655',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '2',`total_price` = '1310',`etd` = '2025-01-10',`create_date` = '2024-12-16 11:27:31',`modify_date` = '2025-01-25 15:04:45',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2024-11-16'where ordernumber = 'S24120234574' and product_code = 'DG0103152-29' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24120234574' and product_code = 'DG0103152-30' 2025-01-25 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '254026',`firm_id` = '8',`ordernumber` = 'S24120234574', `product_name` = '金典8結乳酪絲禮盒',`product_code` = 'DG0103152-30',`product_sn` = 'DG0103152',`product_spec` = '巧克力蛋捲.黑松露乳酪絲',`invoice_name` = '禮盒-金典(紅)【巧克力+乳酪絲(黑松露)】',`listprice` = '655',`sellingprice` = '655',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '655',`etd` = '2025-01-10',`create_date` = '2024-12-16 11:27:31',`modify_date` = '2025-01-25 15:04:45',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2024-11-16'where ordernumber = 'S24120234574' and product_code = 'DG0103152-30' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24120234574' and product_code = 'DG0103211-05' 2025-01-25 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '254026',`firm_id` = '8',`ordernumber` = 'S24120234574', `product_name` = '金典8結黑松露堅果禮盒',`product_code` = 'DG0103211-05',`product_sn` = '12529',`product_spec` = '芝麻蛋捲.黑松露腰果/杏仁果綜合',`invoice_name` = '禮盒-金典(紅)【芝麻+腰果杏仁果綜合提盒】',`listprice` = '1205',`sellingprice` = '1205',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '5',`total_price` = '6025',`etd` = '2025-01-10',`create_date` = '2024-12-16 11:27:31',`modify_date` = '2025-01-25 15:04:45',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2024-11-16'where ordernumber = 'S24120234574' and product_code = 'DG0103211-05' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24120234574' and product_code = 'DG010313-03' 2025-01-25 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '254026',`firm_id` = '8',`ordernumber` = 'S24120234574', `product_name` = '金8結雙蜜禮盒',`product_code` = 'DG010313-03',`product_sn` = 'DG010313',`product_spec` = '咖啡蛋捲+醇蜜2瓶',`invoice_name` = '禮盒-金8結【咖啡+雙蜜】',`listprice` = '755',`sellingprice` = '755',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '755.0',`amount` = '1',`total_price` = '755',`etd` = '2025-01-10',`create_date` = '2024-12-16 11:27:31',`modify_date` = '2025-01-25 15:04:45',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2024-11-16'where ordernumber = 'S24120234574' and product_code = 'DG010313-03' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24120234574' and product_code = 'DG010313-04' 2025-01-25 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '254026',`firm_id` = '8',`ordernumber` = 'S24120234574', `product_name` = '金8結雙蜜禮盒',`product_code` = 'DG010313-04',`product_sn` = 'DG010313',`product_spec` = '海苔蛋捲+醇蜜2瓶',`invoice_name` = '禮盒-金8結【海苔+雙蜜】',`listprice` = '755',`sellingprice` = '755',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '755.0',`amount` = '1',`total_price` = '755',`etd` = '2025-01-10',`create_date` = '2024-12-16 11:27:31',`modify_date` = '2025-01-25 15:04:45',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2024-11-16'where ordernumber = 'S24120234574' and product_code = 'DG010313-04' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24120168126' and product_code = 'ZP0101177-01' 2025-01-25 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '253345',`firm_id` = '8',`ordernumber` = 'S24120168126', `product_name` = '贈品-玻璃儲物罐500ml三入組',`product_code` = 'ZP0101177-01',`product_sn` = 'ZP0101177',`product_spec` = '贈品-玻璃儲物罐500ml三入組',`invoice_name` = '贈品-玻璃儲物罐500ml三入組',`listprice` = '0',`sellingprice` = '0',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '0',`etd` = '2025-01-23',`create_date` = '2024-12-16 20:14:47',`modify_date` = '2025-01-25 18:32:22',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-11-16'where ordernumber = 'S24120168126' and product_code = 'ZP0101177-01' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24120255588' and product_code = 'DG010101-01' 2025-01-25 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '254255',`firm_id` = '8',`ordernumber` = 'S24120255588', `product_name` = '經典原味蛋捲',`product_code` = 'DG010101-01',`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` = '25',`total_price` = '7000',`etd` = '2025-01-17',`create_date` = '2024-12-17 11:45:34',`modify_date` = '2025-01-25 15:06:10',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2024-11-17'where ordernumber = 'S24120255588' and product_code = 'DG010101-01' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24120255588' and product_code = 'DG010405-01' 2025-01-25 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '254255',`firm_id` = '8',`ordernumber` = 'S24120255588', `product_name` = '單入紅提盒',`product_code` = 'DG010405-01',`product_sn` = 'DG010405',`product_spec` = '單入紅提盒包材',`invoice_name` = '單入紅提盒',`listprice` = '15',`sellingprice` = '15',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '25',`total_price` = '375',`etd` = '2025-01-17',`create_date` = '2024-12-17 11:45:34',`modify_date` = '2025-01-25 15:06:10',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2024-11-17'where ordernumber = 'S24120255588' and product_code = 'DG010405-01' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S25010116959' and product_code = 'DG0103148-07' 2025-01-25 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '259904',`firm_id` = '8',`ordernumber` = 'S25010116959', `product_name` = '金典8結禮盒',`product_code` = 'DG0103148-07',`product_sn` = 'DG0103148',`product_spec` = '芝麻+咖啡',`invoice_name` = '禮盒-金典(紅)【芝麻+咖啡】',`listprice` = '480',`sellingprice` = '480',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '6',`total_price` = '2880',`etd` = '2025-01-03',`create_date` = '2025-01-03 12:49:17',`modify_date` = '2025-01-25 15:09:31',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2024-12-04'where ordernumber = 'S25010116959' and product_code = 'DG0103148-07' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S25010183231' and product_code = 'DG010265-01' 2025-01-25 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '260582',`firm_id` = '8',`ordernumber` = 'S25010183231', `product_name` = '【SNOOPY 聯名】獨特心意-8結提盒',`product_code` = 'DG010265-01',`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-01-08',`create_date` = '2025-01-04 14:52:43',`modify_date` = '2025-01-25 15:08:34',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2024-12-05'where ordernumber = 'S25010183231' and product_code = 'DG010265-01' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S25010183231' and product_code = 'DG0103188-06' 2025-01-25 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '260582',`firm_id` = '8',`ordernumber` = 'S25010183231', `product_name` = '【SNOOPY 聯名】美好探尋-8結禮盒',`product_code` = 'DG0103188-06',`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` = '19',`total_price` = '9500',`etd` = '2025-01-08',`create_date` = '2025-01-04 14:52:43',`modify_date` = '2025-01-25 15:08:34',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2024-12-05'where ordernumber = 'S25010183231' and product_code = 'DG0103188-06' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010985580' and product_code = 'DG010315-13' 2025-01-25 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,'268873','8','O25010985580','金8結肉酥酥禮盒','DG010315-13','DG010315','原味肉酥酥【巧克力蛋捲】','禮盒-金8結【巧克力+原味肉酥酥】','555','555','0','0','0','0','1','555.0','1','555','2025-02-03','2025-01-25 02:24:05','2025-01-25 23:59:05',null,'1','2024-12-26') 2025-01-25 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268873',`firm_id` = '8',`ordernumber` = 'O25010985580', `product_name` = '金8結肉酥酥禮盒',`product_code` = 'DG010315-13',`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` = '1',`total_price` = '555',`etd` = '2025-02-03',`create_date` = '2025-01-25 02:24:05',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-26'where ordernumber = 'O25010985580' and product_code = 'DG010315-13' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010985674' and product_code = 'DG010258-05' 2025-01-25 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,'268874','8','O25010985674','金豐收8結提盒','DG010258-05','DG010258','40入巧克力蛋捲','提盒-金豐收(藍)-40入巧克力','295','295','0','0','0','0','1','0.0','1','295','2025-02-03','2025-01-25 02:30:34','2025-01-25 23:59:05',null,'1','2024-12-26') 2025-01-25 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268874',`firm_id` = '8',`ordernumber` = 'O25010985674', `product_name` = '金豐收8結提盒',`product_code` = 'DG010258-05',`product_sn` = 'DG010258',`product_spec` = '40入巧克力蛋捲',`invoice_name` = '提盒-金豐收(藍)-40入巧克力',`listprice` = '295',`sellingprice` = '295',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '295',`etd` = '2025-02-03',`create_date` = '2025-01-25 02:30:34',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-26'where ordernumber = 'O25010985674' and product_code = 'DG010258-05' 2025-01-25 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010985793' and product_code = 'DG010516-161' 2025-01-25 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,'268875','8','O25010985793','小王子行李箱蛋捲10入組','DG010516-161','DG010516','原味x4+巧克力x4+芝芝','組合-32入(原味x4+巧克力x4+芝芝)+小王子行李箱','4188','4188','0','0','0','1','1','0.0','1','4188','2025-02-06','2025-01-25 10:34:25','2025-01-25 23:59:05',null,'1','2024-12-26') 2025-01-25 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268875',`firm_id` = '8',`ordernumber` = 'O25010985793', `product_name` = '小王子行李箱蛋捲10入組',`product_code` = 'DG010516-161',`product_sn` = 'DG010516',`product_spec` = '原味x4+巧克力x4+芝芝',`invoice_name` = '組合-32入(原味x4+巧克力x4+芝芝)+小王子行李箱',`listprice` = '4188',`sellingprice` = '4188',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '1',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '4188',`etd` = '2025-02-06',`create_date` = '2025-01-25 10:34:25',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-26'where ordernumber = 'O25010985793' and product_code = 'DG010516-161' 2025-01-25 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010985793' and product_code = 'BP010108-01' 2025-01-25 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,'268875','8','O25010985793','[加購]加購-幾米幸運玻璃杯組','BP010108-01','BP010108','-','加購-幾米玻璃杯組','215','215','1','1','215','0','0','0.0','3','645','2025-02-06','2025-01-25 10:34:25','2025-01-25 23:59:06',null,'1','2024-12-26') 2025-01-25 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268875',`firm_id` = '8',`ordernumber` = 'O25010985793', `product_name` = '[加購]加購-幾米幸運玻璃杯組',`product_code` = 'BP010108-01',`product_sn` = 'BP010108',`product_spec` = '-',`invoice_name` = '加購-幾米玻璃杯組',`listprice` = '215',`sellingprice` = '215',`isadd` = '1',`isbaby` = '1',`addprice` = '215',`is_exclude` = '0',`freight_type` = '0',`commission` = '0.0',`amount` = '3',`total_price` = '645',`etd` = '2025-02-06',`create_date` = '2025-01-25 10:34:25',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-26'where ordernumber = 'O25010985793' and product_code = 'BP010108-01' 2025-01-25 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010985830' and product_code = 'DG010258-02' 2025-01-25 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,'268876','8','O25010985830','金豐收8結提盒','DG010258-02','DG010258','40入芝麻蛋捲','提盒-金豐收(藍)-40入芝麻','295','295','0','0','0','0','1','0.0','6','1770','2025-02-03','2025-01-25 14:25:43','2025-01-25 23:59:06',null,'1','2024-12-26') 2025-01-25 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268876',`firm_id` = '8',`ordernumber` = 'O25010985830', `product_name` = '金豐收8結提盒',`product_code` = 'DG010258-02',`product_sn` = 'DG010258',`product_spec` = '40入芝麻蛋捲',`invoice_name` = '提盒-金豐收(藍)-40入芝麻',`listprice` = '295',`sellingprice` = '295',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '6',`total_price` = '1770',`etd` = '2025-02-03',`create_date` = '2025-01-25 14:25:43',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-26'where ordernumber = 'O25010985830' and product_code = 'DG010258-02' 2025-01-25 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010985974' and product_code = 'DG010275-01' 2025-01-25 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,'268877','8','O25010985974','【小王子聯名】玫瑰星球8結提盒','DG010275-01','DG010275','原味','提盒-小王子(NEW)-40入原味','300','300','0','0','0','0','1','0.0','1','300','2025-02-03','2025-01-25 15:10:53','2025-01-25 23:59:06',null,'1','2024-12-26') 2025-01-25 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268877',`firm_id` = '8',`ordernumber` = 'O25010985974', `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` = '1',`total_price` = '300',`etd` = '2025-02-03',`create_date` = '2025-01-25 15:10:53',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-26'where ordernumber = 'O25010985974' and product_code = 'DG010275-01' 2025-01-25 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010986059' and product_code = 'DG010312-08' 2025-01-25 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,'268878','8','O25010986059','【芝麻+海苔】金8結禮盒','DG010312-08','DG010312','金8結盒','禮盒-金8結【芝麻+海苔】','590','480','0','0','0','0','1','480.0','1','480','2025-02-03','2025-01-25 17:01:17','2025-01-25 23:59:06',null,'1','2024-12-26') 2025-01-25 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268878',`firm_id` = '8',`ordernumber` = 'O25010986059', `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` = '2025-02-03',`create_date` = '2025-01-25 17:01:17',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-26'where ordernumber = 'O25010986059' and product_code = 'DG010312-08' 2025-01-25 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010986175' and product_code = '13656' 2025-01-25 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,'268879','8','O25010986175','8結蛋捲【紅提袋裝】','13656','13656','40入原味蛋捲','組合-40入原味+紅提袋','290','290','0','0','0','0','1','0.0','2','580','2025-02-03','2025-01-25 17:51:59','2025-01-25 23:59:06',null,'1','2024-12-26') 2025-01-25 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268879',`firm_id` = '8',`ordernumber` = 'O25010986175', `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-25 17:51:59',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-26'where ordernumber = 'O25010986175' and product_code = '13656' 2025-01-25 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010986175' and product_code = '13657' 2025-01-25 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,'268879','8','O25010986175','8結蛋捲【紅提袋裝】','13657','13656','40入芝麻蛋捲','組合-40入芝麻+紅提袋','290','290','0','0','0','0','1','0.0','2','580','2025-02-03','2025-01-25 17:51:59','2025-01-25 23:59:06',null,'1','2024-12-26') 2025-01-25 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268879',`firm_id` = '8',`ordernumber` = 'O25010986175', `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` = '2025-02-03',`create_date` = '2025-01-25 17:51:59',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-26'where ordernumber = 'O25010986175' and product_code = '13657' 2025-01-25 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010986175' and product_code = '13659' 2025-01-25 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,'268879','8','O25010986175','8結蛋捲【紅提袋裝】','13659','13656','40入海苔蛋捲','組合-40入海苔+紅提袋','290','290','0','0','0','0','1','0.0','2','580','2025-02-03','2025-01-25 17:51:59','2025-01-25 23:59:06',null,'1','2024-12-26') 2025-01-25 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268879',`firm_id` = '8',`ordernumber` = 'O25010986175', `product_name` = '8結蛋捲【紅提袋裝】',`product_code` = '13659',`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-25 17:51:59',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-26'where ordernumber = 'O25010986175' and product_code = '13659' 2025-01-25 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010986266' and product_code = 'DG0103223-05' 2025-01-25 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,'268880','8','O25010986266','【小王子聯名】玫瑰星球8結禮盒','DG0103223-05','DG0103223','原味+巧克力','禮盒-小王子(NEW)【原味+巧克力】','500','500','0','0','0','0','1','0.0','1','500','2025-02-03','2025-01-25 18:31:19','2025-01-25 23:59:06',null,'1','2024-12-26') 2025-01-25 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268880',`firm_id` = '8',`ordernumber` = 'O25010986266', `product_name` = '【小王子聯名】玫瑰星球8結禮盒',`product_code` = 'DG0103223-05',`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-25 18:31:19',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-26'where ordernumber = 'O25010986266' and product_code = 'DG0103223-05' 2025-01-25 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010986266' and product_code = 'DG010527-05' 2025-01-25 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,'268880','8','O25010986266','8結蛋捲【小禮袋裝】','DG010527-05','DG010527','40入巧克力蛋捲','組合-40入巧克力+8結小禮袋','290','290','0','0','0','0','1','0.0','1','290','2025-02-03','2025-01-25 18:31:19','2025-01-25 23:59:06',null,'1','2024-12-26') 2025-01-25 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268880',`firm_id` = '8',`ordernumber` = 'O25010986266', `product_name` = '8結蛋捲【小禮袋裝】',`product_code` = 'DG010527-05',`product_sn` = 'DG010527',`product_spec` = '40入巧克力蛋捲',`invoice_name` = '組合-40入巧克力+8結小禮袋',`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-25 18:31:19',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-26'where ordernumber = 'O25010986266' and product_code = 'DG010527-05' 2025-01-25 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010986356' and product_code = 'DG010312-09' 2025-01-25 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,'268881','8','O25010986356','【芝麻+巧克力】金8結禮盒','DG010312-09','DG010312','金8結盒','禮盒-金8結【芝麻+巧克力】','590','480','0','0','0','0','1','480.0','2','960','2025-02-03','2025-01-25 19:48:17','2025-01-25 23:59:06',null,'1','2024-12-26') 2025-01-25 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268881',`firm_id` = '8',`ordernumber` = 'O25010986356', `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` = '2',`total_price` = '960',`etd` = '2025-02-03',`create_date` = '2025-01-25 19:48:17',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-26'where ordernumber = 'O25010986356' and product_code = 'DG010312-09' 2025-01-25 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010986356' and product_code = '13657' 2025-01-25 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,'268881','8','O25010986356','8結蛋捲【紅提袋裝】','13657','13656','40入芝麻蛋捲','組合-40入芝麻+紅提袋','290','290','0','0','0','0','1','0.0','1','290','2025-02-03','2025-01-25 19:48:17','2025-01-25 23:59:06',null,'1','2024-12-26') 2025-01-25 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268881',`firm_id` = '8',`ordernumber` = 'O25010986356', `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` = '1',`total_price` = '290',`etd` = '2025-02-03',`create_date` = '2025-01-25 19:48:17',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-26'where ordernumber = 'O25010986356' and product_code = '13657' 2025-01-25 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010986489' and product_code = 'DG010265-01' 2025-01-25 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,'268882','8','O25010986489','【SNOOPY 聯名】獨特心意-8結提盒','DG010265-01','DG010265','原味','提盒-SNOOPY(粉)-40入原味','300','300','0','0','0','0','1','0.0','2','600','2025-02-03','2025-01-25 20:21:56','2025-01-25 23:59:06',null,'1','2024-12-26') 2025-01-25 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268882',`firm_id` = '8',`ordernumber` = 'O25010986489', `product_name` = '【SNOOPY 聯名】獨特心意-8結提盒',`product_code` = 'DG010265-01',`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` = '2',`total_price` = '600',`etd` = '2025-02-03',`create_date` = '2025-01-25 20:21:56',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-26'where ordernumber = 'O25010986489' and product_code = 'DG010265-01' 2025-01-25 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010986489' and product_code = 'DG010265-05' 2025-01-25 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,'268882','8','O25010986489','【SNOOPY 聯名】獨特心意-8結提盒','DG010265-05','DG010265','巧克力','提盒-SNOOPY(粉)-40入巧克力','300','300','0','0','0','0','1','0.0','2','600','2025-02-03','2025-01-25 20:21:56','2025-01-25 23:59:06',null,'1','2024-12-26') 2025-01-25 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268882',`firm_id` = '8',`ordernumber` = 'O25010986489', `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` = '2',`total_price` = '600',`etd` = '2025-02-03',`create_date` = '2025-01-25 20:21:56',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-26'where ordernumber = 'O25010986489' and product_code = 'DG010265-05' 2025-01-25 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010986489' and product_code = 'DG0103188-09' 2025-01-25 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,'268882','8','O25010986489','【SNOOPY 聯名】美好探尋-8結禮盒','DG0103188-09','DG0103188','原味蛋捲,巧克力蛋捲','禮盒-SNOOPY(橘)【原味+巧克力】','500','500','0','0','0','0','1','0.0','3','1500','2025-02-03','2025-01-25 20:21:56','2025-01-25 23:59:06',null,'1','2024-12-26') 2025-01-25 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268882',`firm_id` = '8',`ordernumber` = 'O25010986489', `product_name` = '【SNOOPY 聯名】美好探尋-8結禮盒',`product_code` = 'DG0103188-09',`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` = '3',`total_price` = '1500',`etd` = '2025-02-03',`create_date` = '2025-01-25 20:21:56',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-26'where ordernumber = 'O25010986489' and product_code = 'DG0103188-09' 2025-01-25 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010986581' and product_code = 'DG010206-01' 2025-01-25 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,'268883','8','O25010986581','8結蛋捲【紅提盒裝】','DG010206-01','DG010206','原味','提盒-品牌(紅)-40入原味蛋捲','295','295','0','0','0','0','1','0.0','1','295','2025-02-03','2025-01-25 23:28:46','2025-01-25 23:59:06',null,'1','2024-12-26') 2025-01-25 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268883',`firm_id` = '8',`ordernumber` = 'O25010986581', `product_name` = '8結蛋捲【紅提盒裝】',`product_code` = 'DG010206-01',`product_sn` = 'DG010206',`product_spec` = '原味',`invoice_name` = '提盒-品牌(紅)-40入原味蛋捲',`listprice` = '295',`sellingprice` = '295',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '295',`etd` = '2025-02-03',`create_date` = '2025-01-25 23:28:46',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-26'where ordernumber = 'O25010986581' and product_code = 'DG010206-01' 2025-01-25 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010986581' and product_code = 'DG010206-02' 2025-01-25 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,'268883','8','O25010986581','8結蛋捲【紅提盒裝】','DG010206-02','DG010206','芝麻','提盒-品牌(紅)-40入芝麻蛋捲','295','295','0','0','0','0','1','0.0','1','295','2025-02-03','2025-01-25 23:28:46','2025-01-25 23:59:06',null,'1','2024-12-26') 2025-01-25 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268883',`firm_id` = '8',`ordernumber` = 'O25010986581', `product_name` = '8結蛋捲【紅提盒裝】',`product_code` = 'DG010206-02',`product_sn` = 'DG010206',`product_spec` = '芝麻',`invoice_name` = '提盒-品牌(紅)-40入芝麻蛋捲',`listprice` = '295',`sellingprice` = '295',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '295',`etd` = '2025-02-03',`create_date` = '2025-01-25 23:28:46',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-26'where ordernumber = 'O25010986581' and product_code = 'DG010206-02' 2025-01-25 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O25010986581' and product_code = '13656' 2025-01-25 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,'268883','8','O25010986581','8結蛋捲【紅提袋裝】','13656','13656','40入原味蛋捲','組合-40入原味+紅提袋','290','290','0','0','0','0','1','0.0','1','290','2025-02-03','2025-01-25 23:28:46','2025-01-25 23:59:06',null,'1','2024-12-26') 2025-01-25 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '268883',`firm_id` = '8',`ordernumber` = 'O25010986581', `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` = '2025-02-03',`create_date` = '2025-01-25 23:28:46',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-12-26'where ordernumber = 'O25010986581' and product_code = '13656' 2025-01-25 23:59:06 -- == sync_order_detail end == 2025-01-25 23:59:06 -- == sync_order start == 2025-01-25 23:59:06 -- start:2025-01-25,end:2025-01-25 2025-01-25 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-25%' OR l.modify_date like '2025-01-25%'; 2025-01-25 23:59:06 -- == sync omo_order_list == 2025-01-25 23:59:06 -- == 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 ('167622','206721',2,'','','B25010022345','1','11','1','1','1','','','0','0000-00-00','0','0','0','','0','0','5600','326','桃園市','楊梅區','326','桃園市','楊梅區','5600','2025-01-25 08:18:03','2024-12-26') 2025-01-25 23:59:06 -- == 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 ('177820','453933',2,'','','B25010022465','1','11','1','1','1','','','0','0000-00-00','420','0','0','','0','30','8400','320','桃園市','中壢區','320','桃園市','中壢區','7950','2025-01-25 12:07:06','2024-12-26') 2025-01-25 23:59:06 -- == sync_order end == 2025-01-25 23:59:06 -- == sync_order_detail start == 2025-01-25 23:59:06 -- start:2025-01-25,end:2025-01-25 2025-01-25 23:59:06 -- == sync omo_order_detail == 2025-01-25 23:59:06 -- == SELECT order_detail == SELECT * from order_detail WHERE create_date like '2025-01-25%' OR modify_date like '2025-01-25%' 2025-01-25 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'B25010022345' and product_code = 'DG010266-01' 2025-01-25 23:59:07 -- == 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, 2,'34110','8','B25010022345','SNOOPY獨特心意-8結彌月提盒','DG010266-01','DG010266','原味','提盒-彌月SNOOPY(粉)-40入原味','300','300','0','1','0','0','1','0.0','10','3000','2025-02-13','2025-01-25 08:18:03','2025-01-25 23:59:07',null,'1','2024-12-26') 2025-01-25 23:59:07 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '34110',`firm_id` = '8',`ordernumber` = 'B25010022345', `product_name` = 'SNOOPY獨特心意-8結彌月提盒',`product_code` = 'DG010266-01',`product_sn` = 'DG010266',`product_spec` = '原味',`invoice_name` = '提盒-彌月SNOOPY(粉)-40入原味',`listprice` = '300',`sellingprice` = '300',`isadd` = '0',`isbaby` = '1',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '10',`total_price` = '3000',`etd` = '2025-02-13',`create_date` = '2025-01-25 08:18:03',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'B25010022345' and product_code = 'DG010266-01', `lunar_date` = '2024-12-26' 2025-01-25 23:59:07 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'B25010022345' and product_code = 'DG010266-02' 2025-01-25 23:59:07 -- == 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, 2,'34110','8','B25010022345','SNOOPY獨特心意-8結彌月提盒','DG010266-02','DG010266','芝麻','提盒-彌月SNOOPY(粉)-40入芝麻','300','300','0','1','0','0','1','0.0','7','2100','2025-02-13','2025-01-25 08:18:03','2025-01-25 23:59:07',null,'1','2024-12-26') 2025-01-25 23:59:07 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '34110',`firm_id` = '8',`ordernumber` = 'B25010022345', `product_name` = 'SNOOPY獨特心意-8結彌月提盒',`product_code` = 'DG010266-02',`product_sn` = 'DG010266',`product_spec` = '芝麻',`invoice_name` = '提盒-彌月SNOOPY(粉)-40入芝麻',`listprice` = '300',`sellingprice` = '300',`isadd` = '0',`isbaby` = '1',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '7',`total_price` = '2100',`etd` = '2025-02-13',`create_date` = '2025-01-25 08:18:03',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'B25010022345' and product_code = 'DG010266-02', `lunar_date` = '2024-12-26' 2025-01-25 23:59:07 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'B25010022345' and product_code = 'DG0103189-05' 2025-01-25 23:59:07 -- == 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, 2,'34110','8','B25010022345','SNOOPY美好探尋-8結彌月禮盒','DG0103189-05','DG0103189','原味+巧克力','禮盒-彌月SNOOPY(橘)【原味+巧克力】','500','500','0','1','0','0','1','0.0','1','500','2025-02-13','2025-01-25 08:18:03','2025-01-25 23:59:07',null,'1','2024-12-26') 2025-01-25 23:59:07 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '34110',`firm_id` = '8',`ordernumber` = 'B25010022345', `product_name` = 'SNOOPY美好探尋-8結彌月禮盒',`product_code` = 'DG0103189-05',`product_sn` = 'DG0103189',`product_spec` = '原味+巧克力',`invoice_name` = '禮盒-彌月SNOOPY(橘)【原味+巧克力】',`listprice` = '500',`sellingprice` = '500',`isadd` = '0',`isbaby` = '1',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '500',`etd` = '2025-02-13',`create_date` = '2025-01-25 08:18:03',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'B25010022345' and product_code = 'DG0103189-05', `lunar_date` = '2024-12-26' 2025-01-25 23:59:07 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'B25010022465' and product_code = 'DG010276-01' 2025-01-25 23:59:07 -- == 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, 2,'34111','8','B25010022465','【小王子聯名】玫瑰星球彌月提盒','DG010276-01','DG010276','原味','提盒-彌月小王子(NEW)-40入原味','300','300','0','0','0','0','1','0.0','28','8400','2025-02-13','2025-01-25 12:07:06','2025-01-25 23:59:07',null,'1','2024-12-26') 2025-01-25 23:59:07 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '34111',`firm_id` = '8',`ordernumber` = 'B25010022465', `product_name` = '【小王子聯名】玫瑰星球彌月提盒',`product_code` = 'DG010276-01',`product_sn` = 'DG010276',`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` = '28',`total_price` = '8400',`etd` = '2025-02-13',`create_date` = '2025-01-25 12:07:06',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'B25010022465' and product_code = 'DG010276-01', `lunar_date` = '2024-12-26' 2025-01-25 23:59:07 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'B25010022465' and product_code = 'ZP010151-01' 2025-01-25 23:59:07 -- == 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, 2,'34111','8','B25010022465','贈品-給足呵護童襪組','ZP010151-01','ZP010151','一組','贈品-sNug寶寶襪/童襪x4(款式隨機)','0','0','0','0','0','0','1','0.0','1','0','2025-02-13','2025-01-25 12:07:06','2025-01-25 23:59:07',null,'1','2024-12-26') 2025-01-25 23:59:07 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '34111',`firm_id` = '8',`ordernumber` = 'B25010022465', `product_name` = '贈品-給足呵護童襪組',`product_code` = 'ZP010151-01',`product_sn` = 'ZP010151',`product_spec` = '一組',`invoice_name` = '贈品-sNug寶寶襪/童襪x4(款式隨機)',`listprice` = '0',`sellingprice` = '0',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '0',`etd` = '2025-02-13',`create_date` = '2025-01-25 12:07:06',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'B25010022465' and product_code = 'ZP010151-01', `lunar_date` = '2024-12-26' 2025-01-25 23:59:07 -- == sync_order_detail end == 2025-01-25 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-25' OR o.updated_at = '2025-01-25') and o.deleted_at is null 2025-01-25 23:59:07 -- == sync_order_detail start == 2025-01-25 23:59:07 -- start:2025-01-25,end:2025-01-25 2025-01-25 23:59:07 -- step1: SELECT id,sku,combinations_product_spec_id FROM `product_specs` 2025-01-25 23:59:08 -- step2: SELECT * FROM `product_specs` WHERE combinations_product_spec_id is not null 2025-01-25 23:59:13 -- step3: SELECT id,product_code,product_sn FROM `omo_order_detail` WHERE `channel` = 6 and product_code like '%,%' and create_date LIKE '2025-01-25%';