diff --git a/FrontendWebApi/ApiControllers/GraphManageController.cs b/FrontendWebApi/ApiControllers/GraphManageController.cs index 74005d7..e22bb18 100644 --- a/FrontendWebApi/ApiControllers/GraphManageController.cs +++ b/FrontendWebApi/ApiControllers/GraphManageController.cs @@ -134,7 +134,7 @@ namespace FrontendWebApi.ApiControllers } [HttpPost] - public async Task> DelOneGraMan(GraphInfo gi) + public async Task> DelOneGraMan([FromBody] GraphInfo gi) { ApiResult apiResult = new ApiResult(); @@ -304,12 +304,13 @@ namespace FrontendWebApi.ApiControllers gii.donFile.CopyTo(stream); } - graph_manage.Add("@oriOrgName", gii.donOrgName); - graph_manage.Add("@oriSavName", fileName); + graph_manage.Add("@donOrgName", gii.donOrgName); + graph_manage.Add("@donSavName", fileName); } } var newPriority = await backendRepository.GetCurrentPriority("graph_manage"); + graph_manage.Add("@code", gii.code); graph_manage.Add("@main_system_tag", gii.main_system_tag); graph_manage.Add("@sub_system_tag", gii.sub_system_tag); graph_manage.Add("@name", gii.name); diff --git a/FrontendWebApi/Models/GraphManage.cs b/FrontendWebApi/Models/GraphManage.cs index 8656f6c..2a39fd5 100644 --- a/FrontendWebApi/Models/GraphManage.cs +++ b/FrontendWebApi/Models/GraphManage.cs @@ -37,7 +37,7 @@ namespace FrontendWebApi.Models { public string code { get; set; } public string main_system_tag { get; set; } - public List sub_system_tag { get; set; } = new List{ }; + public List sub_system_tag { get; set; } public string keyWord { get; set; } } }