哎呀!資料庫有點問題呢!
insert into `xc2aysestycedu_tad_lunch3_data_center`
(`mid` , `col_name` , `col_sn` , `data_name` , `data_value` , `data_sort`, `col_id`, `update_time`)
values('90' , 'SchoolId' , '64737409' , '2024-09-04' , '{\"SchoolId\":64737409,\"SchoolName\":\"桃園市楊梅區楊心國小\",\"ConuntyId\":25,\"AreaId\":131440,\"SchoolType\":2,\"meal\":[{\"BatchDataId\":\"1725005205099685\",\"KitchenId\":26783,\"KitchenName\":\"軒泰食品有限公司-502\",\"SchoolId\":64737409,\"SchoolName\":\"桃園市楊梅區楊心國小\",\"MenuDate\":\"2024\\/09\\/04\",\"MenuType\":1,\"MenuTypeName\":\"午餐\",\"UploadDateTime\":\"2024-09-02T00:34:51.000Z\",\"TypeGrains\":\"4.59\",\"TypeOil\":\"0.05\",\"TypeVegetable\":\"1.51\",\"TypeMilk\":\"0.8\",\"TypeFruit\":\"0\",\"TypeMeatBeans\":\"1.92\",\"Calorie\":\"560\",\"dish\":[{\"DishBatchDataId\":\"1725237291057627\",\"BatchDataId\":\"1725005205099685\",\"DishName\":\"台式炒麵\",\"DishType\":\"主食\",\"DishId\":\"1540727309240010\",\"UpdateDateTime\":\"2024-09-02T00:34:51.000Z\",\"DishOrder\":10,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1540727309240010.\"},{\"DishBatchDataId\":\"1725237291057631\",\"BatchDataId\":\"1725005205099685\",\"DishName\":\"蒜泥白肉\",\"DishType\":\"主菜\",\"DishId\":\"1489742465347334\",\"UpdateDateTime\":\"2024-09-02T00:34:51.000Z\",\"DishOrder\":12,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1489742465347334.\"},{\"DishBatchDataId\":\"1725237291057626\",\"BatchDataId\":\"1725005205099685\",\"DishName\":\"有機綠莧菜\",\"DishType\":\"蔬菜\",\"DishId\":\"1630970246352505\",\"UpdateDateTime\":\"2024-09-02T00:34:51.000Z\",\"DishOrder\":22,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1630970246352505.\"},{\"DishBatchDataId\":\"1725237291057628\",\"BatchDataId\":\"1725005205099685\",\"DishName\":\"竹筍菇菇湯\",\"DishType\":\"湯品\",\"DishId\":\"1687220271064956\",\"UpdateDateTime\":\"2024-09-02T00:34:51.000Z\",\"DishOrder\":23,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1687220271064956.\"},{\"DishBatchDataId\":\"1725237291057630\",\"BatchDataId\":\"1725005205099685\",\"DishName\":\"鮮奶\",\"DishType\":\"附餐\",\"DishId\":\"1491329833301476\",\"UpdateDateTime\":\"2024-09-02T00:34:51.000Z\",\"DishOrder\":24,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1491329833301476.\"},{\"DishBatchDataId\":\"1725237291057629\",\"BatchDataId\":\"1725005205099685\",\"DishName\":\"調味料\",\"DishId\":\"1489742465347286\",\"UpdateDateTime\":\"2024-09-02T00:34:51.000Z\",\"DishOrder\":26,\"KitchenId\":26783,\"PicturePath\":\"\"}]}]}' , '0', '', now())
Duplicate entry '90-SchoolId-64737409-2024-09-04-0' for key 'PRIMARY'
/opt/lampp/htdocs/modules/tadtools/class/TadDataCenter.php:339