diff --git a/SGGL/BLL/API/HSSE/APITestPlanService.cs b/SGGL/BLL/API/HSSE/APITestPlanService.cs index 328c1e5e..1168048b 100644 --- a/SGGL/BLL/API/HSSE/APITestPlanService.cs +++ b/SGGL/BLL/API/HSSE/APITestPlanService.cs @@ -86,6 +86,22 @@ namespace BLL returnItem.QRCodeUrl = getTestP.QRCodeUrl.Replace('\\', '/'); } returnItem.TrainingPlanId = getTestP.PlanId; + + //返回考生记录 + var getTestRecord = db.Training_TestRecord.Where(x => x.TestPlanId == testPlanId).ToList(); + List trItemList = new List(); + if (getTestRecord.Count>0) + { + foreach (var item in getTestRecord) + { + Model.TestRecordItem trItemModel = new Model.TestRecordItem(); + trItemModel.TestManId = item.TestManId; + trItemModel.TestManName = db.SitePerson_Person.FirstOrDefault(e => e.PersonId == item.TestManId).PersonName; + trItemList.Add(trItemModel); + } + } + returnItem.TestRecordItems = trItemList; + } return returnItem; }