Browse Source

焉耆分支(新)
dao 2 months ago
parent
commit
ef0e372288
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassInfo/ClassInfoService.cs

+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassInfo/ClassInfoService.cs View File

@@ -362,6 +362,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{ {
var cn = db.FindEntity<ClassInfoEntity>(x => x.ClassNo == classno); var cn = db.FindEntity<ClassInfoEntity>(x => x.ClassNo == classno);
if (cn == null) throw new Exception("未找到班级"); if (cn == null) throw new Exception("未找到班级");
if(!cn.DeviceCode.IsEmpty()) throw new Exception("请勿重复邦定!");
cn.DeviceCode = dev; cn.DeviceCode = dev;
db.Update(cn); db.Update(cn);




Loading…
Cancel
Save