Ghre_Survey

master
xiaochanghai 3 months ago
parent 309f7073be
commit e6041b03fd
  1. 5
      Tiobon.Core.Model/ViewModels/Extend/InsertGhre_SurveyExtend.cs
  2. 30
      Tiobon.Core.Services/Ghre/Ghre_SurveyServices.cs

@ -0,0 +1,5 @@
namespace Tiobon.Core.Model.ViewModels.Extend;
public class InsertGhre_SurveyExtend
{
}

@ -19,24 +19,6 @@ public class Ghre_SurveyServices : BaseServices<Ghre_Survey, Ghre_SurveyDto, Ins
var result = await base.QueryFilterPage(filter, condition, IsEnable); var result = await base.QueryFilterPage(filter, condition, IsEnable);
int? year = null;
if (filter.jsonParam != null)
foreach (JProperty jProperty in filter.jsonParam.Properties())
{
var name = jProperty.Name;
var value = jProperty.Value.ToString();
if (name == "Year")
{
var jsonParam = JsonHelper.JsonToObj<JsonParam>(value);
year = jsonParam.columnValue.ObjToInt();
}
}
var DT_TableDataT1 = result.result.DT_TableDataT1;
return result; return result;
} }
@ -99,4 +81,16 @@ public class Ghre_SurveyServices : BaseServices<Ghre_Survey, Ghre_SurveyDto, Ins
return ServiceResult.OprateSuccess("执行成功!"); return ServiceResult.OprateSuccess("执行成功!");
} }
public async Task<ServiceResult<long>> InsertData(InsertGhre_SurveyExtend insertModel)
{
var data = ServiceResult<long>.OprateSuccess("新增成功", 0);
//return ServiceResult<long>.OprateFailed("失败!");
return data;
}
} }
Loading…
Cancel
Save