|
|
@@ -961,5 +961,42 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// 生成新生信息 |
|
|
|
/// </summary> |
|
|
|
public void GenerateFreshInfo(string grade) |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
var strSql = $@"insert into StuInfoFresh(ID, NoticeNo, ksh, StuNo, StuName, GenderNo, Birthday, ClassNo, DeptNo, MajorNo, MajorDetailNok, |
|
|
|
MajorDetailName, PartyFaceNo, FamilyOriginNo, NationalityNo, ResidenceNo, TestStuSortNo, HealthStatusNo, WillNo, |
|
|
|
TestStuSubjectNo, GraduateNo, PlanFormNo, IsThreeGood, IsExcellent, IsNormalCadre, IsProvinceFirstThree, OverseasChineseNo, |
|
|
|
MatriculateSort, ProvinceNo, HighSchoolNo, RegionNo, Remark, IdentityCardNo, HighSchoolName, |
|
|
|
GoodAt, telephone, MailAddress, Grade, ArriveDate, RegisterStatus, Photo, |
|
|
|
CreateUserId,DepositBank, BankCard, BankLocation) |
|
|
|
( |
|
|
|
select NEWID(),NoticeNo,ksh,StuNo,StuName,GenderNo,Birthday,ClassNo,DeptNo,MajorNo,MajorDetailNo, |
|
|
|
MajorDetailName,PartyFaceNo,FamilyOriginNo,NationalityNo,ResidenceNo,TestStuSortNo,HealthStatusNo, |
|
|
|
WillNo,TestStuSubjectNo,GraduateNo,PlanFormNo,IsThreeGood,IsExcellent,IsNormalCadre, |
|
|
|
IsProvinceFirstThree,OverseasChineseNo,MatriculateSort,ProvinceNo,HighSchoolNo,RegionNo,Remark, |
|
|
|
IdentityCardNo,HighSchoolName,GoodAt,mobile,MailAddress,Grade,RegisterDate,RegisterStatus,Photo, |
|
|
|
'{LoginUserInfo.Get().userId}',DepositBank,BankCard,BankLocation |
|
|
|
from StuInfoBasic bb where bb.Grade='{grade}' |
|
|
|
and bb.StuNo not in (select ff.StuNo from StuInfoFresh ff where ff.StuNo is not null) |
|
|
|
)"; |
|
|
|
this.BaseRepository("CollegeMIS").ExecuteBySql(strSql); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex is ExceptionEx) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
throw ExceptionEx.ThrowServiceException(ex); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |