修改 運維人員無排除以刪除人員問題

This commit is contained in:
b110212000 2021-10-08 09:55:48 +08:00
parent 1ecb54e7e0
commit 594b248ff1

View File

@ -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<MyUser>(sql)).ToList();
}
catch (Exception exception)