2024-11-17 23:59:02 -- == sync_order start == 2024-11-17 23:59:02 -- start:2024-11-17,end:2024-11-17 2024-11-17 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-11-17%' OR l.modify_date like '2024-11-17%'; 2024-11-17 23:59:04 -- == sync omo_order_list == 2024-11-17 23:59:04 -- == update lake.omo_order_list == update omo_order_list set userId = '0', process_status = '0', pay_status = '0', totalprice_after = '72680', lunar_date = '2024-10-14', invoice_status = '0',category_name = '101專櫃訂單', category_id = '48' where ordernumber = 'S24110041066' 2024-11-17 23:59:04 -- == inster lake.omo_order_list == INSERT INTO `omo_order_list` (mid,userId,channel,category_name,category_id,ordernumber,location,payway,delivery_way,pay_status,process_status,company_number,company_title,invoice_status,etd,web_discount,class_discount,member_discount,web_gift,freight,entity_discount,totalprice,orderzip,orderaddresscity,orderaddressarea,recipientzip,recipientaddresscity,recipientaddressarea,totalprice_after,create_date,lunar_date) VALUES ('63549','36953',1,'','','O24110049889','1','2','1','0','0','','','0','0000-00-00','0','0','0','','150','0','2950','510','彰化縣','員林市','510','彰化縣','員林市','3100','2024-11-17 00:05:52','2024-10-17') 2024-11-17 23:59:04 -- == inster lake.omo_order_list == INSERT INTO `omo_order_list` (mid,userId,channel,category_name,category_id,ordernumber,location,payway,delivery_way,pay_status,process_status,company_number,company_title,invoice_status,etd,web_discount,class_discount,member_discount,web_gift,freight,entity_discount,totalprice,orderzip,orderaddresscity,orderaddressarea,recipientzip,recipientaddresscity,recipientaddressarea,totalprice_after,create_date,lunar_date) VALUES ('225879','250534',1,'','','O24110049927','1','11','1','1','1','94051065','隆志工程有限公司','0','0000-00-00','1440','0','0','','0','0','28800','640','雲林縣','斗六市','640','雲林縣','斗六市','27360','2024-11-17 09:24:21','2024-10-17') 2024-11-17 23:59:04 -- == inster lake.omo_order_list == INSERT INTO `omo_order_list` (mid,userId,channel,category_name,category_id,ordernumber,location,payway,delivery_way,pay_status,process_status,company_number,company_title,invoice_status,etd,web_discount,class_discount,member_discount,web_gift,freight,entity_discount,totalprice,orderzip,orderaddresscity,orderaddressarea,recipientzip,recipientaddresscity,recipientaddressarea,totalprice_after,create_date,lunar_date) VALUES ('394349','430595',1,'','','O24110050097','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','30','960','946','屏東縣','恆春鎮','946','屏東縣','恆春鎮','1080','2024-11-17 11:22:10','2024-10-17') 2024-11-17 23:59:04 -- == inster lake.omo_order_list == INSERT INTO `omo_order_list` (mid,userId,channel,category_name,category_id,ordernumber,location,payway,delivery_way,pay_status,process_status,company_number,company_title,invoice_status,etd,web_discount,class_discount,member_discount,web_gift,freight,entity_discount,totalprice,orderzip,orderaddresscity,orderaddressarea,recipientzip,recipientaddresscity,recipientaddressarea,totalprice_after,create_date,lunar_date) VALUES ('70695','43578',1,'','','O24110050195','1','2','1','1','1','','','0','0000-00-00','0','0','0','','150','0','2800','350','苗栗縣','竹南鎮','710','台南市','永康區','2950','2024-11-17 11:54:18','2024-10-17') 2024-11-17 23:59:04 -- == inster lake.omo_order_list == INSERT INTO `omo_order_list` (mid,userId,channel,category_name,category_id,ordernumber,location,payway,delivery_way,pay_status,process_status,company_number,company_title,invoice_status,etd,web_discount,class_discount,member_discount,web_gift,freight,entity_discount,totalprice,orderzip,orderaddresscity,orderaddressarea,recipientzip,recipientaddresscity,recipientaddressarea,totalprice_after,create_date,lunar_date) VALUES ('394414','239706',1,'','','O24110050250','1','1','1','1','1','','','0','0000-00-00','0','0','0','','150','0','960','235','新北市','中和區','235','新北市','中和區','1110','2024-11-17 16:34:06','2024-10-17') 2024-11-17 23:59:04 -- == inster lake.omo_order_list == INSERT INTO `omo_order_list` (mid,userId,channel,category_name,category_id,ordernumber,location,payway,delivery_way,pay_status,process_status,company_number,company_title,invoice_status,etd,web_discount,class_discount,member_discount,web_gift,freight,entity_discount,totalprice,orderzip,orderaddresscity,orderaddressarea,recipientzip,recipientaddresscity,recipientaddressarea,totalprice_after,create_date,lunar_date) VALUES ('394416','430659',1,'','','O24110050383','1','1','1','1','1','','','0','0000-00-00','737','0','0','','0','30','14750','242','新北市','新莊區','242','新北市','新莊區','13983','2024-11-17 16:39:47','2024-10-17') 2024-11-17 23:59:04 -- == inster lake.omo_order_list == INSERT INTO `omo_order_list` (mid,userId,channel,category_name,category_id,ordernumber,location,payway,delivery_way,pay_status,process_status,company_number,company_title,invoice_status,etd,web_discount,class_discount,member_discount,web_gift,freight,entity_discount,totalprice,orderzip,orderaddresscity,orderaddressarea,recipientzip,recipientaddresscity,recipientaddressarea,totalprice_after,create_date,lunar_date) VALUES ('394430','430673',1,'','','O24110050498','1','1','1','1','1','','','0','0000-00-00','450','0','0','','0','30','9000','324','桃園市','平鎮區','338','桃園市','蘆竹區','8520','2024-11-17 17:19:31','2024-10-17') 2024-11-17 23:59:04 -- == inster lake.omo_order_list == INSERT INTO `omo_order_list` (mid,userId,channel,category_name,category_id,ordernumber,location,payway,delivery_way,pay_status,process_status,company_number,company_title,invoice_status,etd,web_discount,class_discount,member_discount,web_gift,freight,entity_discount,totalprice,orderzip,orderaddresscity,orderaddressarea,recipientzip,recipientaddresscity,recipientaddressarea,totalprice_after,create_date,lunar_date) VALUES ('394451','430694',1,'','','O24110050520','1','1','1','1','1','','','0','0000-00-00','0','0','0','','150','30','2950','235','新北市','中和區','106','台北市','大安區','3070','2024-11-17 20:15:28','2024-10-17') 2024-11-17 23:59:04 -- == inster lake.omo_order_list == INSERT INTO `omo_order_list` (mid,userId,channel,category_name,category_id,ordernumber,location,payway,delivery_way,pay_status,process_status,company_number,company_title,invoice_status,etd,web_discount,class_discount,member_discount,web_gift,freight,entity_discount,totalprice,orderzip,orderaddresscity,orderaddressarea,recipientzip,recipientaddresscity,recipientaddressarea,totalprice_after,create_date,lunar_date) VALUES ('391552','427824',1,'','','O24110050642','1','11','1','1','1','','','0','0000-00-00','0','0','0','','150','0','840','912','屏東縣','內埔鄉','912','屏東縣','內埔鄉','990','2024-11-17 21:26:17','2024-10-17') 2024-11-17 23:59:04 -- == inster lake.omo_order_list == INSERT INTO `omo_order_list` (mid,userId,channel,category_name,category_id,ordernumber,location,payway,delivery_way,pay_status,process_status,company_number,company_title,invoice_status,etd,web_discount,class_discount,member_discount,web_gift,freight,entity_discount,totalprice,orderzip,orderaddresscity,orderaddressarea,recipientzip,recipientaddresscity,recipientaddressarea,totalprice_after,create_date,lunar_date) VALUES ('394455','430698',1,'','','O24110050752','1','1','1','1','1','','','0','0000-00-00','0','0','0','','150','0','3840','420','台中市','豐原區','420','台中市','豐原區','3990','2024-11-17 21:28:51','2024-10-17') 2024-11-17 23:59:04 -- == sync_order end == 2024-11-17 23:59:04 -- == sync_order_detail start == 2024-11-17 23:59:04 -- start:2024-11-17,end:2024-11-17 2024-11-17 23:59:04 -- == sync omo_order_detail == 2024-11-17 23:59:04 -- == SELECT order_detail == SELECT * from order_detail WHERE create_date like '2024-11-17%' OR modify_date like '2024-11-17%' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24110041066' and product_code = 'DG010132-01' 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250700',`firm_id` = '8',`ordernumber` = 'S24110041066', `product_name` = '32入東方美人茶蛋捲',`product_code` = 'DG010132-01',`product_sn` = 'DG010132',`product_spec` = '單盒',`invoice_name` = '東方美人茶小盒',`listprice` = '300',`sellingprice` = '300',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '165',`total_price` = '49500',`etd` = '2024-12-30',`create_date` = '2024-11-14 14:36:12',`modify_date` = '2024-11-17 11:31:44',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2024-10-14'where ordernumber = 'S24110041066' and product_code = 'DG010132-01' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24110041066' and product_code = 'DG0103193-03' 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250700',`firm_id` = '8',`ordernumber` = 'S24110041066', `product_name` = '金8結禮盒-東方美人茶蛋捲',`product_code` = 'DG0103193-03',`product_sn` = 'DG0103193',`product_spec` = '咖啡+32入東方美人茶蛋捲',`invoice_name` = '禮盒-金8結【東方美人茶蛋捲+32入蛋捲】',`listprice` = '540',`sellingprice` = '540',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '50',`total_price` = '27000',`etd` = '2024-12-30',`create_date` = '2024-11-14 14:36:12',`modify_date` = '2024-11-17 11:31:44',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2024-10-14'where ordernumber = 'S24110041066' and product_code = 'DG0103193-03' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'S24110041066' and product_code = 'DG010404-01' 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250700',`firm_id` = '8',`ordernumber` = 'S24110041066', `product_name` = '紅色提袋',`product_code` = 'DG010404-01',`product_sn` = 'DG010404',`product_spec` = '提袋/個',`invoice_name` = '紅色提袋',`listprice` = '10',`sellingprice` = '10',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '165',`total_price` = '1650',`etd` = '2024-12-30',`create_date` = '2024-11-14 14:36:12',`modify_date` = '2024-11-17 11:31:44',`points_use_id` = 0,`item_status` = '1', `lunar_date` = '2024-10-14'where ordernumber = 'S24110041066' and product_code = 'DG010404-01' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110049889' and product_code = 'DG010258-05' 2024-11-17 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,'250788','8','O24110049889','金豐收8結提盒','DG010258-05','DG010258','40入巧克力蛋捲','提盒-金豐收(藍)-40入巧克力','295','295','0','0','0','0','1','0.0','2','590','2025-01-03','2024-11-17 00:05:52','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250788',`firm_id` = '8',`ordernumber` = 'O24110049889', `product_name` = '金豐收8結提盒',`product_code` = 'DG010258-05',`product_sn` = 'DG010258',`product_spec` = '40入巧克力蛋捲',`invoice_name` = '提盒-金豐收(藍)-40入巧克力',`listprice` = '295',`sellingprice` = '295',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '2',`total_price` = '590',`etd` = '2025-01-03',`create_date` = '2024-11-17 00:05:52',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110049889' and product_code = 'DG010258-05' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110049889' and product_code = 'DG010258-02' 2024-11-17 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,'250788','8','O24110049889','金豐收8結提盒','DG010258-02','DG010258','40入芝麻蛋捲','提盒-金豐收(藍)-40入芝麻','295','295','0','0','0','0','1','0.0','2','590','2025-01-03','2024-11-17 00:05:52','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250788',`firm_id` = '8',`ordernumber` = 'O24110049889', `product_name` = '金豐收8結提盒',`product_code` = 'DG010258-02',`product_sn` = 'DG010258',`product_spec` = '40入芝麻蛋捲',`invoice_name` = '提盒-金豐收(藍)-40入芝麻',`listprice` = '295',`sellingprice` = '295',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '2',`total_price` = '590',`etd` = '2025-01-03',`create_date` = '2024-11-17 00:05:52',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110049889' and product_code = 'DG010258-02' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110049889' and product_code = 'DG010258-01' 2024-11-17 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,'250788','8','O24110049889','金豐收8結提盒','DG010258-01','DG010258','40入原味蛋捲','提盒-金豐收(藍)-40入原味','295','295','0','0','0','0','1','0.0','2','590','2025-01-03','2024-11-17 00:05:52','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250788',`firm_id` = '8',`ordernumber` = 'O24110049889', `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` = '2',`total_price` = '590',`etd` = '2025-01-03',`create_date` = '2024-11-17 00:05:52',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110049889' and product_code = 'DG010258-01' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110049889' and product_code = 'DG010258-03' 2024-11-17 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,'250788','8','O24110049889','金豐收8結提盒','DG010258-03','DG010258','40入咖啡蛋捲','提盒-金豐收(藍)-40入咖啡','295','295','0','0','0','0','1','0.0','2','590','2025-01-03','2024-11-17 00:05:52','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250788',`firm_id` = '8',`ordernumber` = 'O24110049889', `product_name` = '金豐收8結提盒',`product_code` = 'DG010258-03',`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` = '2',`total_price` = '590',`etd` = '2025-01-03',`create_date` = '2024-11-17 00:05:52',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110049889' and product_code = 'DG010258-03' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110049889' and product_code = 'DG010258-04' 2024-11-17 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,'250788','8','O24110049889','金豐收8結提盒','DG010258-04','DG010258','40入海苔蛋捲','提盒-金豐收(藍)-40入海苔','295','295','0','0','0','0','1','0.0','2','590','2025-01-03','2024-11-17 00:05:52','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250788',`firm_id` = '8',`ordernumber` = 'O24110049889', `product_name` = '金豐收8結提盒',`product_code` = 'DG010258-04',`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` = '2',`total_price` = '590',`etd` = '2025-01-03',`create_date` = '2024-11-17 00:05:52',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110049889' and product_code = 'DG010258-04' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110049927' and product_code = 'DG010312-02' 2024-11-17 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,'250789','8','O24110049927','【原味+芝麻】金8結禮盒','DG010312-02','DG010312','金8結盒','禮盒-金8結【原味+芝麻】','590','480','0','0','0','0','1','480.0','30','14400','2025-01-06','2024-11-17 09:24:21','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250789',`firm_id` = '8',`ordernumber` = 'O24110049927', `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` = '30',`total_price` = '14400',`etd` = '2025-01-06',`create_date` = '2024-11-17 09:24:21',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110049927' and product_code = 'DG010312-02' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110049927' and product_code = 'DG010312-03' 2024-11-17 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,'250789','8','O24110049927','【原味+咖啡】金8結禮盒','DG010312-03','DG010312','金8結盒','禮盒-金8結【原味+咖啡】','590','480','0','0','0','0','1','480.0','30','14400','2025-01-06','2024-11-17 09:24:21','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250789',`firm_id` = '8',`ordernumber` = 'O24110049927', `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` = '30',`total_price` = '14400',`etd` = '2025-01-06',`create_date` = '2024-11-17 09:24:21',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110049927' and product_code = 'DG010312-03' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110049927' and product_code = 'BP010189-01' 2024-11-17 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,'250789','8','O24110049927','贈品-SNOOPY面紙套','BP010189-01','BP010189','贈品-SNOOPY面紙套','贈品-SNOOPY面紙套','0','0','0','0','0','0','1','0.0','8','0','2025-01-06','2024-11-17 09:24:21','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250789',`firm_id` = '8',`ordernumber` = 'O24110049927', `product_name` = '贈品-SNOOPY面紙套',`product_code` = 'BP010189-01',`product_sn` = 'BP010189',`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` = '8',`total_price` = '0',`etd` = '2025-01-06',`create_date` = '2024-11-17 09:24:21',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110049927' and product_code = 'BP010189-01' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110050097' and product_code = 'DG010312-03' 2024-11-17 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,'250790','8','O24110050097','【原味+咖啡】金8結禮盒','DG010312-03','DG010312','金8結盒','禮盒-金8結【原味+咖啡】','590','480','0','0','0','0','1','480.0','1','480','2024-11-20','2024-11-17 11:22:10','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250790',`firm_id` = '8',`ordernumber` = 'O24110050097', `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` = '1',`total_price` = '480',`etd` = '2024-11-20',`create_date` = '2024-11-17 11:22:10',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110050097' and product_code = 'DG010312-03' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110050097' and product_code = 'DG010312-05' 2024-11-17 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,'250790','8','O24110050097','【原味+巧克力】金8結禮盒','DG010312-05','DG010312','金8結盒','禮盒-金8結【原味+巧克力】','590','480','0','0','0','0','1','480.0','1','480','2024-11-20','2024-11-17 11:22:10','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250790',`firm_id` = '8',`ordernumber` = 'O24110050097', `product_name` = '【原味+巧克力】金8結禮盒',`product_code` = 'DG010312-05',`product_sn` = 'DG010312',`product_spec` = '金8結盒',`invoice_name` = '禮盒-金8結【原味+巧克力】',`listprice` = '590',`sellingprice` = '480',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '480.0',`amount` = '1',`total_price` = '480',`etd` = '2024-11-20',`create_date` = '2024-11-17 11:22:10',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110050097' and product_code = 'DG010312-05' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110050195' and product_code = 'DG010312-05' 2024-11-17 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,'250791','8','O24110050195','【原味+巧克力】金8結禮盒','DG010312-05','DG010312','金8結盒','禮盒-金8結【原味+巧克力】','590','480','0','0','0','0','1','480.0','4','1920','2025-01-06','2024-11-17 11:54:18','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250791',`firm_id` = '8',`ordernumber` = 'O24110050195', `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` = '4',`total_price` = '1920',`etd` = '2025-01-06',`create_date` = '2024-11-17 11:54:18',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110050195' and product_code = 'DG010312-05' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110050195' and product_code = 'DG010258-01' 2024-11-17 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,'250791','8','O24110050195','金豐收8結提盒','DG010258-01','DG010258','40入原味蛋捲','提盒-金豐收(藍)-40入原味','295','295','0','0','0','0','1','0.0','2','590','2025-01-06','2024-11-17 11:54:18','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250791',`firm_id` = '8',`ordernumber` = 'O24110050195', `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` = '2',`total_price` = '590',`etd` = '2025-01-06',`create_date` = '2024-11-17 11:54:18',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110050195' and product_code = 'DG010258-01' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110050195' and product_code = '13658' 2024-11-17 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,'250791','8','O24110050195','8結蛋捲【紅提袋裝】','13658','13656','40入咖啡蛋捲','組合-40入咖啡+紅提袋','290','290','0','0','0','0','1','0.0','1','290','2025-01-06','2024-11-17 11:54:18','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250791',`firm_id` = '8',`ordernumber` = 'O24110050195', `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` = '1',`total_price` = '290',`etd` = '2025-01-06',`create_date` = '2024-11-17 11:54:18',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110050195' and product_code = '13658' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110050250' and product_code = 'DG010312-02' 2024-11-17 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,'250792','8','O24110050250','【原味+芝麻】金8結禮盒','DG010312-02','DG010312','金8結盒','禮盒-金8結【原味+芝麻】','590','480','0','0','0','0','1','480.0','2','960','2024-11-22','2024-11-17 16:34:06','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250792',`firm_id` = '8',`ordernumber` = 'O24110050250', `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` = '2',`total_price` = '960',`etd` = '2024-11-22',`create_date` = '2024-11-17 16:34:06',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110050250' and product_code = 'DG010312-02' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110050383' and product_code = 'DG010206-01' 2024-11-17 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,'250793','8','O24110050383','8結蛋捲【紅提盒裝】','DG010206-01','DG010206','原味','提盒-品牌(紅)-40入原味蛋捲','295','295','0','0','0','0','1','0.0','50','14750','2025-01-03','2024-11-17 16:39:47','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250793',`firm_id` = '8',`ordernumber` = 'O24110050383', `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` = '50',`total_price` = '14750',`etd` = '2025-01-03',`create_date` = '2024-11-17 16:39:47',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110050383' and product_code = 'DG010206-01' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110050383' and product_code = 'BP010189-01' 2024-11-17 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,'250793','8','O24110050383','贈品-SNOOPY面紙套','BP010189-01','BP010189','贈品-SNOOPY面紙套','贈品-SNOOPY面紙套','0','0','0','0','0','0','1','0.0','4','0','2025-01-03','2024-11-17 16:39:47','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250793',`firm_id` = '8',`ordernumber` = 'O24110050383', `product_name` = '贈品-SNOOPY面紙套',`product_code` = 'BP010189-01',`product_sn` = 'BP010189',`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` = '4',`total_price` = '0',`etd` = '2025-01-03',`create_date` = '2024-11-17 16:39:47',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110050383' and product_code = 'BP010189-01' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110050498' and product_code = '13656' 2024-11-17 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,'250794','8','O24110050498','8結蛋捲【紅提袋裝】','13656','13656','40入原味蛋捲','組合-40入原味+紅提袋','290','290','0','0','0','0','1','0.0','10','2900','2024-11-21','2024-11-17 17:19:31','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250794',`firm_id` = '8',`ordernumber` = 'O24110050498', `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` = '10',`total_price` = '2900',`etd` = '2024-11-21',`create_date` = '2024-11-17 17:19:31',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110050498' and product_code = '13656' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110050498' and product_code = '13657' 2024-11-17 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,'250794','8','O24110050498','8結蛋捲【紅提袋裝】','13657','13656','40入芝麻蛋捲','組合-40入芝麻+紅提袋','290','290','0','0','0','0','1','0.0','10','2900','2024-11-21','2024-11-17 17:19:31','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250794',`firm_id` = '8',`ordernumber` = 'O24110050498', `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` = '10',`total_price` = '2900',`etd` = '2024-11-21',`create_date` = '2024-11-17 17:19:31',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110050498' and product_code = '13657' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110050498' and product_code = '13660' 2024-11-17 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,'250794','8','O24110050498','8結蛋捲【紅提袋裝】','13660','13656','40入巧克力蛋捲','組合-40入巧克力+紅提袋','290','290','0','0','0','0','1','0.0','10','2900','2024-11-21','2024-11-17 17:19:31','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250794',`firm_id` = '8',`ordernumber` = 'O24110050498', `product_name` = '8結蛋捲【紅提袋裝】',`product_code` = '13660',`product_sn` = '13656',`product_spec` = '40入巧克力蛋捲',`invoice_name` = '組合-40入巧克力+紅提袋',`listprice` = '290',`sellingprice` = '290',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '10',`total_price` = '2900',`etd` = '2024-11-21',`create_date` = '2024-11-17 17:19:31',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110050498' and product_code = '13660' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110050498' and product_code = 'BP010189-01' 2024-11-17 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,'250794','8','O24110050498','贈品-SNOOPY面紙套','BP010189-01','BP010189','贈品-SNOOPY面紙套','贈品-SNOOPY面紙套','0','0','0','0','0','0','1','0.0','2','0','2024-11-21','2024-11-17 17:19:31','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250794',`firm_id` = '8',`ordernumber` = 'O24110050498', `product_name` = '贈品-SNOOPY面紙套',`product_code` = 'BP010189-01',`product_sn` = 'BP010189',`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` = '2',`total_price` = '0',`etd` = '2024-11-21',`create_date` = '2024-11-17 17:19:31',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110050498' and product_code = 'BP010189-01' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110050498' and product_code = 'DG010404-01' 2024-11-17 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,'250794','8','O24110050498','[加購]紅色提袋','DG010404-01','DG010404','-','紅色提袋','10','10','1','0','10','0','0','0.0','30','300','2024-11-21','2024-11-17 17:19:31','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250794',`firm_id` = '8',`ordernumber` = 'O24110050498', `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` = '30',`total_price` = '300',`etd` = '2024-11-21',`create_date` = '2024-11-17 17:19:31',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110050498' and product_code = 'DG010404-01' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110050520' and product_code = 'DG010206-01' 2024-11-17 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,'250795','8','O24110050520','8結蛋捲【紅提盒裝】','DG010206-01','DG010206','原味','提盒-品牌(紅)-40入原味蛋捲','295','295','0','0','0','0','1','0.0','5','1475','2025-01-06','2024-11-17 20:15:28','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250795',`firm_id` = '8',`ordernumber` = 'O24110050520', `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` = '5',`total_price` = '1475',`etd` = '2025-01-06',`create_date` = '2024-11-17 20:15:28',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110050520' and product_code = 'DG010206-01' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110050520' and product_code = 'DG010206-02' 2024-11-17 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,'250795','8','O24110050520','8結蛋捲【紅提盒裝】','DG010206-02','DG010206','芝麻','提盒-品牌(紅)-40入芝麻蛋捲','295','295','0','0','0','0','1','0.0','5','1475','2025-01-06','2024-11-17 20:15:28','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250795',`firm_id` = '8',`ordernumber` = 'O24110050520', `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` = '2025-01-06',`create_date` = '2024-11-17 20:15:28',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110050520' and product_code = 'DG010206-02' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110050642' and product_code = 'DG010101-01' 2024-11-17 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,'250796','8','O24110050642','經典原味蛋捲','DG010101-01','DG010101','原味','40入原味蛋捲','320','280','0','0','0','0','1','280.0','2','560','2024-11-21','2024-11-17 21:26:17','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250796',`firm_id` = '8',`ordernumber` = 'O24110050642', `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` = '2',`total_price` = '560',`etd` = '2024-11-21',`create_date` = '2024-11-17 21:26:17',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110050642' and product_code = 'DG010101-01' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110050642' and product_code = 'DG010101-05' 2024-11-17 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,'250796','8','O24110050642','濃情巧克力蛋捲','DG010101-05','DG010101','巧克力','40入巧克力蛋捲','320','280','0','0','0','0','1','280.0','1','280','2024-11-21','2024-11-17 21:26:17','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250796',`firm_id` = '8',`ordernumber` = 'O24110050642', `product_name` = '濃情巧克力蛋捲',`product_code` = 'DG010101-05',`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-11-21',`create_date` = '2024-11-17 21:26:17',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110050642' and product_code = 'DG010101-05' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110050752' and product_code = 'DG010312-07' 2024-11-17 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,'250797','8','O24110050752','【芝麻+咖啡】金8結禮盒','DG010312-07','DG010312','金8結盒','禮盒-金8結【芝麻+咖啡】','590','480','0','0','0','0','1','480.0','8','3840','2025-01-06','2024-11-17 21:28:51','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250797',`firm_id` = '8',`ordernumber` = 'O24110050752', `product_name` = '【芝麻+咖啡】金8結禮盒',`product_code` = 'DG010312-07',`product_sn` = 'DG010312',`product_spec` = '金8結盒',`invoice_name` = '禮盒-金8結【芝麻+咖啡】',`listprice` = '590',`sellingprice` = '480',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '480.0',`amount` = '8',`total_price` = '3840',`etd` = '2025-01-06',`create_date` = '2024-11-17 21:28:51',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110050752' and product_code = 'DG010312-07' 2024-11-17 23:59:06 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'O24110050752' and product_code = 'BP010189-01' 2024-11-17 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,'250797','8','O24110050752','贈品-SNOOPY面紙套','BP010189-01','BP010189','贈品-SNOOPY面紙套','贈品-SNOOPY面紙套','0','0','0','0','0','0','1','0.0','1','0','2025-01-06','2024-11-17 21:28:51','2024-11-17 23:59:06',null,'1','2024-10-17') 2024-11-17 23:59:06 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '250797',`firm_id` = '8',`ordernumber` = 'O24110050752', `product_name` = '贈品-SNOOPY面紙套',`product_code` = 'BP010189-01',`product_sn` = 'BP010189',`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` = '2025-01-06',`create_date` = '2024-11-17 21:28:51',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1', `lunar_date` = '2024-10-17'where ordernumber = 'O24110050752' and product_code = 'BP010189-01' 2024-11-17 23:59:06 -- == sync_order_detail end == 2024-11-17 23:59:06 -- == sync_order start == 2024-11-17 23:59:06 -- start:2024-11-17,end:2024-11-17 2024-11-17 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-11-17%' OR l.modify_date like '2024-11-17%'; 2024-11-17 23:59:07 -- == sync omo_order_list == 2024-11-17 23:59:07 -- == update lake.omo_order_list == update omo_order_list set userId = '429241', process_status = '3', pay_status = '1', totalprice_after = '1000', lunar_date = '2024-10-07', invoice_status = '0', category_name = '彌月試吃,FB訂單', category_id = '2,10' where ordernumber = 'M24110006016' 2024-11-17 23:59:07 -- == update lake.omo_order_list == update omo_order_list set userId = '430199', process_status = '3', pay_status = '7', totalprice_after = '600', lunar_date = '2024-10-14', invoice_status = '0', category_name = '彌月試吃,LINE@訂單', category_id = '2,9' where ordernumber = 'M24110012888' 2024-11-17 23:59:07 -- == 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 ('153945','64943',2,'電話訂單,永康門市訂單','12,22','M24110014478','1','1','1','1','1','','','0','2024-11-18','0','900','0','','0','0','18000','327','桃園市','新屋區','327','桃園市','新屋區','17100','2024-11-17 12:30:47','2024-10-17') 2024-11-17 23:59:07 -- == sync_order end == 2024-11-17 23:59:07 -- == sync_order_detail start == 2024-11-17 23:59:07 -- start:2024-11-17,end:2024-11-17 2024-11-17 23:59:07 -- == sync omo_order_detail == 2024-11-17 23:59:07 -- == SELECT order_detail == SELECT * from order_detail WHERE create_date like '2024-11-17%' OR modify_date like '2024-11-17%' 2024-11-17 23:59:07 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'M24110006016' and product_code = 'DG010243-05' 2024-11-17 23:59:07 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '33298',`firm_id` = '11',`ordernumber` = 'M24110006016', `product_name` = '年輪提盒彌月試吃【A1】',`product_code` = 'DG010243-05',`product_sn` = 'DG010243',`product_spec` = '巧克力',`invoice_name` = '提盒-彌月年輪-40入巧克力(試吃)',`listprice` = '300',`sellingprice` = '300',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '300.0',`amount` = '1',`total_price` = '300',`etd` = '2024-11-17',`create_date` = '2024-11-07 09:55:23',`modify_date` = '2024-11-17 14:22:08',`points_use_id` = null,`item_status` = '1' where ordernumber = 'M24110006016' and product_code = 'DG010243-05', `lunar_date` = '2024-10-07' 2024-11-17 23:59:07 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'M24110006016' and product_code = 'DG010267-02' 2024-11-17 23:59:07 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '33298',`firm_id` = '11',`ordernumber` = 'M24110006016', `product_name` = 'SNOOPY獨特心意提盒(粉)-彌月試吃【A2】',`product_code` = 'DG010267-02',`product_sn` = 'DG010267',`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-11-17',`create_date` = '2024-11-07 09:55:23',`modify_date` = '2024-11-17 14:22:08',`points_use_id` = null,`item_status` = '1' where ordernumber = 'M24110006016' and product_code = 'DG010267-02', `lunar_date` = '2024-10-07' 2024-11-17 23:59:07 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'M24110006016' and product_code = 'DG0103190-11' 2024-11-17 23:59:07 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '33298',`firm_id` = '11',`ordernumber` = 'M24110006016', `product_name` = 'SNOOPY美好探尋禮盒(橘)-彌月試吃【B2】',`product_code` = 'DG0103190-11',`product_sn` = 'DG0103190',`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-11-17',`create_date` = '2024-11-07 09:55:23',`modify_date` = '2024-11-17 14:22:08',`points_use_id` = null,`item_status` = '1' where ordernumber = 'M24110006016' and product_code = 'DG0103190-11', `lunar_date` = '2024-10-07' 2024-11-17 23:59:07 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'M24110006016' and product_code = 'DG010270-05' 2024-11-17 23:59:07 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '33298',`firm_id` = '11',`ordernumber` = 'M24110006016', `product_name` = '吳淡如提盒-彌月試吃【A3】',`product_code` = 'DG010270-05',`product_sn` = 'DG010270',`product_spec` = '巧克力',`invoice_name` = '提盒-彌月吳淡如-40入巧克力(試吃)',`listprice` = '300',`sellingprice` = '300',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '300',`etd` = '2024-11-17',`create_date` = '2024-11-07 09:55:23',`modify_date` = '2024-11-17 14:22:08',`points_use_id` = null,`item_status` = '1' where ordernumber = 'M24110006016' and product_code = 'DG010270-05', `lunar_date` = '2024-10-07' 2024-11-17 23:59:07 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'M24110012888' and product_code = 'DG010243-02' 2024-11-17 23:59:07 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '33375',`firm_id` = '11',`ordernumber` = 'M24110012888', `product_name` = '年輪提盒彌月試吃【A1】',`product_code` = 'DG010243-02',`product_sn` = 'DG010243',`product_spec` = '芝麻',`invoice_name` = '提盒-彌月年輪-40入芝麻(試吃)',`listprice` = '300',`sellingprice` = '300',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '300.0',`amount` = '1',`total_price` = '300',`etd` = '2024-11-17',`create_date` = '2024-11-14 13:19:47',`modify_date` = '2024-11-17 19:01:33',`points_use_id` = null,`item_status` = '1' where ordernumber = 'M24110012888' and product_code = 'DG010243-02', `lunar_date` = '2024-10-14' 2024-11-17 23:59:07 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'M24110012888' and product_code = 'DG010267-02' 2024-11-17 23:59:07 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '33375',`firm_id` = '11',`ordernumber` = 'M24110012888', `product_name` = 'SNOOPY獨特心意提盒(粉)-彌月試吃【A2】',`product_code` = 'DG010267-02',`product_sn` = 'DG010267',`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-11-17',`create_date` = '2024-11-14 13:19:47',`modify_date` = '2024-11-17 19:01:33',`points_use_id` = null,`item_status` = '1' where ordernumber = 'M24110012888' and product_code = 'DG010267-02', `lunar_date` = '2024-10-14' 2024-11-17 23:59:07 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'M24110012888' and product_code = 'DG010270-02' 2024-11-17 23:59:07 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '33375',`firm_id` = '11',`ordernumber` = 'M24110012888', `product_name` = '吳淡如提盒-彌月試吃【A3】',`product_code` = 'DG010270-02',`product_sn` = 'DG010270',`product_spec` = '芝麻',`invoice_name` = '提盒-彌月吳淡如-40入芝麻(試吃)',`listprice` = '300',`sellingprice` = '300',`isadd` = '0',`isbaby` = '0',`addprice` = '0',`is_exclude` = '0',`freight_type` = '1',`commission` = '0.0',`amount` = '1',`total_price` = '300',`etd` = '2024-11-17',`create_date` = '2024-11-14 13:19:47',`modify_date` = '2024-11-17 19:01:33',`points_use_id` = null,`item_status` = '1' where ordernumber = 'M24110012888' and product_code = 'DG010270-02', `lunar_date` = '2024-10-14' 2024-11-17 23:59:07 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'M24110014478' and product_code = 'DG010266-01' 2024-11-17 23:59:07 -- == INSERT lake.omo_order_detail == INSERT INTO `omo_order_detail`(`id`, `channel`, `order_id`, `firm_id`, `ordernumber`, `product_name`, `product_code`, `product_sn`, `product_spec`, `invoice_name`, `listprice`, `sellingprice`, `isadd`, `isbaby`, `addprice`, `is_exclude`, `freight_type`, `commission`, `amount`, `total_price`, `etd`, `create_date`, `modify_date`, `points_use_id`, `item_status`,`lunar_date`) VALUES (null, 2,'33394','8','M24110014478','【預購-11/27起出貨】SNOOPY獨特心意-8結彌月提盒','DG010266-01','DG010266','原味','提盒-彌月SNOOPY(粉)-40入原味','300','300','0','0','0','0','1','0.0','25','7500','2024-11-18','2024-11-17 12:30:47','2024-11-17 23:59:07',null,'1','2024-10-17') 2024-11-17 23:59:07 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '33394',`firm_id` = '8',`ordernumber` = 'M24110014478', `product_name` = '【預購-11/27起出貨】SNOOPY獨特心意-8結彌月提盒',`product_code` = 'DG010266-01',`product_sn` = 'DG010266',`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` = '25',`total_price` = '7500',`etd` = '2024-11-18',`create_date` = '2024-11-17 12:30:47',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'M24110014478' and product_code = 'DG010266-01', `lunar_date` = '2024-10-17' 2024-11-17 23:59:07 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'M24110014478' and product_code = 'DG010266-02' 2024-11-17 23:59:07 -- == INSERT lake.omo_order_detail == INSERT INTO `omo_order_detail`(`id`, `channel`, `order_id`, `firm_id`, `ordernumber`, `product_name`, `product_code`, `product_sn`, `product_spec`, `invoice_name`, `listprice`, `sellingprice`, `isadd`, `isbaby`, `addprice`, `is_exclude`, `freight_type`, `commission`, `amount`, `total_price`, `etd`, `create_date`, `modify_date`, `points_use_id`, `item_status`,`lunar_date`) VALUES (null, 2,'33394','8','M24110014478','【預購-11/27起出貨】SNOOPY獨特心意-8結彌月提盒','DG010266-02','DG010266','芝麻','提盒-彌月SNOOPY(粉)-40入芝麻','300','300','0','0','0','0','1','0.0','15','4500','2024-11-18','2024-11-17 12:30:47','2024-11-17 23:59:07',null,'1','2024-10-17') 2024-11-17 23:59:07 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '33394',`firm_id` = '8',`ordernumber` = 'M24110014478', `product_name` = '【預購-11/27起出貨】SNOOPY獨特心意-8結彌月提盒',`product_code` = 'DG010266-02',`product_sn` = 'DG010266',`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` = '15',`total_price` = '4500',`etd` = '2024-11-18',`create_date` = '2024-11-17 12:30:47',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'M24110014478' and product_code = 'DG010266-02', `lunar_date` = '2024-10-17' 2024-11-17 23:59:07 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'M24110014478' and product_code = 'DG010266-03' 2024-11-17 23:59:07 -- == INSERT lake.omo_order_detail == INSERT INTO `omo_order_detail`(`id`, `channel`, `order_id`, `firm_id`, `ordernumber`, `product_name`, `product_code`, `product_sn`, `product_spec`, `invoice_name`, `listprice`, `sellingprice`, `isadd`, `isbaby`, `addprice`, `is_exclude`, `freight_type`, `commission`, `amount`, `total_price`, `etd`, `create_date`, `modify_date`, `points_use_id`, `item_status`,`lunar_date`) VALUES (null, 2,'33394','8','M24110014478','【預購-11/27起出貨】SNOOPY獨特心意-8結彌月提盒','DG010266-03','DG010266','咖啡','提盒-彌月SNOOPY(粉)-40入咖啡','300','300','0','0','0','0','1','0.0','10','3000','2024-11-18','2024-11-17 12:30:47','2024-11-17 23:59:07',null,'1','2024-10-17') 2024-11-17 23:59:07 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '33394',`firm_id` = '8',`ordernumber` = 'M24110014478', `product_name` = '【預購-11/27起出貨】SNOOPY獨特心意-8結彌月提盒',`product_code` = 'DG010266-03',`product_sn` = 'DG010266',`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` = '10',`total_price` = '3000',`etd` = '2024-11-18',`create_date` = '2024-11-17 12:30:47',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'M24110014478' and product_code = 'DG010266-03', `lunar_date` = '2024-10-17' 2024-11-17 23:59:07 -- == SELECT lake.omo_order_detail == select ordernumber from omo_order_detail where ordernumber = 'M24110014478' and product_code = 'DG010266-05' 2024-11-17 23:59:07 -- == INSERT lake.omo_order_detail == INSERT INTO `omo_order_detail`(`id`, `channel`, `order_id`, `firm_id`, `ordernumber`, `product_name`, `product_code`, `product_sn`, `product_spec`, `invoice_name`, `listprice`, `sellingprice`, `isadd`, `isbaby`, `addprice`, `is_exclude`, `freight_type`, `commission`, `amount`, `total_price`, `etd`, `create_date`, `modify_date`, `points_use_id`, `item_status`,`lunar_date`) VALUES (null, 2,'33394','8','M24110014478','【預購-11/27起出貨】SNOOPY獨特心意-8結彌月提盒','DG010266-05','DG010266','巧克力','提盒-彌月SNOOPY(粉)-40入巧克力','300','300','0','0','0','0','1','0.0','10','3000','2024-11-18','2024-11-17 12:30:47','2024-11-17 23:59:07',null,'1','2024-10-17') 2024-11-17 23:59:07 -- == UPDATE lake.order_detail == UPDATE `omo_order_detail` SET `order_id` = '33394',`firm_id` = '8',`ordernumber` = 'M24110014478', `product_name` = '【預購-11/27起出貨】SNOOPY獨特心意-8結彌月提盒',`product_code` = 'DG010266-05',`product_sn` = 'DG010266',`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` = '10',`total_price` = '3000',`etd` = '2024-11-18',`create_date` = '2024-11-17 12:30:47',`modify_date` = '0000-00-00 00:00:00',`points_use_id` = null,`item_status` = '1' where ordernumber = 'M24110014478' and product_code = 'DG010266-05', `lunar_date` = '2024-10-17' 2024-11-17 23:59:07 -- == sync_order_detail end == 2024-11-17 23:59:07 -- == select one.order_list == SELECT o.code,o.pay_status,o.order_status,o.user_id,o.pay_method_id,o.activity_freight_id,o.freight_fee,o.items_total,o.total,DATE(o.shipped_at) as shipped_at,o.created_at as create_date, inv.company_number,inv.company_title,inv.invoice_status, cust.zipcode,cust.county,cust.district, rec.zipcode as recipientzip,rec.county as recipientaddresscity,rec.district as recipientaddressarea, af.type as freight_type FROM `orders` o LEFT JOIN systemlead_invoices inv on o.id = inv.order_id LEFT JOIN order_customers cust on o.id = cust.order_id LEFT JOIN order_receivers rec on o.id = rec.order_id LEFT JOIN activity_freights af on o.activity_freight_id = af.id WHERE (DATE(o.created_at) = '2024-11-17' OR o.updated_at = '2024-11-17') and o.deleted_at is null 2024-11-17 23:59:07 -- == sync_order_detail start == 2024-11-17 23:59:07 -- start:2024-11-17,end:2024-11-17 2024-11-17 23:59:08 -- step1: SELECT id,sku,combinations_product_spec_id FROM `product_specs` 2024-11-17 23:59:09 -- step2: SELECT * FROM `product_specs` WHERE combinations_product_spec_id is not null 2024-11-17 23:59:17 -- step3: SELECT id,product_code,product_sn FROM `omo_order_detail` WHERE `channel` = 6 and product_code like '%,%' and create_date LIKE '2024-11-17%';