Commit b4a9f8cb authored by 黄奎's avatar 黄奎

查询修改

parent 69019936
......@@ -36,6 +36,10 @@ namespace Mall.Repository.User
{
builder.AppendFormat(" AND {0}={1} ", nameof(RB_Stores_Extend.Id), query.Id);
}
if (query.Name!=null && !string.IsNullOrEmpty(query.Name.Trim()))
{
builder.AppendFormat(" AND {0} LIKE '%{1}%' ", nameof(RB_Stores_Extend.Name), query.Name.Trim());
}
builder.Append(" ORDER BY Id DESC ");
return GetPage<RB_Stores_Extend>(pageIndex, pageSize, out rowCount, builder.ToString()).ToList();
}
......@@ -61,6 +65,10 @@ namespace Mall.Repository.User
{
builder.AppendFormat(" AND {0}={1} ", nameof(RB_Stores_Extend.Id), query.Id);
}
if (query.Name != null && !string.IsNullOrEmpty(query.Name.Trim()))
{
builder.AppendFormat(" AND {0} LIKE '%{1}%' ", nameof(RB_Stores_Extend.Name), query.Name.Trim());
}
builder.Append(" ORDER BY Id DESC ");
return Get<RB_Stores_Extend>(builder.ToString()).ToList();
}
......
......@@ -36,6 +36,10 @@ namespace Mall.Repository.User
{
builder.AppendFormat(" AND {0}={1} ", nameof(RB_Video_Extend.Id), query.Id);
}
if (query.Title != null && !string.IsNullOrEmpty(query.Title.Trim()))
{
builder.AppendFormat(" AND {0} LIKE '%{1}%' ", nameof(RB_Video_Extend.Title), query.Title.Trim());
}
builder.Append(" ORDER BY Id DESC ");
return GetPage<RB_Video_Extend>(pageIndex, pageSize, out rowCount, builder.ToString()).ToList();
}
......@@ -61,6 +65,10 @@ namespace Mall.Repository.User
{
builder.AppendFormat(" AND {0}={1} ", nameof(RB_Video_Extend.Id), query.Id);
}
if (query.Title != null && !string.IsNullOrEmpty(query.Title.Trim()))
{
builder.AppendFormat(" AND {0} LIKE '%{1}%' ", nameof(RB_Video_Extend.Title), query.Title.Trim());
}
builder.Append(" ORDER BY Id DESC ");
return Get<RB_Video_Extend>(builder.ToString()).ToList();
}
......
......@@ -209,7 +209,7 @@ namespace Mall.WebApi.Controllers.User
/// 获取视频列表
/// </summary>
/// <returns></returns>
public ApiResult GetVideoListModule()
public ApiResult GetVideoList()
{
var query = JsonConvert.DeserializeObject<RB_Video_Extend>(RequestParm.msg.ToString());
query.MallBaseId = RequestParm.MallBaseId;
......
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