哎呀!資料庫有點問題呢!
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-09' , '{\"SchoolId\":64737409,\"SchoolName\":\"桃園市楊梅區楊心國小\",\"ConuntyId\":25,\"AreaId\":131440,\"SchoolType\":2,\"meal\":[{\"BatchDataId\":\"1725612502013364\",\"KitchenId\":26783,\"KitchenName\":\"軒泰食品有限公司-502\",\"SchoolId\":64737409,\"SchoolName\":\"桃園市楊梅區楊心國小\",\"MenuDate\":\"2024\\/09\\/09\",\"MenuType\":1,\"MenuTypeName\":\"午餐\",\"UploadDateTime\":\"2024-09-09T00:50:08.000Z\",\"TypeGrains\":\"2.94\",\"TypeOil\":\"0\",\"TypeVegetable\":\"1.38\",\"TypeMilk\":\"0\",\"TypeFruit\":\"14.73\",\"TypeMeatBeans\":\"2.63\",\"Calorie\":\"1220\",\"dish\":[{\"DishBatchDataId\":\"1725843007082424\",\"BatchDataId\":\"1725612502013364\",\"DishName\":\"麥片飯\",\"DishType\":\"主食\",\"DishId\":\"1494489592380618\",\"UpdateDateTime\":\"2024-09-09T00:50:08.000Z\",\"DishOrder\":10,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1494489592380618.\"},{\"DishBatchDataId\":\"1725843007082429\",\"BatchDataId\":\"1725612502013364\",\"DishName\":\"親子丼\",\"DishType\":\"主菜\",\"DishId\":\"1631490759309743\",\"UpdateDateTime\":\"2024-09-09T00:50:08.000Z\",\"DishOrder\":12,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1631490759309743.\"},{\"DishBatchDataId\":\"1725843007082427\",\"BatchDataId\":\"1725612502013364\",\"DishName\":\"鐵板銀芽\",\"DishType\":\"副菜\",\"DishId\":\"1631150223376661\",\"UpdateDateTime\":\"2024-09-09T00:50:08.000Z\",\"DishOrder\":16,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1631150223376661.\"},{\"DishBatchDataId\":\"1725843007082423\",\"BatchDataId\":\"1725612502013364\",\"DishName\":\"產履小白菜\",\"DishType\":\"蔬菜\",\"DishId\":\"1646291600060221\",\"UpdateDateTime\":\"2024-09-09T00:50:08.000Z\",\"DishOrder\":22,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1646291600060221.jpg\"},{\"DishBatchDataId\":\"1725843007082425\",\"BatchDataId\":\"1725612502013364\",\"DishName\":\"鳳梨銀耳湯\",\"DishType\":\"湯品\",\"DishId\":\"1662528019097032\",\"UpdateDateTime\":\"2024-09-09T00:50:08.000Z\",\"DishOrder\":23,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1662528019097032.\"},{\"DishBatchDataId\":\"1725843007082428\",\"BatchDataId\":\"1725612502013364\",\"DishName\":\"香蕉\",\"DishType\":\"附餐\",\"DishId\":\"1498437366332399\",\"UpdateDateTime\":\"2024-09-09T00:50:08.000Z\",\"DishOrder\":24,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1498437366332399.\"},{\"DishBatchDataId\":\"1725843007082426\",\"BatchDataId\":\"1725612502013364\",\"DishName\":\"調味料\",\"DishId\":\"1489742465347286\",\"UpdateDateTime\":\"2024-09-09T00:50:08.000Z\",\"DishOrder\":26,\"KitchenId\":26783,\"PicturePath\":\"\"}]}]}' , '0', '', now())
Duplicate entry '90-SchoolId-64737409-2024-09-09-0' for key 'PRIMARY'
/opt/lampp/htdocs/modules/tadtools/class/TadDataCenter.php:339