|
|
@ -255,6 +255,51 @@ public class Ghre_ExamRecordServices : BaseServices<Ghre_ExamRecord, Ghre_ExamRe |
|
|
|
|
|
|
|
|
|
|
|
extend.questionList = previews; |
|
|
|
extend.questionList = previews; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string sql = @$"SELECT StaffNo,
|
|
|
|
|
|
|
|
StaffName, |
|
|
|
|
|
|
|
dbo.FO_DeptInfo (DeptID, |
|
|
|
|
|
|
|
getdate (), |
|
|
|
|
|
|
|
1, |
|
|
|
|
|
|
|
'DeptNo') DeptNo, |
|
|
|
|
|
|
|
dbo.FO_DeptInfo (DeptID, |
|
|
|
|
|
|
|
getdate (), |
|
|
|
|
|
|
|
1, |
|
|
|
|
|
|
|
'DeptFullPateName') DepteName |
|
|
|
|
|
|
|
FROM Ghra_Staff |
|
|
|
|
|
|
|
WHERE StaffID = {record.StaffId}";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extend.StaffInfo = await Db.Ado.SqlQuerySingleAsync<StaffInfo>(sql); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sql = @$"SELECT A.StaffNo,
|
|
|
|
|
|
|
|
A.StaffName, |
|
|
|
|
|
|
|
dbo.FO_DeptInfo (A.DeptID, |
|
|
|
|
|
|
|
getdate (), |
|
|
|
|
|
|
|
1, |
|
|
|
|
|
|
|
'DeptNo') DeptNo, |
|
|
|
|
|
|
|
dbo.FO_DeptInfo (A.DeptID, |
|
|
|
|
|
|
|
getdate (), |
|
|
|
|
|
|
|
1, |
|
|
|
|
|
|
|
'DeptFullPateName') DepteName, |
|
|
|
|
|
|
|
A.PhotoUrl, |
|
|
|
|
|
|
|
B.TitleName |
|
|
|
|
|
|
|
FROM Ghra_Staff A LEFT JOIN Ghra_Title B ON B.TitleID = A.TitleID |
|
|
|
|
|
|
|
WHERE A.StaffID = {record.StaffId}";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extend.CommentData = await Db.Ado.SqlQuerySingleAsync<CommentData>(sql); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (record.ScoreStatus == "NoScore") |
|
|
|
|
|
|
|
extend.CommentData.IsFirstTime = true; |
|
|
|
|
|
|
|
var body = new QueryBody(); |
|
|
|
|
|
|
|
body.pageNum = 1; |
|
|
|
|
|
|
|
body.pageSize = 10000; |
|
|
|
|
|
|
|
var records = await QueryFilterPage(body, $"ExamId='{record.ExamId}'"); |
|
|
|
|
|
|
|
var records1 = records.result.DT_TableDataT1; |
|
|
|
|
|
|
|
int index = records1.FindIndex(x => x.Id == examRecordId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extend.PreviousRecordId = index - 1 >= 0 && records1.Count > 1 ? records1[index - 1].Id : null; |
|
|
|
|
|
|
|
extend.NextRecordId = records1.Count > index + 1 ? records1[index + 1].Id : null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ServiceResult<Ghre_ExamRecordExtend>.OprateSuccess("查询成功!", extend); |
|
|
|
return ServiceResult<Ghre_ExamRecordExtend>.OprateSuccess("查询成功!", extend); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |