20230627优化选择用户接口 角色不空 账号不空,优化生成卡号方法。

This commit is contained in:
2023-06-27 22:30:19 +08:00
parent ca2e5715b8
commit 225bc98fcd
9 changed files with 76 additions and 70 deletions
@@ -342,10 +342,14 @@ namespace WebAPI.Controllers
}
}
else
{
SitePerson_PersonService.SendCardNo(getTestRecord.ProjectId, getTestRecord.TestManId);
APITestRecordService.updateAll(getTestRecord.TestPlanId);
{
APITestRecordService.updateAll(getTestRecord.TestPlanId);
responeData.message = "恭喜考试通过!您的成绩为:【" + getTestScores.ToString() + "】。";
var getSitePerson = SitePerson_PersonService. GetSitePersonByProjectIdPersonId(getTestRecord.ProjectId, getTestRecord.TestManId);
if (getSitePerson != null && string.IsNullOrEmpty(getSitePerson.CardNo))
{
string CarNo = SitePerson_PersonService.SendCardNo(getTestRecord.ProjectId, getTestRecord.TestManId);
}
}
responeData.data = new { getTestScores, getPassScores, returnTestRecordId };