Преглед изворни кода

接口修改

焉耆分支(新)
dao пре 3 недеља
родитељ
комит
05af09bd1f
2 измењених фајлова са 2 додато и 2 уклоњено
  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 Прегледај датотеку

@@ -74,7 +74,7 @@ namespace Learun.Application.WebApi.Modules.Device
var bj = this.GetReq<BindDevClass>();
if (bj.DeviceNo.IsNullOrWhiteSpace()) return Fail($"设备码不正确({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, "");
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 Прегледај датотеку

@@ -384,7 +384,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
try
{
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;
}


Loading…
Откажи
Сачувај