|
@@ -1162,6 +1162,11 @@ namespace OASystem.Infrastructure.Repositories.PersonnelModule
|
|
.ToArray();
|
|
.ToArray();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //全部团组
|
|
|
|
+ bool isAllGroups = false;
|
|
|
|
+ if (groupLabel.Contains(-3)) isAllGroups = true;
|
|
|
|
+
|
|
|
|
+
|
|
//物品ID和物品名称只能传一个
|
|
//物品ID和物品名称只能传一个
|
|
if (dto.GoodsId > 0) dto.GoodsName = string.Empty;
|
|
if (dto.GoodsId > 0) dto.GoodsName = string.Empty;
|
|
if (!string.IsNullOrEmpty(dto.GoodsName)) dto.GoodsId = 0;
|
|
if (!string.IsNullOrEmpty(dto.GoodsName)) dto.GoodsId = 0;
|
|
@@ -1192,7 +1197,8 @@ namespace OASystem.Infrastructure.Repositories.PersonnelModule
|
|
.WhereIF(auditLabel.Length > 0, (gr, gi, sd, u1, u2, di) => auditLabel.Contains((int)gr.AuditStatus))
|
|
.WhereIF(auditLabel.Length > 0, (gr, gi, sd, u1, u2, di) => auditLabel.Contains((int)gr.AuditStatus))
|
|
.WhereIF(typeLabel.Length > 0, (gr, gi, sd, u1, u2, di) => typeLabel.Contains(gi.Type))
|
|
.WhereIF(typeLabel.Length > 0, (gr, gi, sd, u1, u2, di) => typeLabel.Contains(gi.Type))
|
|
.WhereIF(userLabel.Length > 0, (gr, gi, sd, u1, u2, di) => userLabel.Contains(gr.CreateUserId))
|
|
.WhereIF(userLabel.Length > 0, (gr, gi, sd, u1, u2, di) => userLabel.Contains(gr.CreateUserId))
|
|
- .WhereIF(groupLabel.Length > 0, (gr, gi, sd, u1, u2, di) => groupLabel.Contains(gr.GroupId))
|
|
|
|
|
|
+ .WhereIF(isAllGroups, (gr, gi, sd, u1, u2, di) => gr.GroupId > 0)
|
|
|
|
+ .WhereIF(!isAllGroups && groupLabel.Length > 0, (gr, gi, sd, u1, u2, di) => groupLabel.Contains(gr.GroupId))
|
|
.WhereIF(beginBool && endBool, (gr, gi, sd, u1, u2, di) => gr.CreateTime >= begin && gr.CreateTime <= end)
|
|
.WhereIF(beginBool && endBool, (gr, gi, sd, u1, u2, di) => gr.CreateTime >= begin && gr.CreateTime <= end)
|
|
.WhereIF(hrAuditPer, (gr, gi, sd, u1, u2, di) => _goodsTypeIds.Contains(gi.Type))
|
|
.WhereIF(hrAuditPer, (gr, gi, sd, u1, u2, di) => _goodsTypeIds.Contains(gi.Type))
|
|
.Select((gr, gi, sd, u1, u2, di) => new GoodsReceiveListMobileView
|
|
.Select((gr, gi, sd, u1, u2, di) => new GoodsReceiveListMobileView
|