diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RepairReport/RepairReportStudentApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RepairReport/RepairReportStudentApi.cs index cf280d1a3..b14032e30 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RepairReport/RepairReportStudentApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RepairReport/RepairReportStudentApi.cs @@ -102,6 +102,7 @@ namespace Learun.Application.WebApi RepairReport_StudentEntity entity = parameter.strEntity.ToObject(); if (string.IsNullOrWhiteSpace(entity.Contact)) return Fail("联系电话不能为空!"); + if(entity.Status==2 && string.IsNullOrWhiteSpace(entity.Repairname)) return Fail("维修人不能为空!"); repairreportStudentIBLL.SaveEntity(parameter.keyValue, entity); //entity.Status = 2; if (entity.Status == 2) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RepairReport/RepairReportTeacherApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RepairReport/RepairReportTeacherApi.cs index 4d5ec89aa..caa63b3e3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RepairReport/RepairReportTeacherApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/RepairReport/RepairReportTeacherApi.cs @@ -102,6 +102,7 @@ namespace Learun.Application.WebApi RepairReport_TeacherEntity entity = parameter.strEntity.ToObject(); if (string.IsNullOrWhiteSpace(entity.Contact)) return Fail("联系电话不能为空!"); + if (entity.Status == 2 && string.IsNullOrWhiteSpace(entity.Repairname)) return Fail("维修人不能为空!"); repairreportTeacherIBLL.SaveEntity(parameter.keyValue, entity); //entity.Status = 2; if (entity.Status == 2)