Updated UnloadTemps repo to get data for whole week instead of just the last day.
This commit is contained in:
@ -226,7 +226,7 @@ namespace ReportingServices.Shared.Repositories
|
||||
return reactors;
|
||||
}
|
||||
|
||||
public List<RDS> GetRDSForLastDay()
|
||||
public List<RDS> GetRDSForLastDay(string date)
|
||||
{
|
||||
List<RDS> rdsList = new();
|
||||
|
||||
@ -238,9 +238,10 @@ namespace ReportingServices.Shared.Repositories
|
||||
"CASE WHEN lay.UL_TEMP IS NULL THEN '1000' ELSE lay.UL_TEMP END, psn.LAYER_TYPE FROM RDS " +
|
||||
"INNER JOIN RDS_LAYER lay ON lay.RDS_NO = SEQ " +
|
||||
"INNER JOIN PROD_SPEC psn ON rds.PROD_SPEC_ID = psn.SEQ " +
|
||||
"WHERE DATE_OUT > DATEADD(DAY, -1, SYSDATETIME())";
|
||||
"WHERE DATE_OUT >= @date";
|
||||
|
||||
cmd.CommandText = query;
|
||||
cmd.Parameters.AddWithValue("@date", date);
|
||||
|
||||
using (SqlDataReader reader = cmd.ExecuteReader())
|
||||
{
|
||||
|
Reference in New Issue
Block a user