From a0cf5fa58ba353c314e1818f6356d80066679406 Mon Sep 17 00:00:00 2001 From: ndbs Date: Fri, 6 May 2022 19:35:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=8E=E6=96=B0=E7=94=9F=E6=88=90=E5=AD=A6?= =?UTF-8?q?=E7=B1=8D=E6=9C=AA=E7=94=9F=E6=88=90=E6=89=80=E5=B1=9E=E5=AD=A6?= =?UTF-8?q?=E6=A0=A1=20=E5=AD=A6=E7=94=9F=E5=AD=A6=E7=B1=8D=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=94=9F=E6=88=90=E8=B4=A6=E5=8F=B7=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StuVolunteer/StuVolunteerService.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuVolunteer/StuVolunteerService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuVolunteer/StuVolunteerService.cs index 9f4d9d099..7b0bec81b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuVolunteer/StuVolunteerService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuVolunteer/StuVolunteerService.cs @@ -1,4 +1,5 @@ using Dapper; +using Learun.Application.Organization; using Learun.DataBase.Repository; using Learun.Util; using System; @@ -369,9 +370,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration db.ExecuteBySql(updSql); string addSql = @"insert into StuInfoBasic ( - Stuid,StuNo,StuCode,ClassNo,StuName,GenderNo,DeptNo,MajorNo,IdentityCardNo,ExamScore,ProvinceCode,AdmissionNo + Stuid,StuNo,StuCode,ClassNo,StuName,GenderNo,DeptNo,MajorNo,IdentityCardNo,ExamScore,ProvinceCode,AdmissionNo,F_SchoolId,Grade ) - select newid(),StuNo,'G'+CardNo,ClassNo,StuName,Sex,DeptNo,MajorNo,CardNo,StuScore,ProvinceCode,ExamNo + select newid(),StuNo,'G'+CardNo,ClassNo,StuName,Sex,DeptNo,MajorNo,CardNo,StuScore,ProvinceCode,ExamNo,F_SchoolId,Grade from StuVolunteer t where t.ClassStatus=1 and t.StuNo not in (select b.StuNo from StuInfoBasic b where b.StuNo=t.StuNo) "; db.ExecuteBySql(addSql); @@ -518,6 +519,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// 主键 public void EnrollEntity(string keyValue) { + var dbMISName = this.BaseRepository("BaseDb").FindList().FirstOrDefault(); var db = this.BaseRepository("CollegeMIS").BeginTrans(); try { @@ -526,6 +528,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration { var entity = db.FindEntity(x => x.ID == item); entity.IsEnroll = true; + entity.F_SchoolId = dbMISName.F_CompanyId; db.Update(entity); }