|
|
|
@ -35,4 +35,15 @@ public class Ghra_StaffServices : BaseServices<Ghra_Staff, Ghra_StaffDto, Insert |
|
|
|
|
} |
|
|
|
|
return ServiceResult<Ghra_StaffDto>.OprateSuccess("查询成功!", entity); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public async Task<ServiceResult<string>> QueryEmail(int id) |
|
|
|
|
{ |
|
|
|
|
string email = string.Empty; |
|
|
|
|
var entity = await Db.Ado.SqlQuerySingleAsync<Ghra_StaffDto>($"SELECT * FROM Ghra_Staff WHERE StaffID='{id}' "); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (entity != null) |
|
|
|
|
email = entity.Email; |
|
|
|
|
return ServiceResult<string>.OprateSuccess("查询成功!", email); |
|
|
|
|
} |
|
|
|
|
} |