This commit is contained in:
qianhao.xu
2024-11-01 15:44:37 +08:00
parent 397fc2da11
commit ced8e31bd4
3 changed files with 16 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ namespace DOAN.Service.PBL
private static Expressionable<MesInterationLog> QueryExp(MesInterationLogQueryDto parm)
{
var predicate = Expressionable.Create<MesInterationLog>()
.AndIF(string.IsNullOrEmpty(parm.Workorder),it=>it.Workorder.Contains(parm.Workorder))
.AndIF(!string.IsNullOrEmpty(parm.Workorder),it=>it.Workorder.Contains(parm.Workorder))
.AndIF(parm.TimeRange[0]>DateTime.MinValue, it => it.CreatedTime >=parm.TimeRange[0])
.AndIF(parm.TimeRange[1]>DateTime.MinValue, it => it.CreatedTime <=parm.TimeRange[1])
;