[성현모] TL 수정
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8.1" />
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
|
||||
</startup>
|
||||
</configuration>
|
||||
</configuration>
|
||||
|
||||
@ -89,9 +89,24 @@ namespace SystemX.Product.CP.TRA.Extract
|
||||
try
|
||||
{
|
||||
// 2. 실행할 쿼리 작성 (JOIN 포함)
|
||||
string sql = $@"SELECT * FROM {config.SummaryTable} as Summary WITH(NOLOCK)
|
||||
JOIN {config.ResultTable} as Result WITH(NOLOCK) ON Summary.No = Result.No
|
||||
WHERE TestListFileNo = {tl.TestListFileNo} and StepVersion={tl.StepVersion}";
|
||||
//string sql = $@"SELECT * FROM {config.SummaryTable} as Summary WITH(NOLOCK)
|
||||
//JOIN {config.ResultTable} as Result WITH(NOLOCK) ON Summary.No = Result.No
|
||||
//WHERE TestListFileNo = {tl.TestListFileNo} and StepVersion={tl.StepVersion}";
|
||||
|
||||
string sql = $@"SELECT
|
||||
Summary.*,
|
||||
Result.*,
|
||||
TL.StepVersion AS Matched_StepVersion
|
||||
FROM [{config.DataBase}].[dbo].[{config.SummaryTable}] AS Summary WITH(NOLOCK)
|
||||
JOIN [{config.DataBase}].[dbo].[{config.ResultTable}] AS Result WITH(NOLOCK)
|
||||
ON Summary.No = Result.No
|
||||
OUTER APPLY (
|
||||
SELECT TOP 1 *
|
||||
FROM [CPXV2].[dbo].[VRFY_TestListFileRelease]
|
||||
WHERE StepVersion <= Summary.StepVersion and TestListFileNo = {tl.TestListFileNo} and StepDesc = '{config.MO}'
|
||||
ORDER BY StepVersion DESC
|
||||
) AS TL
|
||||
WHERE Summary.TestListFileNo = {tl.TestListFileNo} and StepVersion=TL.StepVersion";
|
||||
|
||||
//test code
|
||||
if(string.IsNullOrEmpty(config.TestCode) == false)
|
||||
|
||||
@ -8,10 +8,11 @@
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>SystemX.Product.CP.TRA.Extract</RootNamespace>
|
||||
<AssemblyName>SystemX.Product.CP.TRA.Extract</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
|
||||
Reference in New Issue
Block a user