20250228 人员导入
This commit is contained in:
@@ -347,7 +347,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
Model.Comprehensive_InspectionPerson Ins = new Model.Comprehensive_InspectionPerson();
|
||||
if (!string.IsNullOrEmpty(tempData.Value1.Trim()))
|
||||
{
|
||||
var unit = units.FirstOrDefault(x => x.UnitName == tempData.Value1.Trim());
|
||||
var unit = units.Where(x => x.UnitName == tempData.Value1.Trim()).FirstOrDefault();
|
||||
if (unit == null)
|
||||
{
|
||||
errInfo += "报验单位[" + tempData.Value1.Trim() + "]不存在;";
|
||||
@@ -415,7 +415,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
}
|
||||
if (!string.IsNullOrEmpty(tempData.Value6.Trim()))
|
||||
{
|
||||
var post = posts.FirstOrDefault(e => e.PostName == tempData.Value6.Trim());
|
||||
var post = posts.Where(e => e.PostName == tempData.Value6.Trim()).FirstOrDefault();
|
||||
if (post != null)
|
||||
{
|
||||
Ins.PostId = post.PostId;
|
||||
|
||||
Reference in New Issue
Block a user