Commit 4bd27590 authored by 黄奎's avatar 黄奎

页面修改

parent 08981cac
...@@ -326,6 +326,22 @@ namespace Mall.Module.MarketingCenter ...@@ -326,6 +326,22 @@ namespace Mall.Module.MarketingCenter
return flag; return flag;
} }
/// <summary>
/// 更新分享数量
/// </summary>
/// <param name="Id"></param>
/// <param name="ShareCount"></param>
/// <returns></returns>
public bool SetShareFriendCountModule(object Id, int ShareCount)
{
Dictionary<string, object> fileds = new Dictionary<string, object>()
{
{nameof(RB_Share_Friend_Extend.ShareCount),ShareCount},
};
bool flag = share_FriendRepository.Update(fileds, new WhereHelper(nameof(RB_Share_Friend_Extend.Id), Id));
return flag;
}
/// <summary> /// <summary>
/// 更新文案 /// 更新文案
/// </summary> /// </summary>
......
...@@ -65,6 +65,7 @@ WHERE 1=1 AND A.Status=0 ...@@ -65,6 +65,7 @@ WHERE 1=1 AND A.Status=0
builder.AppendFormat(" AND A.{0}<='{1} 23:59:59' ", nameof(RB_Share_Friend_Extend.CreateDate), Convert.ToDateTime(query.QEndDate).ToString("yyyy-MM-dd")); builder.AppendFormat(" AND A.{0}<='{1} 23:59:59' ", nameof(RB_Share_Friend_Extend.CreateDate), Convert.ToDateTime(query.QEndDate).ToString("yyyy-MM-dd"));
} }
} }
builder.AppendFormat(" ORDER BY A.SortNum ASC ");
return GetPage<RB_Share_Friend_Extend>(pageIndex, pageSize, out rowsCount, builder.ToString()).ToList(); return GetPage<RB_Share_Friend_Extend>(pageIndex, pageSize, out rowsCount, builder.ToString()).ToList();
} }
......
...@@ -413,7 +413,7 @@ WHERE {where} group by g.Id order by g.CreateDate desc"; ...@@ -413,7 +413,7 @@ WHERE {where} group by g.Id order by g.CreateDate desc";
} }
if (dmodel.IsVideo > 0) if (dmodel.IsVideo > 0)
{ {
where += $@" and IFNULL(g.{nameof(RB_Goods_Extend.VideoAddress)} <>'' "; where += $@" and IFNULL(g.{nameof(RB_Goods_Extend.VideoAddress)},'') <>'' ";
} }
//默认综合【升序】 //默认综合【升序】
......
...@@ -264,6 +264,19 @@ namespace Mall.WebApi.Controllers.MarketingCenter ...@@ -264,6 +264,19 @@ namespace Mall.WebApi.Controllers.MarketingCenter
return flag ? ApiResult.Success() : ApiResult.Failed(); return flag ? ApiResult.Success() : ApiResult.Failed();
} }
/// <summary>
/// 更新排序
/// </summary>
/// <returns></returns>
public ApiResult SetShareFriendCount()
{
JObject parm = JObject.Parse(RequestParm.msg.ToString());
int Id = parm.GetInt("Id", 0);
int ShareCount = parm.GetInt("ShareCount", 0);
bool flag = shareModule.SetShareFriendCountModule(Id, ShareCount);
return flag ? ApiResult.Success() : ApiResult.Failed();
}
/// <summary> /// <summary>
/// 更新文案 /// 更新文案
/// </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