Commit 65ff18b9 authored by 黄奎's avatar 黄奎

页面修改

parent 0fcc13c9
......@@ -15,7 +15,10 @@ namespace Mall.Model.Extend.TradePavilion
public List<string> BannerList { get; set; }
public string ProjectName { get; set; }
/// <summary>
/// 商铺性质
/// </summary>
public string ProjectName { get { return Common.Plugin.EnumHelper.GetEnumName(this.ProjectType); } }
/// <summary>
/// 收藏id
......
......@@ -82,6 +82,15 @@ WHERE 1=1
{
builder.AppendFormat(" AND a.{0}={1} ", nameof(RB_Brand_Extend.Sewage), query.Sewage);
}
if (query.PaiYan > -1)
{
builder.AppendFormat(" AND a.{0}={1} ", nameof(RB_Brand_Extend.PaiYan), query.PaiYan);
}
if (!string.IsNullOrEmpty(query.DianLiang))
{
builder.AppendFormat(" AND a.{0} LIKE @DianLiang ", nameof(RB_Brand_Extend.DianLiang));
parameters.Add("DianLiang", "%" + query.DianLiang.Trim() + "%");
}
}
return GetPage<RB_Brand_Extend>(pageIndex, pageSize, out rowsCount, builder.ToString(), parameters).ToList();
}
......
......@@ -1069,8 +1069,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
{
extModel.BannerList = new List<string>();
}
extModel.ProjectName = (extModel.ProjectType.HasValue && extModel.ProjectType.Value > 0) ? EnumHelper.GetEnumName(extModel.ProjectType) : "";
if (req.UserId > 0 && extModel.ID > 0)
{ //判断是否已经关注过
var collectModel = carrierModule.GetList(new RB_Collect_Extend { Status = 0, Type = 2, UserId = req.UserId, SourceId = extModel.ID, MallBaseId = query.MallBaseId, TenantId = query.TenantId }).FirstOrDefault();
......
......@@ -1097,7 +1097,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
}));
}
/// <summary>
/// 获取品牌分类分页列表
/// </summary>
......@@ -1115,7 +1114,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
query.MallBaseId = RequestParm.MallBaseId;
query.TenantId = RequestParm.TenantId;
var list = carrierModule.GetBrandClassPageListRepository(pageModel.pageIndex, pageModel.pageSize, out long rowsCount, query);
pageModel.count = Convert.ToInt32(rowsCount);
pageModel.pageData = list;
return ApiResult.Success(data: pageModel);
......@@ -1142,7 +1140,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
/// </summary>
/// <returns></returns>
[HttpGet]
[HttpPost]
public ApiResult GetBrandClassDetails()
{
......@@ -1174,7 +1171,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
{
return ApiResult.Failed("请上传Logo");
}
if (query.ID == 0)
{
query.CreateDate = System.DateTime.Now;
......@@ -1187,8 +1183,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
return flag ? ApiResult.Success() : ApiResult.Failed();
}
/// <summary>
/// 删除品牌信息
/// </summary>
......@@ -1201,9 +1195,6 @@ namespace Mall.WebApi.Controllers.TradePavilion
return flag ? ApiResult.Success() : ApiResult.Failed();
}
/// <summary>
/// 获取品牌分页列表
/// </summary>
......@@ -1225,6 +1216,8 @@ namespace Mall.WebApi.Controllers.TradePavilion
Plumbing = parms.GetInt("Plumbing", -1),
Caliber = parms.GetInt("Caliber", -1),
Sewage = parms.GetInt("Sewage", -1),
PaiYan = parms.GetInt("PaiYan", -1),
DianLiang = parms.GetStringValue("DianLiang"),
};
query.MallBaseId = RequestParm.MallBaseId;
query.TenantId = RequestParm.TenantId;
......
@echo off
iisreset /STOP
dotnet publish E:\Work\Git\Mall_Api\Mall.WebApi\Mall.WebApi.csproj -o E:\publish\Mall.oytour.com -c realease
iisreset /START
exit
\ 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