From 1d87b31f4e7f973ad5c18af8faddb1341151b87f Mon Sep 17 00:00:00 2001 From: "wanling040@gmail.com" Date: Thu, 1 Sep 2022 22:19:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E5=AF=84=E4=BF=A1?= =?UTF-8?q?=E6=A2=9D=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SolarPower/Repository/Implement/OverviewRepository.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SolarPower/Repository/Implement/OverviewRepository.cs b/SolarPower/Repository/Implement/OverviewRepository.cs index 6687a49..96bfac3 100644 --- a/SolarPower/Repository/Implement/OverviewRepository.cs +++ b/SolarPower/Repository/Implement/OverviewRepository.cs @@ -860,9 +860,9 @@ namespace SolarPower.Repository.Implement and a.errDeviceBrand = d.brend and a.errDeviceModel = d.model and a.errValue = d.errCode left join power_station ps on ps.`Code` = site_id left join operation_record pr on pr.ErrorCode = a.id - where sourceState = 1 and ps.`Code` is not null + where ps.`Code` is not null ) a LEFT JOIN notice_schedule ns ON ns.ExceptionId = a.id - WHERE ns.Id IS NULL "; + WHERE ns.Id IS NULL and a.dev_time >= '{ DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd")}' "; exceptionEmailInfos = (await conn.QueryAsync(sql)).ToList(); } catch (Exception exception)