Commit 47b7dbe5 authored by 吴春's avatar 吴春

11

parent dd1b1d1a
...@@ -104,9 +104,6 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -104,9 +104,6 @@ namespace Mall.Model.Entity.TradePavilion
/// </summary> /// </summary>
public string CustomerType { get; set; } public string CustomerType { get; set; }
/// <summary> /// <summary>
/// 扩店区域 /// 扩店区域
/// </summary> /// </summary>
...@@ -138,8 +135,6 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -138,8 +135,6 @@ namespace Mall.Model.Entity.TradePavilion
/// </summary> /// </summary>
public string Other { get; set; } public string Other { get; set; }
/// <summary> /// <summary>
/// 店铺开口尺寸(0-否1-有) /// 店铺开口尺寸(0-否1-有)
/// </summary> /// </summary>
...@@ -236,5 +231,14 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -236,5 +231,14 @@ namespace Mall.Model.Entity.TradePavilion
/// </summary> /// </summary>
public string ContactPhone { get; set; } public string ContactPhone { get; set; }
/// <summary>
/// 是否推荐(1-是)
/// </summary>
public int IsRecommend { get; set; }
/// <summary>
/// 推荐时间
/// </summary>
public DateTime RecommendDate { get; set; }
} }
} }
...@@ -29,13 +29,11 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -29,13 +29,11 @@ namespace Mall.Model.Entity.TradePavilion
/// </summary> /// </summary>
public int MallBaseId { get; set; } public int MallBaseId { get; set; }
/// <summary> /// <summary>
/// 创建时间 /// 创建时间
/// </summary> /// </summary>
public DateTime CreateDate { get; set; } public DateTime CreateDate { get; set; }
/// <summary> /// <summary>
/// 修改时间 /// 修改时间
/// </summary> /// </summary>
...@@ -62,5 +60,10 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -62,5 +60,10 @@ namespace Mall.Model.Entity.TradePavilion
/// 品牌大类 /// 品牌大类
/// </summary> /// </summary>
public BrandCategoryEnum BrandCategory { get; set; } public BrandCategoryEnum BrandCategory { get; set; }
/// <summary>
/// 父级分类Id
/// </summary>
public int ParentId { get; set; }
} }
} }
...@@ -175,5 +175,15 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -175,5 +175,15 @@ namespace Mall.Model.Entity.TradePavilion
/// 排序 /// 排序
/// </summary> /// </summary>
public int SortNum { get; set; } public int SortNum { get; set; }
/// <summary>
/// 是否推荐(1-是)
/// </summary>
public int IsRecommend { get; set; }
/// <summary>
/// 推荐时间
/// </summary>
public DateTime RecommendDate { get; set; }
} }
} }
...@@ -202,8 +202,6 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -202,8 +202,6 @@ namespace Mall.Model.Entity.TradePavilion
/// </summary> /// </summary>
public decimal? EndAreaRequirement { get; set; } public decimal? EndAreaRequirement { get; set; }
/// <summary> /// <summary>
/// 经营面积 /// 经营面积
/// </summary> /// </summary>
...@@ -245,5 +243,15 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -245,5 +243,15 @@ namespace Mall.Model.Entity.TradePavilion
///// 首展政策 ///// 首展政策
///// </summary> ///// </summary>
//public string FirstExhibition { get; set; } //public string FirstExhibition { get; set; }
/// <summary>
/// 是否推荐(1-是)
/// </summary>
public int IsRecommend { get; set; }
/// <summary>
/// 推荐时间
/// </summary>
public DateTime RecommendDate { get; set; }
} }
} }
...@@ -145,5 +145,15 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -145,5 +145,15 @@ namespace Mall.Model.Entity.TradePavilion
/// 楼宇等级 /// 楼宇等级
/// </summary> /// </summary>
public int EType { get; set; } public int EType { get; set; }
/// <summary>
/// 是否推荐(1-是)
/// </summary>
public int IsRecommend { get; set; }
/// <summary>
/// 推荐时间
/// </summary>
public DateTime RecommendDate { get; set; }
} }
} }
...@@ -528,6 +528,23 @@ namespace Mall.Module.TradePavilion ...@@ -528,6 +528,23 @@ namespace Mall.Module.TradePavilion
return flag; return flag;
} }
/// <summary>
/// 设置楼宇推荐
/// </summary>
/// <param name="BuildId"></param>
/// <param name="IsRecommend"></param>
/// <returns></returns>
public bool RecommendBuildingModule(int BuildId,int IsRecommend)
{
Dictionary<string, object> fileds = new Dictionary<string, object>()
{
{nameof(RB_Building_Extend.IsRecommend),IsRecommend },
{nameof(RB_Building_Extend.RecommendDate),DateTime.Now }
};
bool flag = buildingRepository.Update(fileds, new WhereHelper(nameof(RB_Building_Extend.BuildId), BuildId));
return flag;
}
#endregion #endregion
#region 企业服务 #region 企业服务
...@@ -672,6 +689,24 @@ namespace Mall.Module.TradePavilion ...@@ -672,6 +689,24 @@ namespace Mall.Module.TradePavilion
bool flag = enterpriseServicesRepository.Update(fileds, new WhereHelper(nameof(RB_EnterpriseServices_Extend.ServiceId), ServiceId)); bool flag = enterpriseServicesRepository.Update(fileds, new WhereHelper(nameof(RB_EnterpriseServices_Extend.ServiceId), ServiceId));
return flag; return flag;
} }
/// <summary>
/// 设置企业服务推荐
/// </summary>
/// <param name="ServiceId"></param>
///<param name="IsRecommend"></param>
/// <returns></returns>
public bool RecommendEnterpriseServicesModule(int ServiceId,int IsRecommend)
{
Dictionary<string, object> fileds = new Dictionary<string, object>()
{
{nameof(RB_EnterpriseServices_Extend.IsRecommend), IsRecommend},
{nameof(RB_EnterpriseServices_Extend.RecommendDate), DateTime.Now}
};
bool flag = enterpriseServicesRepository.Update(fileds, new WhereHelper(nameof(RB_EnterpriseServices_Extend.ServiceId), ServiceId));
return flag;
}
#endregion #endregion
......
...@@ -579,6 +579,23 @@ namespace Mall.Module.TradePavilion ...@@ -579,6 +579,23 @@ namespace Mall.Module.TradePavilion
return flag; return flag;
} }
/// <summary>
///设置载体推荐状态
/// </summary>
/// <param name="CarrierId">载体Id</param>
/// <param name="IsRecommend">推荐状态(1-推荐)</param>
/// <returns></returns>
public bool RecommendCarrierModule(int CarrierId, int IsRecommend)
{
Dictionary<string, object> fileds = new Dictionary<string, object>()
{
{nameof(RB_Carrier_Extend.IsRecommend),IsRecommend },
{nameof(RB_Carrier_Extend.RecommendDate),DateTime.Now },
};
bool flag = carrierRepository.Update(fileds, new WhereHelper(nameof(RB_Carrier_Extend.ID), CarrierId));
return flag;
}
#endregion #endregion
...@@ -1036,6 +1053,23 @@ namespace Mall.Module.TradePavilion ...@@ -1036,6 +1053,23 @@ namespace Mall.Module.TradePavilion
return flag; return flag;
} }
/// <summary>
/// 设置品牌推荐状态
/// </summary>
/// <param name="Id"></param>
/// <param name="IsRecommend"></param>
/// <returns></returns>
public bool RecommendBrandModule(int Id,int IsRecommend)
{
Dictionary<string, object> fileds = new Dictionary<string, object>()
{
{nameof(RB_Brand_Extend.IsRecommend),IsRecommend },
{nameof(RB_Brand_Extend.RecommendDate),DateTime.Now },
};
bool flag = brandRepository.Update(fileds, new WhereHelper(nameof(RB_Brand_Extend.ID), Id));
return flag;
}
/// <summary> /// <summary>
/// 获取品牌信息分页列表 /// 获取品牌信息分页列表
/// </summary> /// </summary>
......
...@@ -12,6 +12,7 @@ using System.Threading.Tasks; ...@@ -12,6 +12,7 @@ using System.Threading.Tasks;
using System.Web; using System.Web;
using COSXML.Log; using COSXML.Log;
using Dnc.Api.Throttle; using Dnc.Api.Throttle;
using Google.Protobuf.WellKnownTypes;
using Mall.CacheManager.Base; using Mall.CacheManager.Base;
using Mall.CacheManager.User; using Mall.CacheManager.User;
using Mall.Common.API; using Mall.Common.API;
...@@ -1505,6 +1506,8 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -1505,6 +1506,8 @@ namespace Mall.WebApi.Controllers.TradePavilion
x.CarrierMetroList, x.CarrierMetroList,
x.ContactName, x.ContactName,
x.ContactPhone, x.ContactPhone,
x.IsRecommend,
RecommendDate = Common.ConvertHelper.FormatTime(x.RecommendDate)
}); });
return ApiResult.Success(data: pageModel); return ApiResult.Success(data: pageModel);
} }
...@@ -1515,7 +1518,6 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -1515,7 +1518,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[HttpGet] [HttpGet]
[HttpPost] [HttpPost]
public ApiResult GetCarrierDetails() public ApiResult GetCarrierDetails()
{ {
...@@ -1711,8 +1713,6 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -1711,8 +1713,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
return flag ? ApiResult.Success() : ApiResult.Failed(); return flag ? ApiResult.Success() : ApiResult.Failed();
} }
/// <summary> /// <summary>
/// 删除载体信息 /// 删除载体信息
/// </summary> /// </summary>
...@@ -1726,6 +1726,21 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -1726,6 +1726,21 @@ namespace Mall.WebApi.Controllers.TradePavilion
return flag ? ApiResult.Success() : ApiResult.Failed(); return flag ? ApiResult.Success() : ApiResult.Failed();
} }
/// <summary>
/// 设置载体推荐状态
/// </summary>
/// <returns></returns>
[HttpPost]
[AllowRepeat]
public ApiResult RecommendCarrier()
{
JObject parms = JObject.Parse(RequestParm.msg.ToString());
var CarrierId = parms.GetInt("CarrierId", 0);
var IsRecommend = parms.GetInt("IsRecommend", 0);
var flag = carrierModule.RecommendCarrierModule(CarrierId, IsRecommend);
return flag ? ApiResult.Success() : ApiResult.Failed();
}
/// <summary> /// <summary>
/// 获取载体下载枚举列表 /// 获取载体下载枚举列表
...@@ -1903,7 +1918,6 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -1903,7 +1918,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
/// <returns></returns> /// <returns></returns>
[HttpGet] [HttpGet]
[HttpPost] [HttpPost]
public ApiResult GetBrandPageList() public ApiResult GetBrandPageList()
{ {
ResultPageModel pageModel = JsonConvert.DeserializeObject<ResultPageModel>(RequestParm.msg.ToString()); ResultPageModel pageModel = JsonConvert.DeserializeObject<ResultPageModel>(RequestParm.msg.ToString());
...@@ -1934,8 +1948,9 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -1934,8 +1948,9 @@ namespace Mall.WebApi.Controllers.TradePavilion
} }
query.MallBaseId = RequestParm.MallBaseId; query.MallBaseId = RequestParm.MallBaseId;
query.TenantId = RequestParm.TenantId; query.TenantId = RequestParm.TenantId;
var list = carrierModule.GetBrandPageList(pageModel.pageIndex, pageModel.pageSize, out long rowsCount, query, true); List<object> list = new List<object>();
foreach (var item in list) var dataList = carrierModule.GetBrandPageList(pageModel.pageIndex, pageModel.pageSize, out long rowsCount, query, true);
foreach (var item in dataList)
{ {
item.ProjectName = item.ProjectType.GetEnumName(); item.ProjectName = item.ProjectType.GetEnumName();
if (!string.IsNullOrWhiteSpace(item.Banner)) if (!string.IsNullOrWhiteSpace(item.Banner))
...@@ -1946,6 +1961,26 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -1946,6 +1961,26 @@ namespace Mall.WebApi.Controllers.TradePavilion
{ {
item.BannerList = new List<string>(); item.BannerList = new List<string>();
} }
list.Add(new
{
item.ID,
item.BrandName,
item.ProjectName,
item.ProjectType,
item.ClassName,
item.Logo,
item.ShopNum,
item.BuiltUpArea,
item.EndBuiltUpArea,
item.BrandType,
item.CustomerType,
item.ContactName,
item.ContactPhone,
item.UserName,
item.IsRecommend,
RecommendDate = Common.ConvertHelper.FormatTime(item.RecommendDate)
});
} }
pageModel.count = Convert.ToInt32(rowsCount); pageModel.count = Convert.ToInt32(rowsCount);
pageModel.pageData = list; pageModel.pageData = list;
...@@ -2046,6 +2081,20 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -2046,6 +2081,20 @@ namespace Mall.WebApi.Controllers.TradePavilion
return flag ? ApiResult.Success() : ApiResult.Failed(); return flag ? ApiResult.Success() : ApiResult.Failed();
} }
/// <summary>
/// 设置品牌推荐状态
/// </summary>
/// <returns></returns>
[HttpPost]
[AllowRepeat]
public ApiResult RecommendBrand()
{
JObject parms = JObject.Parse(RequestParm.msg.ToString());
var Id = parms.GetInt("Id", 0);
int IsRecommend = parms.GetInt("IsRecommend", 0);
var flag = carrierModule.RecommendBrandModule(Id, IsRecommend);
return flag ? ApiResult.Success() : ApiResult.Failed();
}
/// <summary> /// <summary>
/// 检查品牌文件是否存在 /// 检查品牌文件是否存在
...@@ -3108,9 +3157,6 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -3108,9 +3157,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
})); }));
} }
/// <summary> /// <summary>
/// 报名列表批量导出 /// 报名列表批量导出
/// </summary> /// </summary>
...@@ -3138,6 +3184,7 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -3138,6 +3184,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
return ApiResult.Failed(errmsg); return ApiResult.Failed(errmsg);
} }
} }
/// <summary> /// <summary>
/// 报名列表批量导出 /// 报名列表批量导出
/// </summary> /// </summary>
...@@ -3799,7 +3846,7 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -3799,7 +3846,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
/// <param name="ExcelEnumIdList">下载列</param> /// <param name="ExcelEnumIdList">下载列</param>
/// <param name="filePath">Logo文件存放路径</param> /// <param name="filePath">Logo文件存放路径</param>
/// <param name="excelFileUrl">Excel文件路径</param> /// <param name="excelFileUrl">Excel文件路径</param>
private async void GetBuildingCarrierListToExcel(RB_Building_Carrier_Extend demodel, List<int> ExcelEnumIdList, string filePath, string excelFileUrl) private void GetBuildingCarrierListToExcel(RB_Building_Carrier_Extend demodel, List<int> ExcelEnumIdList, string filePath, string excelFileUrl)
{ {
byte[] bytes = null; byte[] bytes = null;
string ExcelName = "载体列表" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".xls"; string ExcelName = "载体列表" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".xls";
......
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