修復bug-如上版

This commit is contained in:
b110212000 2021-10-08 10:00:28 +08:00
parent 0272dfeb39
commit e3441a76f7

View File

@ -625,7 +625,7 @@ namespace SolarPower.Repository.Implement
{ {
try try
{ {
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"; 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 AND us.Deleted = 0";
result = (await conn.QueryAsync<MyUser>(sql)).ToList(); result = (await conn.QueryAsync<MyUser>(sql)).ToList();
} }
catch (Exception exception) catch (Exception exception)