This commit is contained in:
Kai 2021-09-22 17:50:41 +08:00
commit 3fade439a2

View File

@ -437,7 +437,7 @@ namespace SolarPower.Repository.Implement
END AS EscrowName END AS EscrowName
FROM power_station ps FROM power_station ps
LEFT JOIN company c ON ps.CompanyId = c.Id 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) if (!isPlatformLayer)
{ {