Commit 53094d79 authored by 黄奎's avatar 黄奎

1

parent e8a84dc5
......@@ -111,7 +111,7 @@ namespace Mall.Model.Entity.TradePavilion
/// <summary>
/// 性质
/// </summary>
public ProjectTypeEnum? ProjectType { get; set; }
public ProjectTypeEnum ProjectType { get; set; }
/// <summary>
/// 面积要求
......@@ -214,7 +214,7 @@ namespace Mall.Model.Entity.TradePavilion
/// <summary>
/// 是否已在成都落地 0-否,1-是,-1未填写
/// </summary>
public int? IsInChengdu { get; set; }
public int IsInChengdu { get; set; }
/// <summary>
/// 奖项来源ids
......@@ -240,5 +240,15 @@ namespace Mall.Model.Entity.TradePavilion
/// 发展意向
/// </summary>
public string DevIntention { get; set; }
/// <summary>
/// 合作条件
/// </summary>
public string Cooperation { get; set; }
/// <summary>
/// 配套需求
/// </summary>
public string Complementary { get; set; }
}
}
......@@ -180,7 +180,12 @@ namespace Mall.Module.TradePavilion
{ nameof(RB_Brand_Enterprise_Extend.BrandName),model.BrandName},
{ nameof(RB_Brand_Enterprise_Extend.FullBrandName),model.FullBrandName},
{ nameof(RB_Brand_Enterprise_Extend.VideoUrl),model.VideoUrl},
{ nameof(RB_Brand_Enterprise_Extend.VideoUrl),model.VideoUrl},
{ nameof(RB_Brand_Enterprise_Extend.Logo),model.Logo},
{ nameof(RB_Brand_Enterprise_Extend.Banner),model.Banner},
{ nameof(RB_Brand_Enterprise_Extend.CustomerType),model.CustomerType},
{ nameof(RB_Brand_Enterprise_Extend.CategoryId),model.CategoryId},
{ nameof(RB_Brand_Enterprise_Extend.BrandType),model.BrandType},
{ nameof(RB_Brand_Enterprise_Extend.Introduce),model.Introduce},
};
flag = brand_EnterpriseRepository.Update(fileds, new WhereHelper(nameof(RB_Brand_Enterprise_Extend.ID), model.ID));
}
......
......@@ -3660,5 +3660,93 @@ namespace Mall.WebApi.Controllers.TradePavilion
var extModel = buildingCarrierModule.RemoveBuildingCarrierModule(ID);
return ApiResult.Success(data: extModel);
}
[HttpPost]
public ApiResult GetBrandEnterprisePage()
{
JObject parms = JObject.Parse(RequestParm.msg.ToString());
ResultPageModel pageModel = new ResultPageModel()
{
pageIndex = parms.GetInt("pageIndex"),
pageSize = parms.GetInt("pageSize"),
};
RB_Brand_Enterprise_Extend query = new RB_Brand_Enterprise_Extend()
{
};
List<object> list = new List<object>();
var dataList = buildingCarrierModule.GetBrandEnterprisePageModule(pageModel.pageIndex, pageModel.pageSize, out long rowsCount, query);
foreach (var item in dataList)
{
list.Add(new
{
item.ID,
item.BrandName,
item.FullBrandName,
CreateDate = Common.ConvertHelper.FormatDate(item.CreateDate),
});
}
pageModel.count = Convert.ToInt32(rowsCount);
pageModel.pageData = list;
return ApiResult.Success(data: pageModel);
}
/// <summary>
/// 【商载通】新增修改品牌、企业
/// </summary>
/// <returns></returns>
public ApiResult SetBrandEnterprise()
{
JObject parms = JObject.Parse(RequestParm.msg.ToString());
RB_Brand_Enterprise_Extend model = new RB_Brand_Enterprise_Extend()
{
ID = parms.GetInt("ID"),
BrandName = parms.GetStringValue("BrandName"),
FullBrandName = parms.GetStringValue("FullBrandName"),
VideoUrl = parms.GetStringValue("VideoUrl"),
Logo = parms.GetStringValue("Logo"),
};
List<string> BannerList = new List<string>();
string bannerListStr= parms.GetStringValue("BannerList");
if (!string.IsNullOrEmpty(bannerListStr))
{
try
{
BannerList = Common.Plugin.JsonHelper.DeserializeObject<List<string>>(bannerListStr);
}
catch
{
}
}
model.Banner = Common.Plugin.JsonHelper.Serialize(BannerList);
bool flag = buildingCarrierModule.SetBrandEnterpriseModule(model);
return flag ? ApiResult.Success() : ApiResult.Failed();
}
/// <summary>
/// 根据编号获取品牌、企业服务
/// </summary>
/// <returns></returns>
public ApiResult GetBrandEnterpriseInfo()
{
JObject parms = JObject.Parse(RequestParm.msg.ToString());
int Id = parms.GetInt("ID");
var extModel = buildingCarrierModule.GetBrandEnterpriseModule(Id);
return ApiResult.Success(data: extModel);
}
/// <summary>
/// 根据编号删除品牌、企业服务
/// </summary>
/// <returns></returns>
public ApiResult RemoveBrandEnterpriseInfo()
{
JObject parms = JObject.Parse(RequestParm.msg.ToString());
int Id = parms.GetInt("ID");
bool flag = buildingCarrierModule.RemoveBrandEnterpriseModule(Id);
return flag ? ApiResult.Success() : ApiResult.Failed();
}
}
}
\ No newline at end of file
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