2024-02-03 23:59:02 -- == sync_order start == 2024-02-03 23:59:02 -- start:2024-02-03,end:2024-02-03 2024-02-03 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-03%' OR l.modify_date like '2024-02-03%'; 2024-02-03 23:59:03 -- == sync omo_order_list == 2024-02-03 23:59:03 -- == update lake.omo_order_list == update omo_order_list set userId = '353184', process_status = '3', pay_status = '1', totalprice_after = '4800', lunar_date = '2023-11-06', invoice_status = '1',category_name = 'FB訂單,美村門市訂單', category_id = '10,32' where ordernumber = 'S23120133616' 2024-02-03 23:59:03 -- == update lake.omo_order_list == update omo_order_list set userId = '77744', process_status = '3', pay_status = '1', totalprice_after = '4630', lunar_date = '2023-11-16', invoice_status = '1',category_name = 'LINE@訂單,迪化門市訂單', category_id = '9,43' where ordernumber = 'S23120287690' 2024-02-03 23:59:03 -- == update lake.omo_order_list == update omo_order_list set userId = '368775', process_status = '3', pay_status = '1', totalprice_after = '2520', lunar_date = '2023-12-08', invoice_status = '1',category_name = '電話訂單', category_id = '12' where ordernumber = 'O24010656080' 2024-02-03 23:59:03 -- == update lake.omo_order_list == update omo_order_list set userId = '368826', process_status = '3', pay_status = '1', totalprice_after = '6180', lunar_date = '2023-12-08', invoice_status = '1',category_name = '電話訂單', category_id = '12' where ordernumber = 'S24010658787' 2024-02-03 23:59:03 -- == update lake.omo_order_list == update omo_order_list set userId = '356238', process_status = '3', pay_status = '1', totalprice_after = '960', lunar_date = '2023-12-09', invoice_status = '1',category_name = ',電話訂單', category_id = ',12' where ordernumber = 'S24010679112' 2024-02-03 23:59:03 -- == update lake.omo_order_list == update omo_order_list set userId = '368819', process_status = '3', pay_status = '1', totalprice_after = '450', lunar_date = '2023-12-09', invoice_status = '1',category_name = 'LINE@訂單', category_id = '9' where ordernumber = 'S24010694360' 2024-02-03 23:59:03 -- == update lake.omo_order_list == update omo_order_list set userId = '366884', process_status = '3', pay_status = '1', totalprice_after = '1008', lunar_date = '2023-12-09', invoice_status = '1',category_name = '', category_id = '' where ordernumber = 'S24010642011RB' 2024-02-03 23:59:03 -- == update lake.omo_order_list == update omo_order_list set userId = '368775', process_status = '3', pay_status = '1', totalprice_after = '1410', lunar_date = '2023-12-09', invoice_status = '1',category_name = '電話訂單', category_id = '12' where ordernumber = 'S24010697150' 2024-02-03 23:59:03 -- == update lake.omo_order_list == update omo_order_list set userId = '366941', process_status = '3', pay_status = '1', totalprice_after = '580', lunar_date = '2023-12-15', invoice_status = '1',category_name = 'LINE@訂單', category_id = '9' where ordernumber = 'S24010857829RB' 2024-02-03 23:59:03 -- == update lake.omo_order_list == update omo_order_list set userId = '253531', process_status = '3', pay_status = '1', totalprice_after = '150', lunar_date = '2023-12-19', invoice_status = '1',category_name = '電話訂單', category_id = '12' where ordernumber = 'S24010942122' 2024-02-03 23:59:03 -- == update lake.omo_order_list == update omo_order_list set userId = '367862', process_status = '3', pay_status = '1', totalprice_after = '870', lunar_date = '2023-12-19', invoice_status = '1',category_name = '電話訂單', category_id = '12' where ordernumber = 'S24010944236' 2024-02-03 23:59:03 -- == update lake.omo_order_list == update omo_order_list set userId = '373647', process_status = '2', pay_status = '1', totalprice_after = '4710', lunar_date = '2023-12-19', invoice_status = '1',category_name = '', category_id = '' where ordernumber = 'O24010952323' 2024-02-03 23:59:03 -- == update lake.omo_order_list == update omo_order_list set userId = '153983', process_status = '2', pay_status = '0', totalprice_after = '17280', lunar_date = '2023-12-23', invoice_status = '0',category_name = '插單群訂單', category_id = '14' where ordernumber = 'S24020003949' 2024-02-03 23:59:03 -- == update lake.omo_order_list == update omo_order_list set userId = '0', process_status = '2', pay_status = '7', totalprice_after = '0', lunar_date = '2023-12-23', invoice_status = '2',category_name = '補寄訂單', category_id = '7' where ordernumber = 'S24020004494' 2024-02-03 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 ('236342','266454',1,'','','O24020005046','1','1','1','1','1','','','0','0000-00-00','0','0','0','','150','0','4800','105','台北市','松山區','266','宜蘭縣','三星鄉','4950','2024-02-03 11:29:41','2023-12-24') 2024-02-03 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 ('338507','375320',1,'','','O24020005163','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','30','2880','236','新北市','土城區','333','桃園市','龜山區','3000','2024-02-03 13:56:10','2023-12-24') 2024-02-03 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 ('274588','312178',1,'','','O24020005234','1','11','1','0','0','','','0','0000-00-00','0','0','0','','150','0','1450','221','新北市','汐止區','221','新北市','汐止區','1600','2024-02-03 15:01:20','2023-12-24') 2024-02-03 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 ('274588','312178',1,'','','O24020005314','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','0','1450','221','新北市','汐止區','221','新北市','汐止區','1600','2024-02-03 15:05:50','2023-12-24') 2024-02-03 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 ('308790','345997',1,'','','O24020005440','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','0','1120','406','台中市','北屯區','928','屏東縣','東港鎮','1270','2024-02-03 17:11:13','2023-12-24') 2024-02-03 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 ('338644','375456',1,'','','O24020005587','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','30','1500','411','台中市','太平區','411','台中市','太平區','1620','2024-02-03 19:47:41','2023-12-24') 2024-02-03 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 ('336178','373034',1,'','','O24020005676','1','1','1','1','1','','','0','0000-00-00','0','0','0','','150','30','1880','251','新北市','淡水區','251','新北市','淡水區','2000','2024-02-03 20:42:53','2023-12-24') 2024-02-03 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 ('338360','375178',1,'','','O24020005761','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','30','800','553','南投縣','水里鄉','411','台中市','太平區','920','2024-02-03 22:32:12','2023-12-24') 2024-02-03 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 ('307284','344519',1,'','','O24020005898','1','2','1','0','0','','','0','0000-00-00','0','0','0','','150','0','595','505','彰化縣','鹿港鎮','505','彰化縣','鹿港鎮','745','2024-02-03 23:13:42','2023-12-24') 2024-02-03 23:59:03 -- == sync_order end == 2024-02-03 23:59:03 -- == sync_order_detail start == 2024-02-03 23:59:03 -- start:2024-02-03,end:2024-02-03 2024-02-03 23:59:03 -- == sync omo_order_detail == 2024-02-03 23:59:03 -- == SELECT order_detail == SELECT * from order_detail WHERE create_date like '2024-02-03%' OR modify_date like '2024-02-03%' 2024-02-03 23:59:04 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S23120133616' and product_code = 'DG0103148-05' 2024-02-03 23:59:04 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '215337',`firm_id` = '8',`ordernumber` = 'S23120133616', `product_name` = '金典8結禮盒',`product_code` = 'DG0103148-05',`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` = '10',`total_price` = '4800',`etd` = '2024-02-02',`create_date` = '2023-12-18 10:37:55',`modify_date` = '2024-02-03 18:40:37',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-11-06'where ordernumber = 'S23120133616' and product_code = 'DG0103148-05' 2024-02-03 23:59:04 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S23120133616' and product_code = '13044' 2024-02-03 23:59:04 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '215337',`firm_id` = '8',`ordernumber` = 'S23120133616', `product_name` = '加購-香酥醬燒海苔(純素)',`product_code` = '13044',`product_sn` = '13044',`product_spec` = '40g香酥醬燒海苔',`invoice_name` = '加購-香酥醬燒海苔(純素)',`listprice` = '110',`sellingprice` = '0',`isadd` = '1',`isbaby` = '0',`addprice` = '0',`is_exclude` = '1',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '0',`etd` = '2024-02-02',`create_date` = '2023-12-18 10:37:55',`modify_date` = '2024-02-03 18:40:37',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-11-06'where ordernumber = 'S23120133616' and product_code = '13044' 2024-02-03 23:59:04 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S23120133616' and product_code = '13045' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '215337',`firm_id` = '8',`ordernumber` = 'S23120133616', `product_name` = '加購-厚切椒鹽海苔(純素)',`product_code` = '13045',`product_sn` = '13045',`product_spec` = '40g厚切椒鹽海苔',`invoice_name` = '加購-厚切椒鹽海苔(純素)',`listprice` = '110',`sellingprice` = '0',`isadd` = '1',`isbaby` = '0',`addprice` = '0',`is_exclude` = '1',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '0',`etd` = '2024-02-02',`create_date` = '2023-12-18 10:37:55',`modify_date` = '2024-02-03 18:40:37',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-11-06'where ordernumber = 'S23120133616' and product_code = '13045' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S23120287690' and product_code = 'DG010101-01' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '216989',`firm_id` = '8',`ordernumber` = 'S23120287690', `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` = '3',`total_price` = '840',`etd` = '2024-02-03',`create_date` = '2023-12-28 09:18:32',`modify_date` = '2024-02-03 14:50:34',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-11-16'where ordernumber = 'S23120287690' and product_code = 'DG010101-01' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S23120287690' and product_code = 'DG010101-02' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '216989',`firm_id` = '8',`ordernumber` = 'S23120287690', `product_name` = '香醇芝麻蛋捲',`product_code` = 'DG010101-02',`product_sn` = 'DG010101',`product_spec` = '芝麻',`invoice_name` = '40入芝麻蛋捲',`listprice` = '320',`sellingprice` = '280',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '280.0',`amount` = '1',`total_price` = '280',`etd` = '2024-02-03',`create_date` = '2023-12-28 09:18:32',`modify_date` = '2024-02-03 14:50:34',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-11-16'where ordernumber = 'S23120287690' and product_code = 'DG010101-02' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S23120287690' and product_code = 'DG010312-05' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '216989',`firm_id` = '8',`ordernumber` = 'S23120287690', `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` = '3',`total_price` = '1440',`etd` = '2024-02-03',`create_date` = '2023-12-28 09:18:32',`modify_date` = '2024-02-03 14:50:34',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-11-16'where ordernumber = 'S23120287690' and product_code = 'DG010312-05' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S23120287690' and product_code = 'DG0103169-03' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '216989',`firm_id` = '8',`ordernumber` = 'S23120287690', `product_name` = '【皇家伯爵茶】金8結禮盒',`product_code` = 'DG0103169-03',`product_sn` = 'DG0103169',`product_spec` = '咖啡+32入皇家伯爵茶蛋捲',`invoice_name` = '禮盒-金8結【伯爵茶+咖啡】',`listprice` = '555',`sellingprice` = '555',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '2',`total_price` = '1110',`etd` = '2024-02-03',`create_date` = '2023-12-28 09:18:32',`modify_date` = '2024-02-03 14:50:34',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-11-16'where ordernumber = 'S23120287690' and product_code = 'DG0103169-03' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S23120287690' and product_code = 'DG010312-09' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '216989',`firm_id` = '8',`ordernumber` = 'S23120287690', `product_name` = '【芝麻+巧克力】金8結禮盒',`product_code` = 'DG010312-09',`product_sn` = 'DG010312',`product_spec` = '金8結盒',`invoice_name` = '禮盒-金8結【芝麻+巧克力】',`listprice` = '590',`sellingprice` = '480',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '480.0',`amount` = '1',`total_price` = '480',`etd` = '2024-02-03',`create_date` = '2023-12-28 09:18:32',`modify_date` = '2024-02-03 14:50:34',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-11-16'where ordernumber = 'S23120287690' and product_code = 'DG010312-09' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S23120287690' and product_code = 'DG010312-02' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '216989',`firm_id` = '8',`ordernumber` = 'S23120287690', `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-03',`create_date` = '2023-12-28 09:18:32',`modify_date` = '2024-02-03 14:50:34',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-11-16'where ordernumber = 'S23120287690' and product_code = 'DG010312-02' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S23120287690' and product_code = 'ZP0101102-01' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '216989',`firm_id` = '8',`ordernumber` = 'S23120287690', `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` = '1',`total_price` = '0',`etd` = '2024-02-03',`create_date` = '2023-12-28 09:18:32',`modify_date` = '2024-02-03 14:50:34',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-11-16'where ordernumber = 'S23120287690' and product_code = 'ZP0101102-01' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24010656080' and product_code = 'DG0103148-09' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '225084',`firm_id` = '8',`ordernumber` = 'O24010656080', `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` = '5',`total_price` = '2400',`etd` = '2024-02-01',`create_date` = '2024-01-18 15:42:19',`modify_date` = '2024-02-03 10:35:17',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-08'where ordernumber = 'O24010656080' and product_code = 'DG0103148-09' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24010658787' and product_code = 'DG010312-05' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '225112',`firm_id` = '8',`ordernumber` = 'S24010658787', `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-01',`create_date` = '2024-01-18 17:10:46',`modify_date` = '2024-02-03 10:30:57',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-12-08'where ordernumber = 'S24010658787' and product_code = 'DG010312-05' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24010658787' and product_code = 'DG010315-02' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '225112',`firm_id` = '8',`ordernumber` = 'S24010658787', `product_name` = '金8結肉酥酥禮盒',`product_code` = 'DG010315-02',`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` = '6',`total_price` = '3330',`etd` = '2024-02-01',`create_date` = '2024-01-18 17:10:46',`modify_date` = '2024-02-03 10:30:57',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-12-08'where ordernumber = 'S24010658787' and product_code = 'DG010315-02' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24010679112' and product_code = 'DG0103148-09' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '225317',`firm_id` = '8',`ordernumber` = 'S24010679112', `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` = '2024-02-01',`create_date` = '2024-01-19 09:21:06',`modify_date` = '2024-02-03 10:30:03',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-12-09'where ordernumber = 'S24010679112' and product_code = 'DG0103148-09' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24010694360' and product_code = 'DG0103148-02' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '225481',`firm_id` = '8',`ordernumber` = 'S24010694360', `product_name` = '金典8結禮盒',`product_code` = 'DG0103148-02',`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` = '1',`total_price` = '480',`etd` = '2024-02-01',`create_date` = '2024-01-19 16:18:03',`modify_date` = '2024-02-03 10:29:04',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-12-09'where ordernumber = 'S24010694360' and product_code = 'DG0103148-02' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24010642011RB' and product_code = 'DG010312-05' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '225483',`firm_id` = '8',`ordernumber` = 'S24010642011RB', `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` = '3',`total_price` = '1440',`etd` = '2024-02-01',`create_date` = '2024-01-18 10:25:11',`modify_date` = '2024-02-03 10:28:17',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-12-08'where ordernumber = 'S24010642011RB' and product_code = 'DG010312-05' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24010697150' and product_code = 'DG0103148-09' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '225513',`firm_id` = '8',`ordernumber` = 'S24010697150', `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` = '3',`total_price` = '1440',`etd` = '2024-02-01',`create_date` = '2024-01-19 17:34:57',`modify_date` = '2024-02-03 10:27:32',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-12-09'where ordernumber = 'S24010697150' and product_code = 'DG0103148-09' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24010857829RB' and product_code = '13656' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '227273',`firm_id` = '8',`ordernumber` = 'S24010857829RB', `product_name` = '8結蛋捲【紅提袋裝】',`product_code` = '13656',`product_sn` = '13656',`product_spec` = '40入原味蛋捲',`invoice_name` = '組合-40入原味+紅提袋',`listprice` = '290',`sellingprice` = '290',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '290',`etd` = '2024-02-01',`create_date` = '2024-01-25 11:15:34',`modify_date` = '2024-02-03 10:26:38',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-12-15'where ordernumber = 'S24010857829RB' and product_code = '13656' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24010857829RB' and product_code = '13657' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '227273',`firm_id` = '8',`ordernumber` = 'S24010857829RB', `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` = '2024-02-01',`create_date` = '2024-01-25 11:15:34',`modify_date` = '2024-02-03 10:26:38',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-12-15'where ordernumber = 'S24010857829RB' and product_code = '13657' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24010942122' and product_code = '40000' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228037',`firm_id` = '8',`ordernumber` = 'S24010942122', `product_name` = '運費',`product_code` = '40000',`product_sn` = '40000',`product_spec` = '150運費',`invoice_name` = '150運費',`listprice` = '150',`sellingprice` = '150',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '1',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '150',`etd` = '2024-02-01',`create_date` = '2024-01-29 11:49:02',`modify_date` = '2024-02-03 10:25:49',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-12-19'where ordernumber = 'S24010942122' and product_code = '40000' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24010944236' and product_code = '13658' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228059',`firm_id` = '8',`ordernumber` = 'S24010944236', `product_name` = '8結蛋捲【紅提袋裝】',`product_code` = '13658',`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-01',`create_date` = '2024-01-29 12:42:08',`modify_date` = '2024-02-03 09:09:19',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2023-12-19'where ordernumber = 'S24010944236' and product_code = '13658' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24010952323' and product_code = 'DG010261-01' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228142',`firm_id` = '8',`ordernumber` = 'O24010952323', `product_name` = '【SNOOPY聯名】美好食光-8結提盒',`product_code` = 'DG010261-01',`product_sn` = 'DG010261',`product_spec` = '40入原味蛋捲',`invoice_name` = '提盒-SNOOPY-40入原味',`listprice` = '300',`sellingprice` = '300',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '13',`total_price` = '3900',`etd` = '2024-02-03',`create_date` = '2024-01-29 16:56:51',`modify_date` = '2024-02-03 08:03:55',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-19'where ordernumber = 'O24010952323' and product_code = 'DG010261-01' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24010952323' and product_code = 'DG010261-05' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228142',`firm_id` = '8',`ordernumber` = 'O24010952323', `product_name` = '【SNOOPY聯名】美好食光-8結提盒',`product_code` = 'DG010261-05',`product_sn` = 'DG010261',`product_spec` = '40入巧克力蛋捲',`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-03',`create_date` = '2024-01-29 16:56:51',`modify_date` = '2024-02-03 08:03:55',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-19'where ordernumber = 'O24010952323' and product_code = 'DG010261-05' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24010952323' and product_code = 'BP010157-01' 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228142',`firm_id` = '8',`ordernumber` = 'O24010952323', `product_name` = '[加購]加購-SNOOPY心意提袋',`product_code` = 'BP010157-01',`product_sn` = 'BP010157',`product_spec` = '-',`invoice_name` = '加購-SNOOPY心意提袋',`listprice` = '390',`sellingprice` = '390',`isadd` = '1',`isbaby` = '1',`addprice` = '390',`is_exclude` = '0',`freight_type` = '0',`commission` = '0.0',`amount` = '1',`total_price` = '390',`etd` = '2024-02-03',`create_date` = '2024-01-29 16:56:51',`modify_date` = '2024-02-03 08:03:55',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-19'where ordernumber = 'O24010952323' and product_code = 'BP010157-01' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020005046' and product_code = 'DG010312-02' 2024-02-03 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,'228378','8','O24020005046','【原味+芝麻】金8結禮盒','DG010312-02','DG010312','金8結盒','禮盒-金8結【原味+芝麻】','590','480','0','0','0','0','1','480.0','10','4800','2024-02-15','2024-02-03 11:29:41','2024-02-03 23:59:05',null,'1','2023-12-24') 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228378',`firm_id` = '8',`ordernumber` = 'O24020005046', `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` = '10',`total_price` = '4800',`etd` = '2024-02-15',`create_date` = '2024-02-03 11:29:41',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-24'where ordernumber = 'O24020005046' and product_code = 'DG010312-02' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020005163' and product_code = 'DG010312-03' 2024-02-03 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,'228379','8','O24020005163','【原味+咖啡】金8結禮盒','DG010312-03','DG010312','金8結盒','禮盒-金8結【原味+咖啡】','590','480','0','0','0','0','1','480.0','6','2880','2024-02-15','2024-02-03 13:56:10','2024-02-03 23:59:05',null,'1','2023-12-24') 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228379',`firm_id` = '8',`ordernumber` = 'O24020005163', `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-03 13:56:10',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-24'where ordernumber = 'O24020005163' and product_code = 'DG010312-03' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020005234' and product_code = 'DG010101-02' 2024-02-03 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,'228380','8','O24020005234','香醇芝麻蛋捲','DG010101-02','DG010101','芝麻','40入芝麻蛋捲','320','280','0','0','0','0','1','280.0','5','1400','2024-02-17','2024-02-03 15:01:20','2024-02-03 23:59:05',null,'1','2023-12-24') 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228380',`firm_id` = '8',`ordernumber` = 'O24020005234', `product_name` = '香醇芝麻蛋捲',`product_code` = 'DG010101-02',`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` = '5',`total_price` = '1400',`etd` = '2024-02-17',`create_date` = '2024-02-03 15:01:20',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-24'where ordernumber = 'O24020005234' and product_code = 'DG010101-02' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020005234' and product_code = 'DG010404-01' 2024-02-03 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,'228380','8','O24020005234','[加購]紅色提袋','DG010404-01','DG010404','-','紅色提袋','10','10','1','0','10','0','0','0.0','5','50','2024-02-17','2024-02-03 15:01:20','2024-02-03 23:59:05',null,'1','2023-12-24') 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228380',`firm_id` = '8',`ordernumber` = 'O24020005234', `product_name` = '[加購]紅色提袋',`product_code` = 'DG010404-01',`product_sn` = 'DG010404',`product_spec` = '-',`invoice_name` = '紅色提袋',`listprice` = '10',`sellingprice` = '10',`isadd` = '1',`isbaby` = '0',`addprice` = '10',`is_exclude` = '0',`freight_type` = '0',`commission` = '0.0',`amount` = '5',`total_price` = '50',`etd` = '2024-02-17',`create_date` = '2024-02-03 15:01:20',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-24'where ordernumber = 'O24020005234' and product_code = 'DG010404-01' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020005314' and product_code = 'DG010101-01' 2024-02-03 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,'228381','8','O24020005314','經典原味蛋捲','DG010101-01','DG010101','原味','40入原味蛋捲','320','280','0','0','0','0','1','280.0','5','1400','2024-02-17','2024-02-03 15:05:50','2024-02-03 23:59:05',null,'1','2023-12-24') 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228381',`firm_id` = '8',`ordernumber` = 'O24020005314', `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` = '5',`total_price` = '1400',`etd` = '2024-02-17',`create_date` = '2024-02-03 15:05:50',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-24'where ordernumber = 'O24020005314' and product_code = 'DG010101-01' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020005314' and product_code = 'DG010404-01' 2024-02-03 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,'228381','8','O24020005314','[加購]紅色提袋','DG010404-01','DG010404','-','紅色提袋','10','10','1','0','10','0','0','0.0','5','50','2024-02-17','2024-02-03 15:05:50','2024-02-03 23:59:05',null,'1','2023-12-24') 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228381',`firm_id` = '8',`ordernumber` = 'O24020005314', `product_name` = '[加購]紅色提袋',`product_code` = 'DG010404-01',`product_sn` = 'DG010404',`product_spec` = '-',`invoice_name` = '紅色提袋',`listprice` = '10',`sellingprice` = '10',`isadd` = '1',`isbaby` = '0',`addprice` = '10',`is_exclude` = '0',`freight_type` = '0',`commission` = '0.0',`amount` = '5',`total_price` = '50',`etd` = '2024-02-17',`create_date` = '2024-02-03 15:05:50',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-24'where ordernumber = 'O24020005314' and product_code = 'DG010404-01' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020005440' and product_code = 'DG010101-01' 2024-02-03 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,'228382','8','O24020005440','經典原味蛋捲','DG010101-01','DG010101','原味','40入原味蛋捲','320','280','0','0','0','0','1','280.0','3','840','2024-02-15','2024-02-03 17:11:13','2024-02-03 23:59:05',null,'1','2023-12-24') 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228382',`firm_id` = '8',`ordernumber` = 'O24020005440', `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` = '3',`total_price` = '840',`etd` = '2024-02-15',`create_date` = '2024-02-03 17:11:13',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-24'where ordernumber = 'O24020005440' and product_code = 'DG010101-01' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020005440' and product_code = 'DG010101-03' 2024-02-03 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,'228382','8','O24020005440','極上咖啡蛋捲','DG010101-03','DG010101','咖啡','40入咖啡蛋捲','320','280','0','0','0','0','1','280.0','1','280','2024-02-15','2024-02-03 17:11:13','2024-02-03 23:59:05',null,'1','2023-12-24') 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228382',`firm_id` = '8',`ordernumber` = 'O24020005440', `product_name` = '極上咖啡蛋捲',`product_code` = 'DG010101-03',`product_sn` = 'DG010101',`product_spec` = '咖啡',`invoice_name` = '40入咖啡蛋捲',`listprice` = '320',`sellingprice` = '280',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '280.0',`amount` = '1',`total_price` = '280',`etd` = '2024-02-15',`create_date` = '2024-02-03 17:11:13',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-24'where ordernumber = 'O24020005440' and product_code = 'DG010101-03' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020005587' and product_code = 'DG010394-03' 2024-02-03 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,'228383','8','O24020005587','游魚轉心瓶8結蛋捲禮盒【國立故宮博物院聯名】','DG010394-03','DG010394','原味蛋捲,咖啡蛋捲','禮盒-故宮(文物款)【原味+咖啡】','500','500','0','0','0','0','1','0.0','3','1500','2024-02-15','2024-02-03 19:47:41','2024-02-03 23:59:05',null,'1','2023-12-24') 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228383',`firm_id` = '8',`ordernumber` = 'O24020005587', `product_name` = '游魚轉心瓶8結蛋捲禮盒【國立故宮博物院聯名】',`product_code` = 'DG010394-03',`product_sn` = 'DG010394',`product_spec` = '原味蛋捲,咖啡蛋捲',`invoice_name` = '禮盒-故宮(文物款)【原味+咖啡】',`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` = '2024-02-15',`create_date` = '2024-02-03 19:47:41',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-24'where ordernumber = 'O24020005587' and product_code = 'DG010394-03' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020005676' and product_code = 'DG010261-01' 2024-02-03 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,'228384','8','O24020005676','【SNOOPY聯名】美好食光-8結提盒','DG010261-01','DG010261','40入原味蛋捲','提盒-SNOOPY-40入原味','300','300','0','0','0','0','1','0.0','1','300','2024-02-15','2024-02-03 20:42:53','2024-02-03 23:59:05',null,'1','2023-12-24') 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228384',`firm_id` = '8',`ordernumber` = 'O24020005676', `product_name` = '【SNOOPY聯名】美好食光-8結提盒',`product_code` = 'DG010261-01',`product_sn` = 'DG010261',`product_spec` = '40入原味蛋捲',`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-15',`create_date` = '2024-02-03 20:42:53',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-24'where ordernumber = 'O24020005676' and product_code = 'DG010261-01' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020005676' and product_code = 'BP010161-01' 2024-02-03 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,'228384','8','O24020005676','[加購]加購-SNOOPY熱壓三明治機','BP010161-01','BP010161','-','加購-SNOOPY熱壓三明治機','1580','1580','1','1','1580','0','0','0.0','1','1580','2024-02-15','2024-02-03 20:42:53','2024-02-03 23:59:05',null,'1','2023-12-24') 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228384',`firm_id` = '8',`ordernumber` = 'O24020005676', `product_name` = '[加購]加購-SNOOPY熱壓三明治機',`product_code` = 'BP010161-01',`product_sn` = 'BP010161',`product_spec` = '-',`invoice_name` = '加購-SNOOPY熱壓三明治機',`listprice` = '1580',`sellingprice` = '1580',`isadd` = '1',`isbaby` = '1',`addprice` = '1580',`is_exclude` = '0',`freight_type` = '0',`commission` = '0.0',`amount` = '1',`total_price` = '1580',`etd` = '2024-02-15',`create_date` = '2024-02-03 20:42:53',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-24'where ordernumber = 'O24020005676' and product_code = 'BP010161-01' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020005761' and product_code = 'DG0103155-14' 2024-02-03 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,'228385','8','O24020005761','【SNOOPY聯名】友你相伴-8結禮盒','DG0103155-14','DG0103155','海苔蛋捲,巧克力蛋捲','禮盒-SNOOPY【海苔+巧克力】','500','500','0','0','0','0','1','0.0','1','500','2024-02-15','2024-02-03 22:32:12','2024-02-03 23:59:05',null,'1','2023-12-24') 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228385',`firm_id` = '8',`ordernumber` = 'O24020005761', `product_name` = '【SNOOPY聯名】友你相伴-8結禮盒',`product_code` = 'DG0103155-14',`product_sn` = 'DG0103155',`product_spec` = '海苔蛋捲,巧克力蛋捲',`invoice_name` = '禮盒-SNOOPY【海苔+巧克力】',`listprice` = '500',`sellingprice` = '500',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '500',`etd` = '2024-02-15',`create_date` = '2024-02-03 22:32:12',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-24'where ordernumber = 'O24020005761' and product_code = 'DG0103155-14' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020005761' and product_code = 'DG010261-01' 2024-02-03 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,'228385','8','O24020005761','【SNOOPY聯名】美好食光-8結提盒','DG010261-01','DG010261','40入原味蛋捲','提盒-SNOOPY-40入原味','300','300','0','0','0','0','1','0.0','1','300','2024-02-15','2024-02-03 22:32:12','2024-02-03 23:59:05',null,'1','2023-12-24') 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228385',`firm_id` = '8',`ordernumber` = 'O24020005761', `product_name` = '【SNOOPY聯名】美好食光-8結提盒',`product_code` = 'DG010261-01',`product_sn` = 'DG010261',`product_spec` = '40入原味蛋捲',`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-15',`create_date` = '2024-02-03 22:32:12',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-24'where ordernumber = 'O24020005761' and product_code = 'DG010261-01' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020005898' and product_code = 'DG010222-05' 2024-02-03 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,'228386','8','O24020005898','【小王子聯名】夢想旅程8結提盒','DG010222-05','DG010222','40入巧克力蛋捲','提盒-小王子(紅)-40入巧克力','300','300','0','0','0','0','1','0.0','1','300','2024-03-15','2024-02-03 23:13:42','2024-02-03 23:59:05',null,'1','2023-12-24') 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228386',`firm_id` = '8',`ordernumber` = 'O24020005898', `product_name` = '【小王子聯名】夢想旅程8結提盒',`product_code` = 'DG010222-05',`product_sn` = 'DG010222',`product_spec` = '40入巧克力蛋捲',`invoice_name` = '提盒-小王子(紅)-40入巧克力',`listprice` = '300',`sellingprice` = '300',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '300',`etd` = '2024-03-15',`create_date` = '2024-02-03 23:13:42',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-24'where ordernumber = 'O24020005898' and product_code = 'DG010222-05' 2024-02-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24020005898' and product_code = 'DG010204-02' 2024-02-03 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,'228386','8','O24020005898','8結蛋捲【品牌提盒裝】','DG010204-02','DG010204','芝麻','提盒-品牌(橘)-40入芝麻','295','295','0','0','0','0','1','0.0','1','295','2024-03-15','2024-02-03 23:13:42','2024-02-03 23:59:05',null,'1','2023-12-24') 2024-02-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '228386',`firm_id` = '8',`ordernumber` = 'O24020005898', `product_name` = '8結蛋捲【品牌提盒裝】',`product_code` = 'DG010204-02',`product_sn` = 'DG010204',`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` = '2024-03-15',`create_date` = '2024-02-03 23:13:42',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2023-12-24'where ordernumber = 'O24020005898' and product_code = 'DG010204-02' 2024-02-03 23:59:05 -- == sync_order_detail end == 2024-02-03 23:59:05 -- == sync_order start == 2024-02-03 23:59:05 -- start:2024-02-03,end:2024-02-03 2024-02-03 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-03%' OR l.modify_date like '2024-02-03%'; 2024-02-03 23:59:05 -- == sync omo_order_list == 2024-02-03 23:59:05 -- == 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 ('98517','253528',2,'','','B24020002152','1','2','1','1','1','','','0','0000-00-00','625','0','0','','0','0','12500','509','彰化縣','伸港鄉','509','彰化縣','伸港鄉','11875','2024-02-03 12:03:19','2023-12-24') 2024-02-03 23:59:05 -- == sync_order end == 2024-02-03 23:59:05 -- == sync_order_detail start == 2024-02-03 23:59:05 -- start:2024-02-03,end:2024-02-03 2024-02-03 23:59:05 -- == sync omo_order_detail == 2024-02-03 23:59:05 -- == SELECT order_detail == SELECT * from order_detail WHERE create_date like '2024-02-03%' OR modify_date like '2024-02-03%' 2024-02-03 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'B24020002152' and product_code = 'DG010222-02' 2024-02-03 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, 2,'30168','8','B24020002152','【小王子聯名】夢想旅程8結彌月提盒','DG010222-02','DG010222','芝麻','提盒-小王子(紅)-40入芝麻','300','300','0','1','0','0','1','0.0','40','12000','2024-02-16','2024-02-03 12:03:19','2024-02-03 23:59:06',null,'1','2023-12-24') 2024-02-03 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '30168',`firm_id` = '8',`ordernumber` = 'B24020002152', `product_name` = '【小王子聯名】夢想旅程8結彌月提盒',`product_code` = 'DG010222-02',`product_sn` = 'DG010222',`product_spec` = '芝麻',`invoice_name` = '提盒-小王子(紅)-40入芝麻',`listprice` = '300',`sellingprice` = '300',`isadd` = '0',`isbaby` = '1',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '40',`total_price` = '12000',`etd` = '2024-02-16',`create_date` = '2024-02-03 12:03:19',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'B24020002152' and product_code = 'DG010222-02', `lunar_date` = '2023-12-24' 2024-02-03 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'B24020002152' and product_code = 'DG010383-02' 2024-02-03 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, 2,'30168','8','B24020002152','【小王子聯名】星光飛行8結彌月禮盒','DG010383-02','DG010383','原味+芝麻','禮盒-小王子(紅)【原味+芝麻】','500','500','0','1','0','0','1','0.0','1','500','2024-02-16','2024-02-03 12:03:19','2024-02-03 23:59:06',null,'1','2023-12-24') 2024-02-03 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '30168',`firm_id` = '8',`ordernumber` = 'B24020002152', `product_name` = '【小王子聯名】星光飛行8結彌月禮盒',`product_code` = 'DG010383-02',`product_sn` = 'DG010383',`product_spec` = '原味+芝麻',`invoice_name` = '禮盒-小王子(紅)【原味+芝麻】',`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` = '2024-02-16',`create_date` = '2024-02-03 12:03:19',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'B24020002152' and product_code = 'DG010383-02', `lunar_date` = '2023-12-24' 2024-02-03 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'B24020002152' and product_code = 'ZP010152-01' 2024-02-03 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, 2,'30168','8','B24020002152','贈品-rercolte潔膚儀(顏色隨機)','ZP010152-01','ZP010152','贈品-rercolte潔膚儀(顏色隨機)','贈品-rercolte潔膚儀(顏色隨機)','0','0','0','0','0','0','1','0.0','1','0','2024-02-16','2024-02-03 12:03:19','2024-02-03 23:59:06',null,'1','2023-12-24') 2024-02-03 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '30168',`firm_id` = '8',`ordernumber` = 'B24020002152', `product_name` = '贈品-rercolte潔膚儀(顏色隨機)',`product_code` = 'ZP010152-01',`product_sn` = 'ZP010152',`product_spec` = '贈品-rercolte潔膚儀(顏色隨機)',`invoice_name` = '贈品-rercolte潔膚儀(顏色隨機)',`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` = '2024-02-16',`create_date` = '2024-02-03 12:03:19',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'B24020002152' and product_code = 'ZP010152-01', `lunar_date` = '2023-12-24' 2024-02-03 23:59:06 -- == sync_order_detail end == 2024-02-03 23:59:06 -- == 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-03' OR o.updated_at = '2024-02-03') and o.deleted_at is null 2024-02-03 23:59:06 -- == sync_order_detail start == 2024-02-03 23:59:06 -- start:2024-02-03,end:2024-02-03 2024-02-03 23:59:06 -- step1: SELECT id,sku,combinations_product_spec_id FROM `product_specs` 2024-02-03 23:59:06 -- step2: SELECT * FROM `product_specs` WHERE combinations_product_spec_id is not null 2024-02-03 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-03%';