Removed EPP TW "Prod" scrap from Reactor Yielded Outs calculation and removed Customer scrap from Yield calculation

This commit is contained in:
Daniel Wathen
2023-01-23 14:08:50 -07:00
parent a67cc55abe
commit 35dfd6a23c
2 changed files with 5 additions and 5 deletions

View File

@ -81,7 +81,7 @@ public class ScrapeDatabaseRepository : IScrapeDatabaseRepository
" DATE_OUT," +
" SUM(CUST_TOT_REJ) AS TOT_REJ_CUST," +
" SUM(LSL_TOT_REJ) AS TOT_REJ_MANU," +
" SUM(TW_PROD) AS TW_PROD " +
" SUM(CASE WHEN REACTOR_TYPE <> 'EPP' THEN TW_PROD ELSE 0 END) AS TW_PROD " +
"FROM RDS " +
"WHERE SEQ IN (" + rdsNumbers + ") " +
"GROUP BY DATE_OUT " +
@ -533,7 +533,7 @@ public class ScrapeDatabaseRepository : IScrapeDatabaseRepository
string query = "SELECT SUM(WFRS_OUT) AS OUTS, " +
" SUM(CUST_TOT_REJ) AS CUST, " +
" SUM(LSL_TOT_REJ) AS MANU, " +
" SUM(TW_PROD) AS PROD " +
" SUM(CASE WHEN REACTOR_TYPE <> 'EPP' THEN TW_PROD ELSE 0 END) AS PROD " +
" FROM RDS " +
" WHERE DATE_OUT >= @startDate " +
" AND DATE_OUT < @endDate";