Commit c47bbd5d authored by 黄奎's avatar 黄奎

新增排序

parent a631021c
......@@ -143,6 +143,25 @@ namespace Mall.Module.MarketingCenter
return share_FriendRepository.GetShareFriendListRepository(query);
}
/// <summary>
/// 批量修改排序
/// </summary>
/// <param name="list"></param>
/// <returns></returns>
public bool SetShareCategorySortListModule(List<RB_Share_Category_Extend> list)
{
bool flag = false;
foreach (var extModel in list)
{
Dictionary<string, object> fileds = new Dictionary<string, object>()
{
{nameof(RB_Share_Category_Extend.SortNum),extModel.SortNum },
};
flag = share_CategoryRepository.Update(fileds, new WhereHelper(nameof(RB_Share_Category_Extend.Id), extModel.Id));
}
return flag;
}
/// <summary>
/// 新增修改分类
/// </summary>
......
......@@ -71,6 +71,17 @@ namespace Mall.WebApi.Controllers.MarketingCenter
return flag ? ApiResult.Success() : ApiResult.Failed();
}
/// <summary>
/// 批量修改排序
/// </summary>
/// <returns></returns>
public ApiResult SetShareCategorySortList()
{
var list = JsonConvert.DeserializeObject<List<RB_Share_Category_Extend>>(RequestParm.msg.ToString());
bool flag = shareModule.SetShareCategorySortListModule(list);
return flag ? ApiResult.Success() : ApiResult.Failed();
}
/// <summary>
/// 删除分享分类
/// </summary>
......
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