修改study 生成用户类型
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
e81c97037a
commit
02183affc3
|
@ -1065,7 +1065,7 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
//有邮箱不符合邮箱格式,请核查Excel数据
|
//有邮箱不符合邮箱格式,请核查Excel数据
|
||||||
throw new BusinessValidationFailedException(StaticData.International("UploadDownLoad_InvalidEmail"));
|
throw new BusinessValidationFailedException(StaticData.International("UploadDownLoad_InvalidEmail"));
|
||||||
}
|
}
|
||||||
var generateUserTypeList = new List<string>() { "CRC", "CRA" };
|
var generateUserTypeList = new List<string>() { "CRC", "CRA","SR" };
|
||||||
|
|
||||||
if (excelList.Any(t => !generateUserTypeList.Contains(t.UserTypeStr.ToUpper())))
|
if (excelList.Any(t => !generateUserTypeList.Contains(t.UserTypeStr.ToUpper())))
|
||||||
{
|
{
|
||||||
|
@ -1095,7 +1095,10 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
item.UserTypeEnum = UserTypeEnum.CRA;
|
item.UserTypeEnum = UserTypeEnum.CRA;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "SR":
|
||||||
|
item.UserTypeId = sysUserTypeList.FirstOrDefault(t => t.UserTypeEnum == UserTypeEnum.SR).UserTypeId;
|
||||||
|
item.UserTypeEnum = UserTypeEnum.SR;
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue