Pārlūkot izejas kodu

学生宿舍分配学生编号非空判断

临城职教中职
ndbs pirms 2 gadiem
vecāks
revīzija
aaa6a18bcb
1 mainītis faili ar 6 papildinājumiem un 3 dzēšanām
  1. +6
    -3
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationService.cs

+ 6
- 3
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationService.cs Parādīt failu

@@ -1814,9 +1814,12 @@ where ID='{ParentID}'
}
}

//分配床位
string sql = $"update Acc_DormitoryBuild set StudentID='{entity.StudentID}' where ID='{entity.ID}'";
db.ExecuteBySql(sql);
if (!string.IsNullOrEmpty(entity.StudentID))
{
//分配床位
string sql = $"update Acc_DormitoryBuild set StudentID='{entity.StudentID}' where ID='{entity.ID}'";
db.ExecuteBySql(sql);
}
}

int checkInStu = list.Where(x => x.StudentID != null).Count();


Notiek ielāde…
Atcelt
Saglabāt