修改 運維人員無排除以刪除人員問題
This commit is contained in:
parent
1ecb54e7e0
commit
594b248ff1
@ -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 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();
|
result = (await conn.QueryAsync<MyUser>(sql)).ToList();
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user