|
@@ -1999,7 +1999,7 @@ public class OrderController : BaseController
|
|
|
[HttpDelete("order_word")]
|
|
|
public async Task Delete([FromBody] OrderWordDeleteDto dto)
|
|
|
{
|
|
|
- await _orderWrodRepository.RemoveAsync(x => x.Id == dto.Id);
|
|
|
+ await _orderRepository.RemoveOrderWrodBatchAsync(dto.Ids, HttpContext.RequestAborted);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -2030,7 +2030,7 @@ public class OrderController : BaseController
|
|
|
{
|
|
|
var (total, items) = await _orderWrodRepository.Queryable()
|
|
|
.WhereIF(!string.IsNullOrEmpty(dto.Tag), x => x.Tag == dto.Tag!)
|
|
|
- .WhereIF(!string.IsNullOrEmpty(dto.Classify), x => x.Classify == dto.Classify!)
|
|
|
+ .WhereIF(!string.IsNullOrEmpty(dto.Classify), x => x.Classify.Contains(dto.Classify!))
|
|
|
.WhereIF(!string.IsNullOrEmpty(dto.Synonym), x => x.Synonym != null && x.Synonym.Contains(dto.Synonym!))
|
|
|
.OrderByDescending(x => x.CreationTime)
|
|
|
.ToPagedListAsync(dto.PageIndex, dto.PageSize, HttpContext.RequestAborted);
|