| | |
| | | [Route("GetCurrentInfoByPipeLineIds@V1.0")] |
| | | [HttpGet] |
| | | public List<EtaPipeLineRunCurrentInfo> GetCurrentInfoByPipeLineIds([FromQuery][Required] PipeLineIdsUnderCorpInput input) |
| | | { |
| | | { |
| | | var ids = LongListHelper.ToList(input.PipeLineIds); |
| | | |
| | | var pipeLineList = new Service.PipeLine().GetByIds(input.CorpID, ids); |
| | |
| | | vm.PipeLineID = pipeLine.ID; |
| | | vm.PipeLineName = pipeLine.Name; |
| | | vm.CurrentRunStatus = IStation.RunStatus.Shut; |
| | | var record = service_record.GetLastNormalRecord(pipeLine.CorpID, IStation.ObjectType.PipeLine, pipeLine.ID); |
| | | // var record = service_record.GetLastNormalRecord(pipeLine.CorpID, IStation.ObjectType.PipeLine, pipeLine.ID); |
| | | var record = service_record.GetLastRecord(pipeLine.CorpID, IStation.ObjectType.PipeLine, pipeLine.ID); |
| | | if (record != null) |
| | | { |
| | | vm.CurrentRunStatus = record.RSa; |