哎呀!資料庫有點問題呢!
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-08-30' , '{\"SchoolId\":64737409,\"SchoolName\":\"桃園市楊梅區楊心國小\",\"ConuntyId\":25,\"AreaId\":131440,\"SchoolType\":2,\"meal\":[{\"BatchDataId\":\"1724924081057551\",\"KitchenId\":26783,\"KitchenName\":\"軒泰食品有限公司-502\",\"SchoolId\":64737409,\"SchoolName\":\"桃園市楊梅區楊心國小\",\"MenuDate\":\"2024\\/08\\/30\",\"MenuType\":1,\"MenuTypeName\":\"午餐\",\"UploadDateTime\":\"2024-08-30T00:48:43.000Z\",\"TypeGrains\":\"3.69\",\"TypeOil\":\"0\",\"TypeVegetable\":\"0.99\",\"TypeMilk\":\"0\",\"TypeFruit\":\"0\",\"TypeMeatBeans\":\"3.29\",\"Calorie\":\"486\",\"dish\":[{\"DishBatchDataId\":\"1724978923055869\",\"BatchDataId\":\"1724924081057551\",\"DishName\":\"芝麻飯\",\"DishType\":\"主食\",\"DishId\":\"1489742465347279\",\"UpdateDateTime\":\"2024-08-30T00:48:43.000Z\",\"DishOrder\":10,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1489742465347279.\"},{\"DishBatchDataId\":\"1724978923055873\",\"BatchDataId\":\"1724924081057551\",\"DishName\":\"咖哩雞\",\"DishType\":\"主菜\",\"DishId\":\"1498437366332396\",\"UpdateDateTime\":\"2024-08-30T00:48:43.000Z\",\"DishOrder\":12,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1498437366332396.\"},{\"DishBatchDataId\":\"1724978923055872\",\"BatchDataId\":\"1724924081057551\",\"DishName\":\"三色干絲\",\"DishType\":\"副菜\",\"DishId\":\"1631228934329484\",\"UpdateDateTime\":\"2024-08-30T00:48:43.000Z\",\"DishOrder\":16,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1631228934329484.\"},{\"DishBatchDataId\":\"1724978923055868\",\"BatchDataId\":\"1724924081057551\",\"DishName\":\"有機甜菜心\",\"DishType\":\"蔬菜\",\"DishId\":\"1556843827319030\",\"UpdateDateTime\":\"2024-08-30T00:48:43.000Z\",\"DishOrder\":22,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1556843827319030.\"},{\"DishBatchDataId\":\"1724978923055870\",\"BatchDataId\":\"1724924081057551\",\"DishName\":\"綠豆薏仁湯\",\"DishType\":\"湯品\",\"DishId\":\"1495174981333852\",\"UpdateDateTime\":\"2024-08-30T00:48:43.000Z\",\"DishOrder\":23,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1495174981333852.\"},{\"DishBatchDataId\":\"1724978923055871\",\"BatchDataId\":\"1724924081057551\",\"DishName\":\"調味料\",\"DishId\":\"1489742465347286\",\"UpdateDateTime\":\"2024-08-30T00:48:43.000Z\",\"DishOrder\":26,\"KitchenId\":26783,\"PicturePath\":\"\"}]}]}' , '0', '', now())
Duplicate entry '90-SchoolId-64737409-2024-08-30-0' for key 'PRIMARY'
/opt/lampp/htdocs/modules/tadtools/class/TadDataCenter.php:339