RDS oversight
This commit is contained in:
parent
6788a464ce
commit
f1a9ad60a1
@ -174,7 +174,7 @@ public class FileRead : Shared.FileRead, IFileRead
|
|||||||
long? subGroupId;
|
long? subGroupId;
|
||||||
long breakAfter = dateTime.AddSeconds(_BreakAfterSeconds).Ticks;
|
long breakAfter = dateTime.AddSeconds(_BreakAfterSeconds).Ticks;
|
||||||
long preWait = _FileConnectorConfiguration?.FileHandleWaitTime is null ? dateTime.AddMilliseconds(1234).Ticks : dateTime.AddMilliseconds(_FileConnectorConfiguration.FileHandleWaitTime.Value).Ticks;
|
long preWait = _FileConnectorConfiguration?.FileHandleWaitTime is null ? dateTime.AddMilliseconds(1234).Ticks : dateTime.AddMilliseconds(_FileConnectorConfiguration.FileHandleWaitTime.Value).Ticks;
|
||||||
if (string.IsNullOrEmpty(descriptions[0].Reactor) || string.IsNullOrEmpty(descriptions[0].PSN) || string.IsNullOrEmpty(descriptions[0].RDS))
|
if (string.IsNullOrEmpty(descriptions[0].Reactor) || string.IsNullOrEmpty(descriptions[0].PSN))
|
||||||
(subGroupId, count) = (null, null);
|
(subGroupId, count) = (null, null);
|
||||||
else
|
else
|
||||||
(subGroupId, count, string _) = FromIQS.GetCommandText(_IqsConnectionString, _Logistics, descriptions[0], breakAfter, preWait);
|
(subGroupId, count, string _) = FromIQS.GetCommandText(_IqsConnectionString, _Logistics, descriptions[0], breakAfter, preWait);
|
||||||
|
@ -50,12 +50,13 @@ public class FromIQS
|
|||||||
.AppendLine(" where se.f_flag = 0 ");
|
.AppendLine(" where se.f_flag = 0 ");
|
||||||
if (subGroupId is not null)
|
if (subGroupId is not null)
|
||||||
_ = result.Append(" and se.f_sgrp = ").Append(subGroupId).AppendLine(" ");
|
_ = result.Append(" and se.f_sgrp = ").Append(subGroupId).AppendLine(" ");
|
||||||
|
if (!string.IsNullOrEmpty(description.RDS))
|
||||||
|
_ = result.Append(" and pl.f_name = '").Append(description.RDS).AppendLine("' ");
|
||||||
_ = result
|
_ = result
|
||||||
.Append(" and rd.f_name = '").Append(description.Reactor).AppendLine("' ")
|
.Append(" and rd.f_name = '").Append(description.Reactor).AppendLine("' ")
|
||||||
.Append(" and pd.f_name = '").Append(description.PSN).AppendLine("' ")
|
.Append(" and pd.f_name = '").Append(description.PSN).AppendLine("' ")
|
||||||
.AppendLine(" and jd.f_name in ('CDE1', 'CDE2', 'CDE3', 'CDE4', 'CDE5', 'CDE6') ")
|
.AppendLine(" and jd.f_name in ('CDE1', 'CDE2', 'CDE3', 'CDE4', 'CDE5', 'CDE6') ")
|
||||||
.Append(" and jd.f_name = '").Append(logistics.MesEntity).AppendLine("' ")
|
.Append(" and jd.f_name = '").Append(logistics.MesEntity).AppendLine("' ")
|
||||||
.Append(" and pl.f_name = '").Append(string.IsNullOrEmpty(description.RDS) ? "<blank>" : description.RDS).AppendLine("' ")
|
|
||||||
.Append(" and dateadd(HH, -7, (dateadd(SS, convert(bigint, se.f_sgtm), '19700101'))) = '").Append(dateTime).AppendLine("' ")
|
.Append(" and dateadd(HH, -7, (dateadd(SS, convert(bigint, se.f_sgtm), '19700101'))) = '").Append(dateTime).AppendLine("' ")
|
||||||
.AppendLine(" for json path ");
|
.AppendLine(" for json path ");
|
||||||
return result.ToString();
|
return result.ToString();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user