feat : 轨迹节点调整返回值
This commit is contained in:
parent
8a2fb92900
commit
35bfbc43bd
@ -44,21 +44,21 @@ public class TrackStatusRepository : BasicRepository<TrackStatusEntity>, ITrackS
|
||||
.LeftJoin<VSystemEntity>((a, b) => a.SubSystemId == b.Id && b.IsDeleted == false)
|
||||
.LeftJoin<VUserEntity>((a, b, c) => a.CreateUserId == c.Id && c.IsDeleted == false)
|
||||
.LeftJoin<VUserEntity>((a, b, c, d) => a.UpdateUserId == d.Id && d.IsDeleted == false)
|
||||
.InnerJoin<TrackNodeEntity>((a, b, c, d,e) => a.Node==e.Id&&a.SubSystemId==e.SubSystemId)
|
||||
.WhereIF(input.SubSystemId > 0, (a, b, c, d) => a.SubSystemId == input.SubSystemId)
|
||||
.WhereIF(!input.Keywords.IsNullOrWhiteSpace(),
|
||||
(a, b, c, d) => a.Status.Contains(input.Keywords) || a.EnStatus.Contains(input.Keywords) ||
|
||||
a.Code.Contains(input.Keywords))
|
||||
.OrderByIF(input.SelectIds.IsNullOrEmpty(), (a, b, c, d) => a.CreateTime, OrderByType.Desc)
|
||||
.OrderByIF(!input.SelectIds.IsNullOrEmpty(), (a, b, c, d) => SqlFunc.IIF(input.SelectIds.Contains(a.Id), SqlFunc.DateAdd(SqlFunc.GetDate(), 1), a.CreateTime), OrderByType.Desc)
|
||||
.Select((a, b, c, d) => new GetTrackStatusListVO
|
||||
.Select((a, b, c, d,e) => new GetTrackStatusListVO
|
||||
{
|
||||
Id = a.Id,
|
||||
Code = a.Code,
|
||||
EntrackStatus = a.EnStatus,
|
||||
TrackStatus = a.Status,
|
||||
NodeId = a.Node,
|
||||
Node = SqlFunc.IF(a.Node == 1).Return("揽收").ElseIF(a.Node == 2).Return("清关").ElseIF(a.Node == 3)
|
||||
.Return("干线").ElseIF(a.Node == 4).Return("派送").ElseIF(a.Node == 5).Return("其他").End(""),
|
||||
Node = e.NodeName!,
|
||||
CreateTime = a.CreateTime,
|
||||
CreateUser = c.Name,
|
||||
UpdateTime = a.UpdateTime,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user