From 1e6e8ba252486df3415b393de967228db590e5ff Mon Sep 17 00:00:00 2001 From: b110212000 Date: Wed, 22 Sep 2021 16:42:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E9=99=A4=E5=B7=B2=E5=88=AA=E9=99=A4?= =?UTF-8?q?=E9=9B=BB=E7=AB=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SolarPower/Repository/Implement/UserRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SolarPower/Repository/Implement/UserRepository.cs b/SolarPower/Repository/Implement/UserRepository.cs index fb0a999..d2f6c1f 100644 --- a/SolarPower/Repository/Implement/UserRepository.cs +++ b/SolarPower/Repository/Implement/UserRepository.cs @@ -437,7 +437,7 @@ namespace SolarPower.Repository.Implement END AS EscrowName FROM power_station ps LEFT JOIN company c ON ps.CompanyId = c.Id - WHERE ps.Id NOT IN (SELECT psop.PowerStationId FROM power_station_operation_personnel psop WHERE psop.UserId = @UserId AND psop.Deleted = 0)"; + WHERE ps.Id NOT IN (SELECT psop.PowerStationId FROM power_station_operation_personnel psop WHERE psop.UserId = @UserId AND psop.Deleted = 0) AND ps.Deleted = 0 "; if (!isPlatformLayer) {