Commit e3846f6e authored by 黄奎's avatar 黄奎

页面修改

parent 43314a9e
......@@ -110,6 +110,23 @@ namespace Mall.Module.User
flag = topic_TypeRepository.Update(fileds, new WhereHelper(nameof(RB_Topic_Type_Extend.Id), Id));
return flag;
}
/// <summary>
/// 删除专题分类
/// </summary>
/// <param name="Id">主键编号</param>
/// <param name="IsDisable">是否禁用</param>
/// <returns></returns>
public bool UpdateTopicTypeStatusModule(object Id,int IsDisable)
{
bool flag = false;
Dictionary<string, object> fileds = new Dictionary<string, object>()
{
{ nameof(RB_Topic_Type_Extend.IsDisable),IsDisable},
};
flag = topic_TypeRepository.Update(fileds, new WhereHelper(nameof(RB_Topic_Type_Extend.Id), Id));
return flag;
}
#endregion
#region 门店
......
......@@ -36,6 +36,10 @@ namespace Mall.Repository.User
{
builder.AppendFormat(" AND {0}={1} ", nameof(RB_Article_Extend.Id), query.Id);
}
if (query.Title != null && !string.IsNullOrEmpty(query.Title.Trim()))
{
builder.AppendFormat(" AND {0} LIKE '%{1}%' ", nameof(RB_Article_Extend.Title), query.Title.Trim());
}
builder.Append(" ORDER BY SortNum ");
return GetPage<RB_Article_Extend>(pageIndex, pageSize, out rowCount, builder.ToString()).ToList();
}
......@@ -61,6 +65,10 @@ namespace Mall.Repository.User
{
builder.AppendFormat(" AND {0}={1} ", nameof(RB_Article_Extend.Id), query.Id);
}
if (query.Title != null && !string.IsNullOrEmpty(query.Title.Trim()))
{
builder.AppendFormat(" AND {0} LIKE '%{1}%' ", nameof(RB_Article_Extend.Title), query.Title.Trim());
}
builder.Append(" ORDER BY SortNum ");
return Get<RB_Article_Extend>(builder.ToString()).ToList();
}
......
......@@ -36,6 +36,10 @@ namespace Mall.Repository.User
{
builder.AppendFormat(" AND {0}={1} ", nameof(RB_Topic_Type_Extend.Id), query.Id);
}
if (query.TopicName != null && !string.IsNullOrEmpty(query.TopicName.Trim()))
{
builder.AppendFormat(" AND {0} LIKE '%{1}%' ", nameof(RB_Topic_Type_Extend.TopicName), query.TopicName.Trim());
}
builder.Append(" ORDER BY SortNum ");
return GetPage<RB_Topic_Type_Extend>(pageIndex, pageSize, out rowCount, builder.ToString()).ToList();
}
......@@ -61,6 +65,10 @@ namespace Mall.Repository.User
{
builder.AppendFormat(" AND {0}={1} ", nameof(RB_Topic_Type_Extend.Id), query.Id);
}
if (query.TopicName != null && !string.IsNullOrEmpty(query.TopicName.Trim()))
{
builder.AppendFormat(" AND {0} LIKE '%{1}%' ", nameof(RB_Topic_Type_Extend.TopicName), query.TopicName.Trim());
}
builder.Append(" ORDER BY SortNum ");
return Get<RB_Topic_Type_Extend>(builder.ToString()).ToList();
}
......
......@@ -92,7 +92,7 @@ namespace Mall.WebApi.Controllers.User
/// 删除专题分类
/// </summary>
/// <returns></returns>
public ApiResult RemoveTopicTypeModule()
public ApiResult RemoveTopicType()
{
JObject parms = JObject.Parse(RequestParm.msg.ToString());
var Id = parms.GetInt("Id", 0);
......@@ -100,6 +100,19 @@ namespace Mall.WebApi.Controllers.User
return flag ? ApiResult.Success() : ApiResult.Failed();
}
/// <summary>
/// 更新专题分类状态
/// </summary>
/// <returns></returns>
public ApiResult UpdateTopicTypeStatus()
{
JObject parms = JObject.Parse(RequestParm.msg.ToString());
var Id = parms.GetInt("Id", 0);
var IsDisable = parms.GetInt("IsDisable");
var flag = contentModule.UpdateTopicTypeStatusModule(Id, IsDisable);
return flag ? ApiResult.Success() : ApiResult.Failed();
}
#endregion
#region 门店
......@@ -317,7 +330,7 @@ namespace Mall.WebApi.Controllers.User
}
/// <summary>
/// 更新状态
/// 更新文章状态
/// </summary>
/// <returns></returns>
public ApiResult UpdateArticleStatus()
......
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