|
@@ -27,8 +27,10 @@ namespace GxPress.Service.Implement.AppHomePage
|
|
|
var connection = database.GetConnection();
|
|
|
var maxYearSql = $"select max(AddDate) from tede_media where id in( SELECT MediaId FROM tede_system_lable_media where typevalue=1)";
|
|
|
result.EndTime = await connection.ExecuteScalarAsync<string>(maxYearSql);
|
|
|
- var minYearSql = $"select min(AddDate) from tede_media where id in( SELECT MediaId FROM tede_system_lable_media where typevalue=1)";
|
|
|
+ result.EndTime = Convert.ToDateTime(result.EndTime).ToString("yyyy-MM-dd");
|
|
|
+ var minYearSql = $"select min(AddDate) from tede_media where id in( SELECT MediaId FROM tede_system_lable_media where typevalue=1) and adddate <>'0001-01-01 00:00:00'";
|
|
|
result.BeginTime = await connection.ExecuteScalarAsync<string>(minYearSql);
|
|
|
+ result.BeginTime = Convert.ToDateTime(result.BeginTime).ToString("yyyy-MM-dd");
|
|
|
return result;
|
|
|
}
|
|
|
|