哎呀!資料庫有點問題呢!
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-06' , '{\"SchoolId\":64737409,\"SchoolName\":\"桃園市楊梅區楊心國小\",\"ConuntyId\":25,\"AreaId\":131440,\"SchoolType\":2,\"meal\":[{\"BatchDataId\":\"1725005206099761\",\"KitchenId\":26783,\"KitchenName\":\"軒泰食品有限公司-502\",\"SchoolId\":64737409,\"SchoolName\":\"桃園市楊梅區楊心國小\",\"MenuDate\":\"2024\\/09\\/06\",\"MenuType\":1,\"MenuTypeName\":\"午餐\",\"UploadDateTime\":\"2024-09-06T01:59:04.000Z\",\"TypeGrains\":\"2.7\",\"TypeOil\":\"0.03\",\"TypeVegetable\":\"0.85\",\"TypeMilk\":\"0\",\"TypeFruit\":\"0.07\",\"TypeMeatBeans\":\"3.04\",\"Calorie\":\"360\",\"dish\":[{\"DishBatchDataId\":\"1725587943024885\",\"BatchDataId\":\"1725005206099761\",\"DishName\":\"糙米飯\",\"DishType\":\"主食\",\"DishId\":\"1489742465347294\",\"UpdateDateTime\":\"2024-09-06T01:59:04.000Z\",\"DishOrder\":10,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1489742465347294.\"},{\"DishBatchDataId\":\"1725587943024889\",\"BatchDataId\":\"1725005206099761\",\"DishName\":\"糖醋魚\",\"DishType\":\"主菜\",\"DishId\":\"1693560752049407\",\"UpdateDateTime\":\"2024-09-06T01:59:04.000Z\",\"DishOrder\":12,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1693560752049407.jpg\"},{\"DishBatchDataId\":\"1725587943024888\",\"BatchDataId\":\"1725005206099761\",\"DishName\":\"醬油蒸蛋\",\"DishType\":\"副菜\",\"DishId\":\"1641565564028642\",\"UpdateDateTime\":\"2024-09-06T01:59:04.000Z\",\"DishOrder\":16,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1641565564028642.\"},{\"DishBatchDataId\":\"1725587943024884\",\"BatchDataId\":\"1725005206099761\",\"DishName\":\"有機青江菜\",\"DishType\":\"蔬菜\",\"DishId\":\"1489742465347323\",\"UpdateDateTime\":\"2024-09-06T01:59:04.000Z\",\"DishOrder\":22,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1489742465347323.\"},{\"DishBatchDataId\":\"1725587943024886\",\"BatchDataId\":\"1725005206099761\",\"DishName\":\"味噌湯\",\"DishType\":\"湯品\",\"DishId\":\"1491329833301457\",\"UpdateDateTime\":\"2024-09-06T01:59:04.000Z\",\"DishOrder\":23,\"KitchenId\":26783,\"PicturePath\":\"\\/mnt\\/hdb\\/cateringservice\\/dish\\/26783\\/\\/26783_1491329833301457.\"},{\"DishBatchDataId\":\"1725587943024887\",\"BatchDataId\":\"1725005206099761\",\"DishName\":\"調味料\",\"DishId\":\"1489742465347286\",\"UpdateDateTime\":\"2024-09-06T01:59:04.000Z\",\"DishOrder\":26,\"KitchenId\":26783,\"PicturePath\":\"\"}]}]}' , '0', '', now())
Duplicate entry '90-SchoolId-64737409-2024-09-06-0' for key 'PRIMARY'
/opt/lampp/htdocs/modules/tadtools/class/TadDataCenter.php:339