From 594b248ff1296ffb4c7039f0fc195bdefd348086 Mon Sep 17 00:00:00 2001 From: b110212000 Date: Fri, 8 Oct 2021 09:55:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E9=81=8B=E7=B6=AD?= =?UTF-8?q?=E4=BA=BA=E5=93=A1=E7=84=A1=E6=8E=92=E9=99=A4=E4=BB=A5=E5=88=AA?= =?UTF-8?q?=E9=99=A4=E4=BA=BA=E5=93=A1=E5=95=8F=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SolarPower/Repository/Implement/OperationRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SolarPower/Repository/Implement/OperationRepository.cs b/SolarPower/Repository/Implement/OperationRepository.cs index 0e6435c..53add52 100644 --- a/SolarPower/Repository/Implement/OperationRepository.cs +++ b/SolarPower/Repository/Implement/OperationRepository.cs @@ -625,7 +625,7 @@ namespace SolarPower.Repository.Implement { try { - var sql = @$"SELECT us.* FROM power_station_operation_personnel ps LEFT JOIN user us ON ps.UserId = us.Id WHERE PowerStationId = {PowerStationId}"; + var sql = @$"SELECT us.* FROM power_station_operation_personnel ps LEFT JOIN user us ON ps.UserId = us.Id WHERE ps.PowerStationId = {PowerStationId} and ps.Deleted = 0"; result = (await conn.QueryAsync(sql)).ToList(); } catch (Exception exception)