2024-10-03 23:59:02 -- == sync_order start == 2024-10-03 23:59:02 -- start:2024-10-03,end:2024-10-03 2024-10-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-10-03%' OR l.modify_date like '2024-10-03%'; 2024-10-03 23:59:03 -- == sync omo_order_list == 2024-10-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 ('88945','60757',1,'','','O24100009999','1','2','1','1','1','','','0','0000-00-00','655','0','0','','0','0','13100','701','台南市','東區','701','台南市','東區','12445','2024-10-03 03:26:53','2024-09-01') 2024-10-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 ('387667','423962',1,'','','O24100010059','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','0','500','303','新竹縣','湖口鄉','730','台南市','新營區','650','2024-10-03 09:18:08','2024-09-01') 2024-10-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 ('247857','281246',1,'','','O24100010184','1','1','1','1','1','','','0','0000-00-00','0','0','0','','150','0','1400','804','高雄市','鼓山區','804','高雄市','鼓山區','1550','2024-10-03 11:00:31','2024-09-01') 2024-10-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 ('387674','423969',1,'','','O24100010272','1','1','1','1','1','','','0','0000-00-00','0','0','0','','150','30','990','640','雲林縣','斗六市','640','雲林縣','斗六市','1110','2024-10-03 13:16:43','2024-09-01') 2024-10-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 ('387662','423957',1,'','','O24100010378','1','2','1','1','1','','','0','0000-00-00','0','0','0','','150','30','1310','300','新竹市','東區','300','新竹市','東區','1430','2024-10-03 13:41:05','2024-09-01') 2024-10-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 ('240582','272592',1,'','','O24100010493','1','11','1','1','1','05600209','臺北市中正區河堤國小','0','0000-00-00','0','0','0','','150','0','3360','100','台北市','中正區','100','台北市','中正區','3510','2024-10-03 15:13:46','2024-09-01') 2024-10-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 ('387671','423966',1,'','','O24100010568','1','1','1','0','0','','','0','0000-00-00','0','0','0','','150','0','500','509','彰化縣','伸港鄉','509','彰化縣','伸港鄉','650','2024-10-03 15:34:54','2024-09-01') 2024-10-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 ('387681','423976',1,'','','O24100010651','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','30','740','923','屏東縣','萬巒鄉','811','高雄市','楠梓區','860','2024-10-03 18:01:20','2024-09-01') 2024-10-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 ('198505','164513',1,'','','O24100010716','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','0','1160','261','宜蘭縣','頭城鎮','261','宜蘭縣','頭城鎮','1310','2024-10-03 19:47:56','2024-09-01') 2024-10-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 ('387694','423989',1,'','','O24100010854','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','30','800','351','苗栗縣','頭份市','351','苗栗縣','頭份市','920','2024-10-03 20:43:08','2024-09-01') 2024-10-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 ('387698','423993',1,'','','O24100010969','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','30','555','334','桃園市','八德區','334','桃園市','八德區','675','2024-10-03 21:33:35','2024-09-01') 2024-10-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 ('149324','117099',1,'','','O24100011092','1','1','1','1','1','','','0','0000-00-00','0','0','0','','150','0','1560','505','彰化縣','鹿港鎮','505','彰化縣','鹿港鎮','1710','2024-10-03 22:10:39','2024-09-01') 2024-10-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 ('387702','423997',1,'','','O24100011182','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','30','1970','638','雲林縣','麥寮鄉','638','雲林縣','麥寮鄉','2090','2024-10-03 22:32:29','2024-09-01') 2024-10-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 ('314653','351796',1,'','','O24100011253','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','0','2360','327','桃園市','新屋區','327','桃園市','新屋區','2510','2024-10-03 22:48:18','2024-09-01') 2024-10-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 ('279837','317389',1,'','','O24100011343','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','100','1160','730','台南市','新營區','730','台南市','新營區','1210','2024-10-03 23:12:04','2024-09-01') 2024-10-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 ('273259','310858',1,'','','O24100011482','1','1','1','1','1','','','0','0000-00-00','0','0','0','','150','150','2600','612','嘉義縣','太保市','613','嘉義縣','朴子市','2600','2024-10-03 23:41:16','2024-09-01') 2024-10-03 23:59:03 -- == sync_order end == 2024-10-03 23:59:03 -- == sync_order_detail start == 2024-10-03 23:59:03 -- start:2024-10-03,end:2024-10-03 2024-10-03 23:59:03 -- == sync omo_order_detail == 2024-10-03 23:59:03 -- == SELECT order_detail == SELECT * from order_detail WHERE create_date like '2024-10-03%' OR modify_date like '2024-10-03%' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100009999' and product_code = 'DG010206-02' 2024-10-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,'249412','8','O24100009999','8結蛋捲【紅提盒裝】','DG010206-02','DG010206','芝麻','提盒-品牌(紅)-40入芝麻蛋捲','295','295','0','0','0','0','1','0.0','5','1475','2024-10-07','2024-10-03 03:26:53','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249412',`firm_id` = '8',`ordernumber` = 'O24100009999', `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` = '5',`total_price` = '1475',`etd` = '2024-10-07',`create_date` = '2024-10-03 03:26:53',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100009999' and product_code = 'DG010206-02' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100009999' and product_code = 'DG010206-01' 2024-10-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,'249412','8','O24100009999','8結蛋捲【紅提盒裝】','DG010206-01','DG010206','原味','提盒-品牌(紅)-40入原味蛋捲','295','295','0','0','0','0','1','0.0','6','1770','2024-10-07','2024-10-03 03:26:53','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249412',`firm_id` = '8',`ordernumber` = 'O24100009999', `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` = '6',`total_price` = '1770',`etd` = '2024-10-07',`create_date` = '2024-10-03 03:26:53',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100009999' and product_code = 'DG010206-01' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100009999' and product_code = 'DG010206-05' 2024-10-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,'249412','8','O24100009999','8結蛋捲【紅提盒裝】','DG010206-05','DG010206','巧克力','提盒-品牌(紅)-40入巧克力蛋捲','295','295','0','0','0','0','1','0.0','2','590','2024-10-07','2024-10-03 03:26:53','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249412',`firm_id` = '8',`ordernumber` = 'O24100009999', `product_name` = '8結蛋捲【紅提盒裝】',`product_code` = 'DG010206-05',`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` = '2',`total_price` = '590',`etd` = '2024-10-07',`create_date` = '2024-10-03 03:26:53',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100009999' and product_code = 'DG010206-05' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100009999' and product_code = 'DG010206-03' 2024-10-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,'249412','8','O24100009999','8結蛋捲【紅提盒裝】','DG010206-03','DG010206','咖啡','提盒-品牌(紅)-40入咖啡蛋捲','295','295','0','0','0','0','1','0.0','2','590','2024-10-07','2024-10-03 03:26:53','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249412',`firm_id` = '8',`ordernumber` = 'O24100009999', `product_name` = '8結蛋捲【紅提盒裝】',`product_code` = 'DG010206-03',`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` = '2',`total_price` = '590',`etd` = '2024-10-07',`create_date` = '2024-10-03 03:26:53',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100009999' and product_code = 'DG010206-03' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100009999' and product_code = 'DG0103182-424' 2024-10-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,'249412','8','O24100009999','金巧8結禮盒','DG0103182-424','DG0103182','巧克力,鳳梨酥,芝麻糕','禮盒-金巧8結【(巧克力)-鳳梨酥+芝麻糕】','580','580','0','0','0','0','1','0.0','5','2900','2024-10-07','2024-10-03 03:26:53','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249412',`firm_id` = '8',`ordernumber` = 'O24100009999', `product_name` = '金巧8結禮盒',`product_code` = 'DG0103182-424',`product_sn` = 'DG0103182',`product_spec` = '巧克力,鳳梨酥,芝麻糕',`invoice_name` = '禮盒-金巧8結【(巧克力)-鳳梨酥+芝麻糕】',`listprice` = '580',`sellingprice` = '580',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '5',`total_price` = '2900',`etd` = '2024-10-07',`create_date` = '2024-10-03 03:26:53',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100009999' and product_code = 'DG0103182-424' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100009999' and product_code = 'DG0103182-04' 2024-10-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,'249412','8','O24100009999','金巧8結禮盒','DG0103182-04','DG0103182','原味,鳳梨酥,芝麻糕','禮盒-金巧8結【(原味)-鳳梨酥+芝麻糕】','580','580','0','0','0','0','1','0.0','5','2900','2024-10-07','2024-10-03 03:26:53','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249412',`firm_id` = '8',`ordernumber` = 'O24100009999', `product_name` = '金巧8結禮盒',`product_code` = 'DG0103182-04',`product_sn` = 'DG0103182',`product_spec` = '原味,鳳梨酥,芝麻糕',`invoice_name` = '禮盒-金巧8結【(原味)-鳳梨酥+芝麻糕】',`listprice` = '580',`sellingprice` = '580',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '5',`total_price` = '2900',`etd` = '2024-10-07',`create_date` = '2024-10-03 03:26:53',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100009999' and product_code = 'DG0103182-04' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100009999' and product_code = 'DG0103182-46' 2024-10-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,'249412','8','O24100009999','金巧8結禮盒','DG0103182-46','DG0103182','原味,芝麻糕,國寶茶','禮盒-金巧8結【(原味)-芝麻糕+國寶茶】','575','575','0','0','0','0','1','0.0','5','2875','2024-10-07','2024-10-03 03:26:53','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249412',`firm_id` = '8',`ordernumber` = 'O24100009999', `product_name` = '金巧8結禮盒',`product_code` = 'DG0103182-46',`product_sn` = 'DG0103182',`product_spec` = '原味,芝麻糕,國寶茶',`invoice_name` = '禮盒-金巧8結【(原味)-芝麻糕+國寶茶】',`listprice` = '575',`sellingprice` = '575',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '5',`total_price` = '2875',`etd` = '2024-10-07',`create_date` = '2024-10-03 03:26:53',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100009999' and product_code = 'DG0103182-46' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100009999' and product_code = 'ZP010524-01' 2024-10-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,'249412','8','O24100009999','贈品-南棗核桃糕分享包x3','ZP010524-01','ZP010524','一組','贈品-(紅袋)南棗核桃糕x3','0','0','0','0','0','0','1','0.0','1','0','2024-10-07','2024-10-03 03:26:53','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249412',`firm_id` = '8',`ordernumber` = 'O24100009999', `product_name` = '贈品-南棗核桃糕分享包x3',`product_code` = 'ZP010524-01',`product_sn` = 'ZP010524',`product_spec` = '一組',`invoice_name` = '贈品-(紅袋)南棗核桃糕x3',`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-10-07',`create_date` = '2024-10-03 03:26:53',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100009999' and product_code = 'ZP010524-01' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100010059' and product_code = 'DG0103188-09' 2024-10-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,'249413','8','O24100010059','【SNOOPY 聯名】美好探尋-8結禮盒','DG0103188-09','DG0103188','原味蛋捲,巧克力蛋捲','禮盒-SNOOPY(橘)【原味+巧克力】','500','500','0','0','0','0','1','0.0','1','500','2024-10-09','2024-10-03 09:18:08','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249413',`firm_id` = '8',`ordernumber` = 'O24100010059', `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` = '1',`total_price` = '500',`etd` = '2024-10-09',`create_date` = '2024-10-03 09:18:08',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100010059' and product_code = 'DG0103188-09' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100010184' and product_code = 'DG010431-01' 2024-10-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,'249414','8','O24100010184','金豐收提盒','DG010431-01','DG010431','金豐收藍提盒包材','金豐收藍提盒包材','15','15','0','0','0','1','1','0.0','2','30','2024-10-28','2024-10-03 11:00:31','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249414',`firm_id` = '8',`ordernumber` = 'O24100010184', `product_name` = '金豐收提盒',`product_code` = 'DG010431-01',`product_sn` = 'DG010431',`product_spec` = '金豐收藍提盒包材',`invoice_name` = '金豐收藍提盒包材',`listprice` = '15',`sellingprice` = '15',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '1',`freight_type` = '1',`commission` = '0.0',`amount` = '2',`total_price` = '30',`etd` = '2024-10-28',`create_date` = '2024-10-03 11:00:31',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100010184' and product_code = 'DG010431-01' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100010184' and product_code = 'DG0105127-305' 2024-10-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,'249414','8','O24100010184','【官網限定】熱銷蛋捲6入組','DG0105127-305','DG0105127','芝麻x2+咖啡+巧克力x2+阿薩姆紅茶+紅色提袋x2','組合-32入(芝麻x2+咖啡x1+巧克力x2+阿薩姆紅茶x1)+紅色提袋x2','1370','1370','0','0','0','1','1','0.0','1','1370','2024-10-28','2024-10-03 11:00:31','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249414',`firm_id` = '8',`ordernumber` = 'O24100010184', `product_name` = '【官網限定】熱銷蛋捲6入組',`product_code` = 'DG0105127-305',`product_sn` = 'DG0105127',`product_spec` = '芝麻x2+咖啡+巧克力x2+阿薩姆紅茶+紅色提袋x2',`invoice_name` = '組合-32入(芝麻x2+咖啡x1+巧克力x2+阿薩姆紅茶x1)+紅色提袋x2',`listprice` = '1370',`sellingprice` = '1370',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '1',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '1370',`etd` = '2024-10-28',`create_date` = '2024-10-03 11:00:31',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100010184' and product_code = 'DG0105127-305' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100010272' and product_code = 'DG0105126-11' 2024-10-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,'249415','8','O24100010272','【官網限定】SNOOPY經典蛋捲3入組','DG0105126-11','DG0105126','原味+芝麻+阿薩姆紅茶+SNOOPY心意提袋','組合-32入原味+32入芝麻+32入阿薩姆紅茶+SNOOPY心意提袋','990','990','0','0','0','1','1','0.0','1','990','2024-10-07','2024-10-03 13:16:43','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249415',`firm_id` = '8',`ordernumber` = 'O24100010272', `product_name` = '【官網限定】SNOOPY經典蛋捲3入組',`product_code` = 'DG0105126-11',`product_sn` = 'DG0105126',`product_spec` = '原味+芝麻+阿薩姆紅茶+SNOOPY心意提袋',`invoice_name` = '組合-32入原味+32入芝麻+32入阿薩姆紅茶+SNOOPY心意提袋',`listprice` = '990',`sellingprice` = '990',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '1',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '990',`etd` = '2024-10-07',`create_date` = '2024-10-03 13:16:43',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100010272' and product_code = 'DG0105126-11' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100010378' and product_code = 'DG0103152-26' 2024-10-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,'249416','8','O24100010378','金典8結乳酪絲禮盒','DG0103152-26','DG0103152','原味蛋捲,黑松露乳酪絲','禮盒-金典(紅)【原味+乳酪絲(黑松露)】','655','655','0','0','0','0','1','0.0','1','655','2024-10-07','2024-10-03 13:41:05','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249416',`firm_id` = '8',`ordernumber` = 'O24100010378', `product_name` = '金典8結乳酪絲禮盒',`product_code` = 'DG0103152-26',`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` = '2024-10-07',`create_date` = '2024-10-03 13:41:05',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100010378' and product_code = 'DG0103152-26' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100010378' and product_code = 'DG0103152-01' 2024-10-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,'249416','8','O24100010378','金典8結乳酪絲禮盒','DG0103152-01','DG0103152','原味蛋捲,原味乳酪絲','禮盒-金典(紅)【原味+乳酪絲(原味)】','655','655','0','0','0','0','1','0.0','1','655','2024-10-07','2024-10-03 13:41:05','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249416',`firm_id` = '8',`ordernumber` = 'O24100010378', `product_name` = '金典8結乳酪絲禮盒',`product_code` = 'DG0103152-01',`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` = '2024-10-07',`create_date` = '2024-10-03 13:41:05',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100010378' and product_code = 'DG0103152-01' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100010493' and product_code = 'DG010312-02' 2024-10-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,'249417','8','O24100010493','【原味+芝麻】金8結禮盒','DG010312-02','DG010312','金8結盒','禮盒-金8結【原味+芝麻】','590','480','0','0','0','0','1','480.0','7','3360','2024-10-08','2024-10-03 15:13:46','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249417',`firm_id` = '8',`ordernumber` = 'O24100010493', `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` = '7',`total_price` = '3360',`etd` = '2024-10-08',`create_date` = '2024-10-03 15:13:46',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100010493' and product_code = 'DG010312-02' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100010568' and product_code = 'DG0103188-09' 2024-10-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,'249418','8','O24100010568','【SNOOPY 聯名】美好探尋-8結禮盒','DG0103188-09','DG0103188','原味蛋捲,巧克力蛋捲','禮盒-SNOOPY(橘)【原味+巧克力】','500','500','0','0','0','0','1','0.0','1','500','2024-10-08','2024-10-03 15:34:54','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249418',`firm_id` = '8',`ordernumber` = 'O24100010568', `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` = '1',`total_price` = '500',`etd` = '2024-10-08',`create_date` = '2024-10-03 15:34:54',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100010568' and product_code = 'DG0103188-09' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100010651' and product_code = 'DG0103188-06' 2024-10-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,'249419','8','O24100010651','【SNOOPY 聯名】美好探尋-8結禮盒','DG0103188-06','DG0103188','原味蛋捲,芝麻蛋捲','禮盒-SNOOPY(橘)【原味+芝麻】','500','500','0','0','0','0','1','0.0','1','500','2024-10-07','2024-10-03 18:01:20','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249419',`firm_id` = '8',`ordernumber` = 'O24100010651', `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` = '1',`total_price` = '500',`etd` = '2024-10-07',`create_date` = '2024-10-03 18:01:20',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100010651' and product_code = 'DG0103188-06' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100010651' and product_code = 'DG010107-01' 2024-10-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,'249419','8','O24100010651','【限定口味】阿薩姆紅茶蛋捲(32入蛋捲x1)','DG010107-01','DG010107','32入阿薩姆蛋捲','32入阿薩姆紅茶','240','240','0','0','0','1','1','0.0','1','240','2024-10-07','2024-10-03 18:01:20','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249419',`firm_id` = '8',`ordernumber` = 'O24100010651', `product_name` = '【限定口味】阿薩姆紅茶蛋捲(32入蛋捲x1)',`product_code` = 'DG010107-01',`product_sn` = 'DG010107',`product_spec` = '32入阿薩姆蛋捲',`invoice_name` = '32入阿薩姆紅茶',`listprice` = '240',`sellingprice` = '240',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '1',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '240',`etd` = '2024-10-07',`create_date` = '2024-10-03 18:01:20',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100010651' and product_code = 'DG010107-01' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100010716' and product_code = '13656' 2024-10-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,'249420','8','O24100010716','8結蛋捲【紅提袋裝】','13656','13656','40入原味蛋捲','組合-40入原味+紅提袋','290','290','0','0','0','0','1','0.0','4','1160','2024-10-07','2024-10-03 19:47:56','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249420',`firm_id` = '8',`ordernumber` = 'O24100010716', `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` = '4',`total_price` = '1160',`etd` = '2024-10-07',`create_date` = '2024-10-03 19:47:56',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100010716' and product_code = '13656' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100010854' and product_code = 'DG0103188-01' 2024-10-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,'249421','8','O24100010854','【SNOOPY 聯名】美好探尋-8結禮盒','DG0103188-01','DG0103188','原味蛋捲,原味蛋捲','禮盒-SNOOPY(橘)【原味+原味】','500','500','0','0','0','0','1','0.0','1','500','2024-10-07','2024-10-03 20:43:08','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249421',`firm_id` = '8',`ordernumber` = 'O24100010854', `product_name` = '【SNOOPY 聯名】美好探尋-8結禮盒',`product_code` = 'DG0103188-01',`product_sn` = 'DG0103188',`product_spec` = '原味蛋捲,原味蛋捲',`invoice_name` = '禮盒-SNOOPY(橘)【原味+原味】',`listprice` = '500',`sellingprice` = '500',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '500',`etd` = '2024-10-07',`create_date` = '2024-10-03 20:43:08',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100010854' and product_code = 'DG0103188-01' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100010854' and product_code = 'DG010265-01' 2024-10-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,'249421','8','O24100010854','【SNOOPY 聯名】獨特心意-8結提盒','DG010265-01','DG010265','原味','提盒-SNOOPY(粉)-40入原味','300','300','0','0','0','0','1','0.0','1','300','2024-10-07','2024-10-03 20:43:08','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249421',`firm_id` = '8',`ordernumber` = 'O24100010854', `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` = '2024-10-07',`create_date` = '2024-10-03 20:43:08',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100010854' and product_code = 'DG010265-01' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100010969' and product_code = 'DG0103149-03' 2024-10-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,'249422','8','O24100010969','金典8結肉酥酥禮盒','DG0103149-03','02945','原味+辣辣肉酥酥','禮盒-金典(紅)【原味+辣味肉酥酥】','555','555','0','0','0','0','1','0.0','1','555','2024-10-09','2024-10-03 21:33:35','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249422',`firm_id` = '8',`ordernumber` = 'O24100010969', `product_name` = '金典8結肉酥酥禮盒',`product_code` = 'DG0103149-03',`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` = '1',`total_price` = '555',`etd` = '2024-10-09',`create_date` = '2024-10-03 21:33:35',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100010969' and product_code = 'DG0103149-03' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100011092' and product_code = '13658' 2024-10-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,'249423','8','O24100011092','8結蛋捲【紅提袋裝】','13658','13656','40入咖啡蛋捲','組合-40入咖啡+紅提袋','290','290','0','0','0','0','1','0.0','2','580','2024-10-07','2024-10-03 22:10:39','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249423',`firm_id` = '8',`ordernumber` = 'O24100011092', `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` = '2',`total_price` = '580',`etd` = '2024-10-07',`create_date` = '2024-10-03 22:10:39',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100011092' and product_code = '13658' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100011092' and product_code = '13656' 2024-10-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,'249423','8','O24100011092','8結蛋捲【紅提袋裝】','13656','13656','40入原味蛋捲','組合-40入原味+紅提袋','290','290','0','0','0','0','1','0.0','2','580','2024-10-07','2024-10-03 22:10:39','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249423',`firm_id` = '8',`ordernumber` = 'O24100011092', `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` = '2024-10-07',`create_date` = '2024-10-03 22:10:39',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100011092' and product_code = '13656' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100011092' and product_code = 'DG0105121-06' 2024-10-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,'249423','8','O24100011092','【期間限定】復古紅提袋蛋捲組(32入蛋捲+復古提袋)','DG0105121-06','DG0105121','阿薩姆紅茶+復古紅提袋','組合-32入阿薩姆紅茶+[復古]提袋x1','400','400','0','0','0','1','1','0.0','1','400','2024-10-07','2024-10-03 22:10:39','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249423',`firm_id` = '8',`ordernumber` = 'O24100011092', `product_name` = '【期間限定】復古紅提袋蛋捲組(32入蛋捲+復古提袋)',`product_code` = 'DG0105121-06',`product_sn` = 'DG0105121',`product_spec` = '阿薩姆紅茶+復古紅提袋',`invoice_name` = '組合-32入阿薩姆紅茶+[復古]提袋x1',`listprice` = '400',`sellingprice` = '400',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '1',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '400',`etd` = '2024-10-07',`create_date` = '2024-10-03 22:10:39',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100011092' and product_code = 'DG0105121-06' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100011182' and product_code = 'DG0105103-01' 2024-10-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,'249424','8','O24100011182','SNOOPY美好心意-蛋捲三入組','DG0105103-01','DG0105103','原味+原味+原味','組合-32入(原味+原味+原味)+SNOOPY美好提袋','990','990','0','0','0','0','1','0.0','1','990','2024-10-07','2024-10-03 22:32:29','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249424',`firm_id` = '8',`ordernumber` = 'O24100011182', `product_name` = 'SNOOPY美好心意-蛋捲三入組',`product_code` = 'DG0105103-01',`product_sn` = 'DG0105103',`product_spec` = '原味+原味+原味',`invoice_name` = '組合-32入(原味+原味+原味)+SNOOPY美好提袋',`listprice` = '990',`sellingprice` = '990',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '990',`etd` = '2024-10-07',`create_date` = '2024-10-03 22:32:29',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100011182' and product_code = 'DG0105103-01' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100011182' and product_code = 'BP010182-01' 2024-10-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,'249424','8','O24100011182','[加購]加購-SNOOPY飲料提袋','BP010182-01','BP010182','-','加購-SNOOPY飲料提袋','120','120','1','1','120','0','0','0.0','1','120','2024-10-07','2024-10-03 22:32:29','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249424',`firm_id` = '8',`ordernumber` = 'O24100011182', `product_name` = '[加購]加購-SNOOPY飲料提袋',`product_code` = 'BP010182-01',`product_sn` = 'BP010182',`product_spec` = '-',`invoice_name` = '加購-SNOOPY飲料提袋',`listprice` = '120',`sellingprice` = '120',`isadd` = '1',`isbaby` = '1',`addprice` = '120',`is_exclude` = '0',`freight_type` = '0',`commission` = '0.0',`amount` = '1',`total_price` = '120',`etd` = '2024-10-07',`create_date` = '2024-10-03 22:32:29',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100011182' and product_code = 'BP010182-01' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100011182' and product_code = 'BP010185-01' 2024-10-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,'249424','8','O24100011182','[加購]加購-SNOOPY盥洗收納包','BP010185-01','BP010185','-','加購-SNOOPY盥洗收納包','250','250','1','1','250','0','0','0.0','1','250','2024-10-07','2024-10-03 22:32:29','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249424',`firm_id` = '8',`ordernumber` = 'O24100011182', `product_name` = '[加購]加購-SNOOPY盥洗收納包',`product_code` = 'BP010185-01',`product_sn` = 'BP010185',`product_spec` = '-',`invoice_name` = '加購-SNOOPY盥洗收納包',`listprice` = '250',`sellingprice` = '250',`isadd` = '1',`isbaby` = '1',`addprice` = '250',`is_exclude` = '0',`freight_type` = '0',`commission` = '0.0',`amount` = '1',`total_price` = '250',`etd` = '2024-10-07',`create_date` = '2024-10-03 22:32:29',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100011182' and product_code = 'BP010185-01' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100011182' and product_code = 'BP010188-01' 2024-10-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,'249424','8','O24100011182','[加購]加購-SNOOPY面紙套','BP010188-01','BP010188','-','加購-SNOOPY面紙套','250','250','1','1','250','0','0','0.0','1','250','2024-10-07','2024-10-03 22:32:29','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:05 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249424',`firm_id` = '8',`ordernumber` = 'O24100011182', `product_name` = '[加購]加購-SNOOPY面紙套',`product_code` = 'BP010188-01',`product_sn` = 'BP010188',`product_spec` = '-',`invoice_name` = '加購-SNOOPY面紙套',`listprice` = '250',`sellingprice` = '250',`isadd` = '1',`isbaby` = '1',`addprice` = '250',`is_exclude` = '0',`freight_type` = '0',`commission` = '0.0',`amount` = '1',`total_price` = '250',`etd` = '2024-10-07',`create_date` = '2024-10-03 22:32:29',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100011182' and product_code = 'BP010188-01' 2024-10-03 23:59:05 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100011182' and product_code = 'BP010159-01' 2024-10-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, 1,'249424','8','O24100011182','[加購]加購-SNOOPY提把水瓶','BP010159-01','BP010159','-','加購-SNOOPY提把水瓶','360','360','1','1','360','0','0','0.0','1','360','2024-10-07','2024-10-03 22:32:29','2024-10-03 23:59:05',null,'1','2024-09-01') 2024-10-03 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249424',`firm_id` = '8',`ordernumber` = 'O24100011182', `product_name` = '[加購]加購-SNOOPY提把水瓶',`product_code` = 'BP010159-01',`product_sn` = 'BP010159',`product_spec` = '-',`invoice_name` = '加購-SNOOPY提把水瓶',`listprice` = '360',`sellingprice` = '360',`isadd` = '1',`isbaby` = '1',`addprice` = '360',`is_exclude` = '0',`freight_type` = '0',`commission` = '0.0',`amount` = '1',`total_price` = '360',`etd` = '2024-10-07',`create_date` = '2024-10-03 22:32:29',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100011182' and product_code = 'BP010159-01' 2024-10-03 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100011253' and product_code = 'DG010258-01' 2024-10-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, 1,'249425','8','O24100011253','金豐收8結提盒','DG010258-01','DG010258','40入原味蛋捲','提盒-金豐收(藍)-40入原味','295','295','0','0','0','0','1','0.0','8','2360','2024-10-07','2024-10-03 22:48:18','2024-10-03 23:59:06',null,'1','2024-09-01') 2024-10-03 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249425',`firm_id` = '8',`ordernumber` = 'O24100011253', `product_name` = '金豐收8結提盒',`product_code` = 'DG010258-01',`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` = '8',`total_price` = '2360',`etd` = '2024-10-07',`create_date` = '2024-10-03 22:48:18',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100011253' and product_code = 'DG010258-01' 2024-10-03 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100011343' and product_code = 'DG0105103-12' 2024-10-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, 1,'249426','8','O24100011343','SNOOPY美好心意-蛋捲三入組','DG0105103-12','DG0105103','原味+咖啡+巧克力','組合-32入(原味+咖啡+巧克力)+SNOOPY美好提袋','990','990','0','0','0','0','1','0.0','1','990','2024-10-09','2024-10-03 23:12:04','2024-10-03 23:59:06',null,'1','2024-09-01') 2024-10-03 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249426',`firm_id` = '8',`ordernumber` = 'O24100011343', `product_name` = 'SNOOPY美好心意-蛋捲三入組',`product_code` = 'DG0105103-12',`product_sn` = 'DG0105103',`product_spec` = '原味+咖啡+巧克力',`invoice_name` = '組合-32入(原味+咖啡+巧克力)+SNOOPY美好提袋',`listprice` = '990',`sellingprice` = '990',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '990',`etd` = '2024-10-09',`create_date` = '2024-10-03 23:12:04',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100011343' and product_code = 'DG0105103-12' 2024-10-03 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100011343' and product_code = 'LS010510-02' 2024-10-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, 1,'249426','8','O24100011343','梅子零嘴任選二入組','LS010510-02','LS010510','(袋)烏梅絲+(袋)無籽梅肉','(袋)烏梅絲+(袋)無籽梅肉','170','170','0','0','0','0','1','0.0','1','170','2024-10-09','2024-10-03 23:12:04','2024-10-03 23:59:06',null,'1','2024-09-01') 2024-10-03 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249426',`firm_id` = '8',`ordernumber` = 'O24100011343', `product_name` = '梅子零嘴任選二入組',`product_code` = 'LS010510-02',`product_sn` = 'LS010510',`product_spec` = '(袋)烏梅絲+(袋)無籽梅肉',`invoice_name` = '(袋)烏梅絲+(袋)無籽梅肉',`listprice` = '170',`sellingprice` = '170',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '170',`etd` = '2024-10-09',`create_date` = '2024-10-03 23:12:04',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100011343' and product_code = 'LS010510-02' 2024-10-03 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100011482' and product_code = 'DG010312-12' 2024-10-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, 1,'249427','8','O24100011482','【咖啡+巧克力】金8結禮盒','DG010312-12','DG010312','金8結盒','禮盒-金8結【咖啡+巧克力】','590','480','0','0','0','0','1','480.0','3','1440','2024-10-07','2024-10-03 23:41:16','2024-10-03 23:59:06',null,'1','2024-09-01') 2024-10-03 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249427',`firm_id` = '8',`ordernumber` = 'O24100011482', `product_name` = '【咖啡+巧克力】金8結禮盒',`product_code` = 'DG010312-12',`product_sn` = 'DG010312',`product_spec` = '金8結盒',`invoice_name` = '禮盒-金8結【咖啡+巧克力】',`listprice` = '590',`sellingprice` = '480',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '480.0',`amount` = '3',`total_price` = '1440',`etd` = '2024-10-07',`create_date` = '2024-10-03 23:41:16',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100011482' and product_code = 'DG010312-12' 2024-10-03 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100011482' and product_code = 'DG010527-03' 2024-10-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, 1,'249427','8','O24100011482','8結蛋捲【小禮袋裝】','DG010527-03','DG010527','40入咖啡蛋捲','組合-40入咖啡+8結小禮袋','290','290','0','0','0','0','1','0.0','2','580','2024-10-07','2024-10-03 23:41:16','2024-10-03 23:59:06',null,'1','2024-09-01') 2024-10-03 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249427',`firm_id` = '8',`ordernumber` = 'O24100011482', `product_name` = '8結蛋捲【小禮袋裝】',`product_code` = 'DG010527-03',`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` = '2',`total_price` = '580',`etd` = '2024-10-07',`create_date` = '2024-10-03 23:41:16',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100011482' and product_code = 'DG010527-03' 2024-10-03 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24100011482' and product_code = 'DG010527-05' 2024-10-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, 1,'249427','8','O24100011482','8結蛋捲【小禮袋裝】','DG010527-05','DG010527','40入巧克力蛋捲','組合-40入巧克力+8結小禮袋','290','290','0','0','0','0','1','0.0','2','580','2024-10-07','2024-10-03 23:41:16','2024-10-03 23:59:06',null,'1','2024-09-01') 2024-10-03 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '249427',`firm_id` = '8',`ordernumber` = 'O24100011482', `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` = '2',`total_price` = '580',`etd` = '2024-10-07',`create_date` = '2024-10-03 23:41:16',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-09-01'where ordernumber = 'O24100011482' and product_code = 'DG010527-05' 2024-10-03 23:59:06 -- == sync_order_detail end == 2024-10-03 23:59:06 -- == sync_order start == 2024-10-03 23:59:06 -- start:2024-10-03,end:2024-10-03 2024-10-03 23:59:06 -- == select june1.order_list == select l.mid,m.uid,l.category_name,l.category_id,l.ordernumber,l.location,l.payway,l.delivery_way,l.pay_status,l.process_status,l.company_number,l.company_title,l.invoice_status,l.etd,l.web_discount,l.class_discount,l.member_discount,l.web_gift,l.freight,l.entity_discount,l.totalprice,l.orderzip,l.orderaddresscity,l.orderaddressarea,l.recipientzip,l.recipientaddresscity,l.recipientaddressarea,l.totalprice_after-web_discount-class_discount-member_discount-entity_discount as totalprice_after,l.create_date FROM `order_list` l LEFT JOIN member_list m on l.mid = m.id WHERE l.create_date like '2024-10-03%' OR l.modify_date like '2024-10-03%'; 2024-10-03 23:59:06 -- == sync omo_order_list == 2024-10-03 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 ('146874','422952',2,'','','B24100001038','1','2','1','0','0','','','0','0000-00-00','1425','0','0','','0','30','28500','423','台中市','東勢區','423','台中市','東勢區','27045','2024-10-03 09:11:29','2024-09-01') 2024-10-03 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 ('147911','423971',2,'','','B24100001166','1','2','1','1','1','','','0','0000-00-00','825','0','0','','0','30','16500','110','台北市','信義區','110','台北市','信義區','15645','2024-10-03 14:37:52','2024-09-01') 2024-10-03 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 ('129090','77908',2,'','','B24100001295','1','1','1','1','1','','','0','0000-00-00','0','0','0','','150','0','500','648','雲林縣','西螺鎮','710','台南市','永康區','650','2024-10-03 22:04:37','2024-09-01') 2024-10-03 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 ('129090','77908',2,'','','B24100001328','1','1','1','1','1','','','0','0000-00-00','0','0','0','','150','0','500','648','雲林縣','西螺鎮','242','新北市','新莊區','650','2024-10-03 22:08:32','2024-09-01') 2024-10-03 23:59:06 -- == sync_order end == 2024-10-03 23:59:06 -- == sync_order_detail start == 2024-10-03 23:59:06 -- start:2024-10-03,end:2024-10-03 2024-10-03 23:59:06 -- == sync omo_order_detail == 2024-10-03 23:59:06 -- == SELECT order_detail == SELECT * from order_detail WHERE create_date like '2024-10-03%' OR modify_date like '2024-10-03%' 2024-10-03 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'B24100001038' and product_code = 'DG0103189-09' 2024-10-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,'32958','8','B24100001038','SNOOPY美好探尋-8結彌月禮盒','DG0103189-09','DG0103189','芝麻+巧克力','禮盒-彌月SNOOPY(橘)【芝麻+巧克力】','500','500','0','1','0','0','1','0.0','34','17000','2024-10-08','2024-10-03 09:11:29','2024-10-03 23:59:06',null,'1','2024-09-01') 2024-10-03 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '32958',`firm_id` = '8',`ordernumber` = 'B24100001038', `product_name` = 'SNOOPY美好探尋-8結彌月禮盒',`product_code` = 'DG0103189-09',`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` = '34',`total_price` = '17000',`etd` = '2024-10-08',`create_date` = '2024-10-03 09:11:29',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'B24100001038' and product_code = 'DG0103189-09', `lunar_date` = '2024-09-01' 2024-10-03 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'B24100001038' and product_code = 'DG0103189-07' 2024-10-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,'32958','8','B24100001038','SNOOPY美好探尋-8結彌月禮盒','DG0103189-07','DG0103189','芝麻+咖啡','禮盒-彌月SNOOPY(橘)【芝麻+咖啡】','500','500','0','1','0','0','1','0.0','20','10000','2024-10-08','2024-10-03 09:11:29','2024-10-03 23:59:06',null,'1','2024-09-01') 2024-10-03 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '32958',`firm_id` = '8',`ordernumber` = 'B24100001038', `product_name` = 'SNOOPY美好探尋-8結彌月禮盒',`product_code` = 'DG0103189-07',`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` = '20',`total_price` = '10000',`etd` = '2024-10-08',`create_date` = '2024-10-03 09:11:29',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'B24100001038' and product_code = 'DG0103189-07', `lunar_date` = '2024-09-01' 2024-10-03 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'B24100001038' and product_code = 'DG010266-05' 2024-10-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,'32958','8','B24100001038','SNOOPY獨特心意-8結彌月提盒','DG010266-05','DG010266','巧克力','提盒-彌月SNOOPY(粉)-40入巧克力','300','300','0','1','0','0','1','0.0','3','900','2024-10-08','2024-10-03 09:11:29','2024-10-03 23:59:06',null,'1','2024-09-01') 2024-10-03 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '32958',`firm_id` = '8',`ordernumber` = 'B24100001038', `product_name` = 'SNOOPY獨特心意-8結彌月提盒',`product_code` = 'DG010266-05',`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` = '3',`total_price` = '900',`etd` = '2024-10-08',`create_date` = '2024-10-03 09:11:29',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'B24100001038' and product_code = 'DG010266-05', `lunar_date` = '2024-09-01' 2024-10-03 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'B24100001038' and product_code = 'DG010266-02' 2024-10-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,'32958','8','B24100001038','SNOOPY獨特心意-8結彌月提盒','DG010266-02','DG010266','芝麻','提盒-彌月SNOOPY(粉)-40入芝麻','300','300','0','1','0','0','1','0.0','2','600','2024-10-08','2024-10-03 09:11:29','2024-10-03 23:59:06',null,'1','2024-09-01') 2024-10-03 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '32958',`firm_id` = '8',`ordernumber` = 'B24100001038', `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` = '2',`total_price` = '600',`etd` = '2024-10-08',`create_date` = '2024-10-03 09:11:29',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'B24100001038' and product_code = 'DG010266-02', `lunar_date` = '2024-09-01' 2024-10-03 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'B24100001038' and product_code = 'ZP0101106-01' 2024-10-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,'32958','8','B24100001038','贈品-SNOOPY熱壓三明治機','ZP0101106-01','ZP0101106','贈品-SNOOPY熱壓三明治機','贈品-SNOOPY熱壓三明治機','0','0','0','0','0','0','1','0.0','1','0','2024-10-08','2024-10-03 09:11:29','2024-10-03 23:59:06',null,'1','2024-09-01') 2024-10-03 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '32958',`firm_id` = '8',`ordernumber` = 'B24100001038', `product_name` = '贈品-SNOOPY熱壓三明治機',`product_code` = 'ZP0101106-01',`product_sn` = 'ZP0101106',`product_spec` = '贈品-SNOOPY熱壓三明治機',`invoice_name` = '贈品-SNOOPY熱壓三明治機',`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-10-08',`create_date` = '2024-10-03 09:11:29',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'B24100001038' and product_code = 'ZP0101106-01', `lunar_date` = '2024-09-01' 2024-10-03 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'B24100001166' and product_code = 'DG010266-01' 2024-10-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,'32959','8','B24100001166','SNOOPY獨特心意-8結彌月提盒','DG010266-01','DG010266','原味','提盒-彌月SNOOPY(粉)-40入原味','300','300','0','1','0','0','1','0.0','55','16500','2024-10-14','2024-10-03 14:37:52','2024-10-03 23:59:06',null,'1','2024-09-01') 2024-10-03 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '32959',`firm_id` = '8',`ordernumber` = 'B24100001166', `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` = '55',`total_price` = '16500',`etd` = '2024-10-14',`create_date` = '2024-10-03 14:37:52',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'B24100001166' and product_code = 'DG010266-01', `lunar_date` = '2024-09-01' 2024-10-03 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'B24100001166' and product_code = 'ZP010520-01' 2024-10-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,'32959','8','B24100001166','贈品-SNOOPY寶寶貼心組','ZP010520-01','ZP010520','SNOOPY提把水瓶+sNug寶寶襪/童襪(款式隨機)0~6','組合-SNOOPY提把水瓶+sNug寶寶襪*3','0','0','0','0','0','0','1','0.0','1','0','2024-10-14','2024-10-03 14:37:52','2024-10-03 23:59:06',null,'1','2024-09-01') 2024-10-03 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '32959',`firm_id` = '8',`ordernumber` = 'B24100001166', `product_name` = '贈品-SNOOPY寶寶貼心組',`product_code` = 'ZP010520-01',`product_sn` = 'ZP010520',`product_spec` = 'SNOOPY提把水瓶+sNug寶寶襪/童襪(款式隨機)0~6',`invoice_name` = '組合-SNOOPY提把水瓶+sNug寶寶襪*3',`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-10-14',`create_date` = '2024-10-03 14:37:52',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'B24100001166' and product_code = 'ZP010520-01', `lunar_date` = '2024-09-01' 2024-10-03 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'B24100001295' and product_code = 'DG0103189-02' 2024-10-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,'32960','8','B24100001295','SNOOPY美好探尋-8結彌月禮盒','DG0103189-02','DG0103189','原味+芝麻','禮盒-彌月SNOOPY(橘)【原味+芝麻】','500','500','0','1','0','0','1','0.0','1','500','2024-10-08','2024-10-03 22:04:37','2024-10-03 23:59:06',null,'1','2024-09-01') 2024-10-03 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '32960',`firm_id` = '8',`ordernumber` = 'B24100001295', `product_name` = 'SNOOPY美好探尋-8結彌月禮盒',`product_code` = 'DG0103189-02',`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` = '2024-10-08',`create_date` = '2024-10-03 22:04:37',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'B24100001295' and product_code = 'DG0103189-02', `lunar_date` = '2024-09-01' 2024-10-03 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'B24100001328' and product_code = 'DG0103189-02' 2024-10-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,'32961','8','B24100001328','SNOOPY美好探尋-8結彌月禮盒','DG0103189-02','DG0103189','原味+芝麻','禮盒-彌月SNOOPY(橘)【原味+芝麻】','500','500','0','1','0','0','1','0.0','1','500','2024-10-08','2024-10-03 22:08:32','2024-10-03 23:59:06',null,'1','2024-09-01') 2024-10-03 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '32961',`firm_id` = '8',`ordernumber` = 'B24100001328', `product_name` = 'SNOOPY美好探尋-8結彌月禮盒',`product_code` = 'DG0103189-02',`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` = '2024-10-08',`create_date` = '2024-10-03 22:08:32',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'B24100001328' and product_code = 'DG0103189-02', `lunar_date` = '2024-09-01' 2024-10-03 23:59:06 -- == sync_order_detail end == 2024-10-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-10-03' OR o.updated_at = '2024-10-03') and o.deleted_at is null 2024-10-03 23:59:06 -- == sync_order_detail start == 2024-10-03 23:59:06 -- start:2024-10-03,end:2024-10-03 2024-10-03 23:59:07 -- step1: SELECT id,sku,combinations_product_spec_id FROM `product_specs` 2024-10-03 23:59:08 -- step2: SELECT * FROM `product_specs` WHERE combinations_product_spec_id is not null 2024-10-03 23:59:11 -- step3: SELECT id,product_code,product_sn FROM `omo_order_detail` WHERE `channel` = 6 and product_code like '%,%' and create_date LIKE '2024-10-03%';