Commit dfb73b51 authored by 吴春's avatar 吴春

1

parent 7963d5ea
...@@ -113,7 +113,7 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -113,7 +113,7 @@ namespace Mall.Model.Entity.TradePavilion
/// <summary> /// <summary>
/// 项目类型 /// 项目类型
/// </summary> /// </summary>
public ProjectTypeEnum ProjectType { get; set; } public int? ProjectType { get; set; }
/// <summary> /// <summary>
/// 商业体量(单位:万平方米) /// 商业体量(单位:万平方米)
...@@ -160,7 +160,7 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -160,7 +160,7 @@ namespace Mall.Model.Entity.TradePavilion
/// <summary> /// <summary>
/// 首店试验场 0-否,1-是 /// 首店试验场 0-否,1-是
/// </summary> /// </summary>
public int FirstStoreTest { get; set; } public int? FirstStoreTest { get; set; }
/// <summary> /// <summary>
...@@ -176,12 +176,12 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -176,12 +176,12 @@ namespace Mall.Model.Entity.TradePavilion
/// <summary> /// <summary>
/// 去年业绩(单位:W) /// 去年业绩(单位:W)
/// </summary> /// </summary>
public decimal YeJi { get; set; } public decimal? YeJi { get; set; }
/// <summary> /// <summary>
/// 店铺数量 /// 店铺数量
/// </summary> /// </summary>
public int ShopNum { get; set; } public int? ShopNum { get; set; }
/// <summary> /// <summary>
/// 可租赁面积 /// 可租赁面积
...@@ -191,7 +191,7 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -191,7 +191,7 @@ namespace Mall.Model.Entity.TradePavilion
/// <summary> /// <summary>
/// 可租赁面积 /// 可租赁面积
/// </summary> /// </summary>
public decimal EndAreaRequirement { get; set; } public decimal? EndAreaRequirement { get; set; }
/// <summary> /// <summary>
...@@ -202,7 +202,7 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -202,7 +202,7 @@ namespace Mall.Model.Entity.TradePavilion
/// <summary> /// <summary>
/// 经营面积 /// 经营面积
/// </summary> /// </summary>
public decimal EndBuiltUpArea { get; set; } public decimal? EndBuiltUpArea { get; set; }
/// <summary> /// <summary>
...@@ -224,12 +224,12 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -224,12 +224,12 @@ namespace Mall.Model.Entity.TradePavilion
/// <summary> /// <summary>
/// 类型(1-载体,2-楼宇) /// 类型(1-载体,2-楼宇)
/// </summary> /// </summary>
public int BuildingCarrierType { get; set; } public int? BuildingCarrierType { get; set; }
/// <summary> /// <summary>
/// 是否为成都载体(1-是) /// 是否为成都载体(1-是)
/// </summary> /// </summary>
public int IsChengDu { get; set; } public int? IsChengDu { get; set; }
/// <summary> /// <summary>
/// 资产权属 /// 资产权属
......
...@@ -167,20 +167,20 @@ namespace Mall.Module.TradePavilion ...@@ -167,20 +167,20 @@ namespace Mall.Module.TradePavilion
flag = newId > 0; flag = newId > 0;
} }
if (flag) //if (flag)
{ //{
var oldCarrierMetroList = building_CarriermetroRepository.GetBuildingCarrierMetroListRepository(new RB_Building_Carriermetro_Extend { TenantId = extModel.TenantId, MallBaseId = extModel.MallBaseId, CarrierId = extModel.ID }); // var oldCarrierMetroList = building_CarriermetroRepository.GetBuildingCarrierMetroListRepository(new RB_Building_Carriermetro_Extend { TenantId = extModel.TenantId, MallBaseId = extModel.MallBaseId, CarrierId = extModel.ID });
building_CarriermetroRepository.DeleteBatch(oldCarrierMetroList); // building_CarriermetroRepository.DeleteBatch(oldCarrierMetroList);
foreach (var item in extModel.BuildingCarriermetroList) // foreach (var item in extModel.BuildingCarriermetroList)
{ // {
item.ID = 0; // item.ID = 0;
item.Status = 0; // item.Status = 0;
item.TenantId = extModel.TenantId; // item.TenantId = extModel.TenantId;
item.MallBaseId = extModel.MallBaseId; // item.MallBaseId = extModel.MallBaseId;
item.CarrierId = extModel.ID; // item.CarrierId = extModel.ID;
} // }
building_CarriermetroRepository.InsertBatch(extModel.BuildingCarriermetroList); // building_CarriermetroRepository.InsertBatch(extModel.BuildingCarriermetroList);
} //}
return flag; return flag;
} }
......
...@@ -687,32 +687,34 @@ namespace Mall.Module.TradePavilion ...@@ -687,32 +687,34 @@ namespace Mall.Module.TradePavilion
inserCModel.UserId = cmodel.CreateBy; inserCModel.UserId = cmodel.CreateBy;
inserCModel.BuiltUpArea = model.BuiltUpArea ?? 0; inserCModel.BuiltUpArea = model.BuiltUpArea ?? 0;
inserCModel.AreaRequirement = model.AreaRequirement ?? 0; inserCModel.AreaRequirement = model.AreaRequirement ?? 0;
if (model.OpenTime.HasValue) if (model.OpenTime.HasValue)
{ {
if (model.OpenTime.Value <= System.DateTime.Now) if (model.OpenTime.Value <= System.DateTime.Now)
{ {
inserCModel.OpeningStatus = 1; inserCModel.OpeningStatus = 1;
} }
inserCModel.OpenTime = model.OpenTime.Value;
} }
if (!string.IsNullOrWhiteSpace(model.StartingInfo)) if (!string.IsNullOrWhiteSpace(model.StartingInfo))
{ {
inserCModel.FirstStoreTest = 1; inserCModel.FirstStoreTest = 1;
} }
int Id = building_CarrierRepository.Insert(inserCModel); int Id = building_CarrierRepository.Insert(inserCModel);
if (Id > 0) //if (Id > 0)
{ //{
var mlist = MetroList.RefMapperToList<RB_CarrierEnterpriseMetroApplyFor_Extend>(); // var mlist = MetroList.RefMapperToList<RB_CarrierEnterpriseMetroApplyFor_Extend>();
mlist.ForEach(x => // mlist.ForEach(x =>
{ // {
x.ID = 0; // x.ID = 0;
x.CarrierId = Id; // x.CarrierId = Id;
x.Status = 0; // x.Status = 0;
x.TenantId = model.TenantId; // x.TenantId = model.TenantId;
x.MallBaseId = model.MallBaseId; // x.MallBaseId = model.MallBaseId;
}); // });
carrierEnterpriseMetroApplyForRepository.InsertBatch(mlist); // carrierEnterpriseMetroApplyForRepository.InsertBatch(mlist);
} //}
#endregion #endregion
} }
} }
...@@ -842,7 +844,10 @@ namespace Mall.Module.TradePavilion ...@@ -842,7 +844,10 @@ namespace Mall.Module.TradePavilion
if (clist.Any()) if (clist.Any())
{ {
model.CarrierModel = clist.FirstOrDefault().RefMapperTo<RB_CarrierEnterpriseApplyFor_Extend>(); model.CarrierModel = clist.FirstOrDefault().RefMapperTo<RB_CarrierEnterpriseApplyFor_Extend>();
// model.CarrierModel.BuiltUpArea = clist.FirstOrDefault().BuiltUpArea; model.CarrierModel.BuiltUpArea = clist.FirstOrDefault()?.BuiltUpArea;
model.CarrierModel.AreaRequirement = clist.FirstOrDefault()?.AreaRequirement;
model.CarrierModel.OpenTime = clist.FirstOrDefault()?.OpenTime;
// model.CarrierModel.BuiltUpArea = clist.FirstOrDefault().BuiltUpArea;
//var metroList = carrierEnterpriseMetroApplyForRepository.GetCarrierMetroList(new RB_CarrierEnterpriseMetroApplyFor_Extend { TenantId = model.TenantId, MallBaseId = model.MallBaseId, CarrierId = model.CarrierModel.ID }); //var metroList = carrierEnterpriseMetroApplyForRepository.GetCarrierMetroList(new RB_CarrierEnterpriseMetroApplyFor_Extend { TenantId = model.TenantId, MallBaseId = model.MallBaseId, CarrierId = model.CarrierModel.ID });
//model.CarrierModel.CarrierMetroList = new List<RB_CarrierEnterpriseMetroApplyFor_Extend>(); //model.CarrierModel.CarrierMetroList = new List<RB_CarrierEnterpriseMetroApplyFor_Extend>();
//if (metroList != null && metroList.Any()) //if (metroList != null && metroList.Any())
......
...@@ -2894,7 +2894,7 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -2894,7 +2894,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
x.LatAndLon, x.LatAndLon,
x.Developers, x.Developers,
x.ProjectType, x.ProjectType,
ProjectTypeName = x.ProjectType.GetEnumName(), // ProjectTypeName = x.ProjectType.GetEnumName(),
x.CarrierSize, x.CarrierSize,
x.LayersNum, x.LayersNum,
x.CategoryName, x.CategoryName,
...@@ -3343,6 +3343,15 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -3343,6 +3343,15 @@ namespace Mall.WebApi.Controllers.TradePavilion
{ {
var userInfo = AppletUserInfo; var userInfo = AppletUserInfo;
RB_Building_Carrier_Extend query = JsonConvert.DeserializeObject<RB_Building_Carrier_Extend>(RequestParm.msg.ToString()); RB_Building_Carrier_Extend query = JsonConvert.DeserializeObject<RB_Building_Carrier_Extend>(RequestParm.msg.ToString());
query.ProjectType = query?.ProjectType ?? 0;
query.IsChengDu = query?.IsChengDu ?? 0;
query.YeJi = query?.YeJi ?? 0;
query.EndAreaRequirement = query?.EndAreaRequirement ?? 0;
query.BuildingCarrierType = query?.BuildingCarrierType ?? 0;
query.FirstStoreTest = query?.FirstStoreTest ?? 0;
query.ShopNum = query?.ShopNum ?? 0;
query.EndBuiltUpArea = query?.EndBuiltUpArea ?? 0;
query.BuildingCarriermetroList = new List<RB_Building_Carriermetro_Extend>();
if (query.ID <= 0) if (query.ID <= 0)
{ {
return ApiResult.ParamIsNull("请传递载体id"); return ApiResult.ParamIsNull("请传递载体id");
......
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