Commit 2686ee7a authored by 吴春's avatar 吴春

1

parent e00e687f
...@@ -260,6 +260,14 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -260,6 +260,14 @@ namespace Mall.Model.Entity.TradePavilion
/// </summary> /// </summary>
public string Complementary { get; set; } public string Complementary { get; set; }
/// <summary>
/// 联系人
/// </summary>
public string ContactName { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public string ContactPhone { get; set; }
} }
} }
...@@ -268,7 +268,15 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -268,7 +268,15 @@ namespace Mall.Model.Entity.TradePavilion
public int CategoryId { get; set; } public int CategoryId { get; set; }
/// <summary>
/// 联系人
/// </summary>
public string ContactName { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public string ContactPhone { get; set; }
} }
......
...@@ -233,6 +233,10 @@ namespace Mall.Module.TradePavilion ...@@ -233,6 +233,10 @@ namespace Mall.Module.TradePavilion
public RB_Building_Carrier_Extend GetBuildingCarrierModule(int ID, bool isVisit = false) public RB_Building_Carrier_Extend GetBuildingCarrierModule(int ID, bool isVisit = false)
{ {
var extModel = building_CarrierRepository.GetEntity<RB_Building_Carrier_Extend>(ID); var extModel = building_CarrierRepository.GetEntity<RB_Building_Carrier_Extend>(ID);
if (extModel != null && extModel.CategoryId > 0)
{
extModel.CategoryName = brandClassRepository.GetEntity(extModel.CategoryId)?.ClassName ?? "";
}
if (extModel != null && extModel.ID > 0) if (extModel != null && extModel.ID > 0)
{ {
var bcMetroList = building_CarriermetroRepository.GetBuildingCarrierMetroListRepository(new RB_Building_Carriermetro_Extend() { CarrierId = extModel.ID }); var bcMetroList = building_CarriermetroRepository.GetBuildingCarrierMetroListRepository(new RB_Building_Carriermetro_Extend() { CarrierId = extModel.ID });
......
...@@ -2931,8 +2931,8 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -2931,8 +2931,8 @@ namespace Mall.WebApi.Controllers.TradePavilion
extModel.Address, extModel.Address,
extModel.LatAndLon, extModel.LatAndLon,
extModel.Developers, extModel.Developers,
extModel.ProjectType, extModel.CategoryId,
ProjectTypeName = extModel.ProjectType.GetEnumName(), extModel.CategoryName,
extModel.CarrierSize, extModel.CarrierSize,
extModel.LayersNum, extModel.LayersNum,
extModel.CarNum, extModel.CarNum,
...@@ -3225,7 +3225,7 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -3225,7 +3225,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
} }
var result = new var result = new
{ {
CollectId , CollectId,
ServiceId = extModel?.ServiceId ?? 0, ServiceId = extModel?.ServiceId ?? 0,
Name = extModel?.Name ?? "", Name = extModel?.Name ?? "",
Introduction = extModel?.Introduction ?? "", Introduction = extModel?.Introduction ?? "",
......
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