diff --git a/Backend/Controllers/SystemCategoryController.cs b/Backend/Controllers/SystemCategoryController.cs index e063514..d183bf2 100644 --- a/Backend/Controllers/SystemCategoryController.cs +++ b/Backend/Controllers/SystemCategoryController.cs @@ -577,7 +577,7 @@ namespace Backend.Controllers { "@updated_at", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}, }; - await backendRepository.UpdateOneByCustomTable(Device_itemDic, "device_item", "id='" + device_Item.id + "'"); + await backendRepository.UpdateOneByCustomTable(Device_itemDic, "device_item", $"points='{device_Item.points}'"); apiResult.Code = "0000"; apiResult.Msg = "修改成功";