|
@ -44,7 +44,7 @@ public class CmMarkLabelService : ServiceBase<CmMarkLabel>, ITransient |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
///
|
|
|
///
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="queryJson">equal:cbCameraId,cmMarkGroupId,isDelete; like:name; between:[startTime,endTime];</param>
|
|
|
/// <param name="queryJson">equal:cbCameraId,cmMarkGroupId,id,isDelete; like:name; between:[startTime,endTime];</param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
[HttpGet] |
|
|
[HttpGet] |
|
|
public override async Task<CmMarkLabel> GetQ(string queryJson) |
|
|
public override async Task<CmMarkLabel> GetQ(string queryJson) |
|
@ -87,6 +87,8 @@ public class CmMarkLabelService : ServiceBase<CmMarkLabel>, ITransient |
|
|
exp.And(it => it.CmMarkGroupId.Equals(cmMarkGroupId)); |
|
|
exp.And(it => it.CmMarkGroupId.Equals(cmMarkGroupId)); |
|
|
if (queryObj.TryGetValue("name", StringComparison.OrdinalIgnoreCase, out JToken name)) |
|
|
if (queryObj.TryGetValue("name", StringComparison.OrdinalIgnoreCase, out JToken name)) |
|
|
exp.And(it => it.Name.Contains(name.ToString())); |
|
|
exp.And(it => it.Name.Contains(name.ToString())); |
|
|
|
|
|
if (queryObj.TryGetValue("Id", StringComparison.OrdinalIgnoreCase, out JToken Id)) |
|
|
|
|
|
exp.And(it => it.Id.Equals(Id)); |
|
|
if (queryObj.TryGetValue("IsDelete", StringComparison.OrdinalIgnoreCase, out JToken isDelete)) |
|
|
if (queryObj.TryGetValue("IsDelete", StringComparison.OrdinalIgnoreCase, out JToken isDelete)) |
|
|
exp.And(it => it.IsDelete.Equals(isDelete)); |
|
|
exp.And(it => it.IsDelete.Equals(isDelete)); |
|
|
if (queryObj.TryGetValue("StartTime", StringComparison.OrdinalIgnoreCase, out JToken startTime) |
|
|
if (queryObj.TryGetValue("StartTime", StringComparison.OrdinalIgnoreCase, out JToken startTime) |
|
@ -106,7 +108,7 @@ public class CmMarkLabelService : ServiceBase<CmMarkLabel>, ITransient |
|
|
/// <param name="pagination">index,size</param>
|
|
|
/// <param name="pagination">index,size</param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
[HttpGet] |
|
|
[HttpGet] |
|
|
public override async Task<List<CmMarkLabel>> GetPageList(string queryJson, string pagination) |
|
|
public override async Task<List<CmMarkLabel>> GetPageList(string pagination, string queryJson="") |
|
|
{ |
|
|
{ |
|
|
JObject queryObj = queryJson.ToJObject(); |
|
|
JObject queryObj = queryJson.ToJObject(); |
|
|
Pagination pageObj = pagination.ToObject<Pagination>(); |
|
|
Pagination pageObj = pagination.ToObject<Pagination>(); |
|
|