From 0ad3153dbd0d2db77f40038af4a5a5975bc93744 Mon Sep 17 00:00:00 2001 From: zzj <31836194@qq.com> Date: Thu, 28 Dec 2023 09:53:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E5=A4=84=E7=90=86=E5=9C=A8?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E7=AB=AF=E6=8E=A7=E5=88=B6=E7=BB=B4=E4=BF=AE?= =?UTF-8?q?=E4=BA=BA=E4=B8=8D=E8=83=BD=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/RepairReport/RepairReportStudentApi.cs | 1 + .../Modules/RepairReport/RepairReportTeacherApi.cs | 1 + 2 files changed, 2 insertions(+) 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<RepairReport_StudentEntity>(); 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<RepairReport_TeacherEntity>(); 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)