Browse Source

接口修改

焉耆分支(新)
dao 3 weeks ago
parent
commit
05af09bd1f
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Device/LessonShow.cs
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassInfo/ClassInfoService.cs

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Device/LessonShow.cs View File

@@ -74,7 +74,7 @@ namespace Learun.Application.WebApi.Modules.Device
var bj = this.GetReq<BindDevClass>(); var bj = this.GetReq<BindDevClass>();
if (bj.DeviceNo.IsNullOrWhiteSpace()) return Fail($"设备码不正确({bj.DeviceNo});"); if (bj.DeviceNo.IsNullOrWhiteSpace()) return Fail($"设备码不正确({bj.DeviceNo});");
var classInfo = classInfoIBLL.GetClassNoByDevice(bj.DeviceNo); var classInfo = classInfoIBLL.GetClassNoByDevice(bj.DeviceNo);
if (classInfo == null) return Fail("未找到班级");
if (classInfo == null) return Success(new { Lesson = new List<TimeTable>(), ClassName="" }); //return Fail("未找到班级");
var lesson = arrangeLessonTermIBLL.GetLessonDay(DateTime.Today, classInfo.ClassNo, ""); var lesson = arrangeLessonTermIBLL.GetLessonDay(DateTime.Today, classInfo.ClassNo, "");
return Success(new { Lesson=lesson,classInfo.ClassName}); return Success(new { Lesson=lesson,classInfo.ClassName});
} }


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

@@ -384,7 +384,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
try try
{ {
var cn = this.BaseRepository("CollegeMIS").FindEntity<ClassInfoEntity>(x => x.DeviceCode == dev); var cn = this.BaseRepository("CollegeMIS").FindEntity<ClassInfoEntity>(x => x.DeviceCode == dev);
if (cn == null) throw new Exception("未找到班级");
//if (cn == null) throw new Exception("未找到班级");


return cn; return cn;
} }


Loading…
Cancel
Save