Commit 90bb36e6 authored by 黄奎's avatar 黄奎

页面修改

parent 62cfcc2e
......@@ -147,5 +147,10 @@ namespace Edu.Model.Entity.StudyAbroad
/// 特色
/// </summary>
public string StudyFeature { get; set; }
/// <summary>
/// 留学国家编号
/// </summary>
public int StudyCountryId { get; set; }
}
}
......@@ -154,6 +154,7 @@ namespace Edu.Module.StudyAbroad
{ nameof(RB_StudyAbroad_ViewModel.ImgCover),model.ImgCover},
{ nameof(RB_StudyAbroad_ViewModel.ProductType),model.ProductType},
{ nameof(RB_StudyAbroad_ViewModel.StudyFeature),model.StudyFeature},
{ nameof(RB_StudyAbroad_ViewModel.StudyCountryId),model.StudyCountryId},
};
flag = studyAbroadRepository.Update(fileds, new WhereHelper(nameof(RB_StudyAbroad_ViewModel.Id), model.Id));
}
......
......@@ -69,6 +69,21 @@ namespace Edu.WebApi.Controllers.Public
return ApiResult.Success(data: list);
}
/// <summary>
/// 获取国家列表
/// </summary>
/// <returns></returns>
[HttpPost]
public ApiResult GetCountryList()
{
var query = new RB_Destination_ViewModel()
{
ParentID=0,
};
var list = destinationModule.GetAreaListModule(query);
return ApiResult.Success(data: list);
}
/// <summary>
/// 获取省市区列表
/// </summary>
......
......@@ -421,6 +421,7 @@ namespace Edu.WebApi.Controllers.StudyAbroad
ImgCover=base.ParmJObj.GetStringValue("ImgCover"),
ProductType=(StudyAbroadProductTypeEnum)base.ParmJObj.GetInt("ProductType"),
StudyFeature=base.ParmJObj.GetStringValue("StudyFeature"),
StudyCountryId=base.ParmJObj.GetInt("StudyCountryId"),
};
extModel.SaleState =Common.Enum.Sale.SaleStateEnum.NoPerfect;
bool flag = studyAbroadModule.SetStudyAbroadModule(extModel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment