|
|
@@ -48,8 +48,8 @@ namespace BPA.KitChen.GroupMeal.Application.Service.OneCard.DiningPlate.Service |
|
|
|
{ |
|
|
|
var res = db.Queryable<BPA_DiningPlate>() |
|
|
|
.Where(x => x.IsDeleted == 0) |
|
|
|
.WhereIF(!string.IsNullOrEmpty(inputDto.QRCode), x => x.QRCode == inputDto.QRCode) |
|
|
|
.WhereIF(!string.IsNullOrEmpty(inputDto.ChipCode), x => x.ChipCode == inputDto.ChipCode) |
|
|
|
.WhereIF(!string.IsNullOrEmpty(inputDto.QRCode), x => x.QRCode.Contains(inputDto.QRCode) ) |
|
|
|
.WhereIF(!string.IsNullOrEmpty(inputDto.ChipCode), x => x.ChipCode.Contains(inputDto.ChipCode) ) |
|
|
|
.WhereIF(inputDto.Status.HasValue, x => x.Status == inputDto.Status) |
|
|
|
.OrderBy(x => x.CreateAt, OrderByType.Desc) |
|
|
|
.Select(t => new DiningPlateDto |
|
|
|