@@ -461,4 +461,973 @@ FailMsg | |||
调用方式: | |||
标准http get请求 | |||
返回数据类型: | |||
标准json | |||
返回数据结构 | |||
主要关心code和data即可 | |||
属性 | |||
返回值 | |||
备注 | |||
code | |||
200(int) | |||
200成功 其余失败 | |||
info | |||
响应成功(string) | |||
状态描述 | |||
data | |||
业务数据(object) | |||
业务数据 | |||
查看数据接口 | |||
学院接口 | |||
地址:http://部署地址/arrangelesson/schoolNotRecord | |||
数据库表:LR_Base_Company (基础库) | |||
所需参数:AcademicYearNo=19-20&Semester=1 | |||
参数名称 | |||
值 | |||
备注 | |||
AcademicYearNo | |||
19-20 | |||
代表学年19-20、18-19等 | |||
Semester | |||
1、2 | |||
学期1、2 | |||
主要业务数据 其余字段可忽略 | |||
属性 | |||
返回值 | |||
备注 | |||
可否为空 | |||
F_CompanyId | |||
GUID (string) | |||
GUID学院ID | |||
否 | |||
F_Category | |||
分类ID(INT) | |||
F_ParentId | |||
父级ID(string) | |||
否 | |||
F_EnCode | |||
学院编号(string) | |||
否 | |||
F_FullName | |||
学院全称(string) | |||
否 | |||
F_ShortName | |||
学院简称(string) | |||
F_Nature | |||
学院性质(string) | |||
F_OuterPhone | |||
外线电话(string) | |||
F_InnerPhone | |||
内线电话(string) | |||
F_Fax | |||
传真(string) | |||
F_Postalcode | |||
邮编(string) | |||
F_Email | |||
电子信箱(string) | |||
F_Manager | |||
负责人(string) | |||
F_Address | |||
详细地址(string) | |||
F_WebAddress | |||
主页(string) | |||
F_FoundedTime | |||
成立时间(DateTime) | |||
F_Description | |||
备注(string) | |||
系部接口 | |||
地址:http://部署地址/arrangelesson/ deptNotRecord | |||
表:CDDEPT (业务库) | |||
所需参数:AcademicYearNo=19-20&Semester=1 | |||
参数名称 | |||
值 | |||
备注 | |||
AcademicYearNo | |||
19-20 | |||
代表学年19-20、18-19等 | |||
Semester | |||
1、2 | |||
学期1、2 | |||
主要业务数据 其余字段可忽略 | |||
属性 | |||
返回值 | |||
备注 | |||
可否为空 | |||
DeptId | |||
GUID (string) | |||
GUID部门ID | |||
否 | |||
F_SchoolId | |||
学校ID(string) | |||
否 | |||
DeptNo | |||
部门编号(string) | |||
否 | |||
DeptName | |||
部门全称(string) | |||
否 | |||
DeptShortName | |||
部门简称(string) | |||
DeptEnBrief | |||
英文名称(string) | |||
DeptEnShort | |||
英文简称(string) | |||
DeptOldName | |||
曾用名(string) | |||
专业接口 | |||
地址:http://部署地址/arrangelesson/ majorNotRecord | |||
表:CDMAJOR (业务库) | |||
所需参数:AcademicYearNo=19-20&Semester=1 | |||
参数名称 | |||
值 | |||
备注 | |||
AcademicYearNo | |||
19-20 | |||
代表学年19-20、18-19等 | |||
Semester | |||
1、2 | |||
学期1、2 | |||
主要业务数据 其余字段可忽略 | |||
属性 | |||
返回值 | |||
备注 | |||
可否为空 | |||
ID | |||
GUID (string) | |||
GUID专业ID | |||
否 | |||
MajorNo | |||
专业编号(string) | |||
否 | |||
MajorName | |||
专业名称(string) | |||
否 | |||
DeptNo | |||
系部编号(string) | |||
SubjectSpeciesNo | |||
学科门类代码(string) | |||
GovMajorName | |||
教委专业名称(string) | |||
教室接口 | |||
地址:http://部署地址/arrangelesson/ classroomNotRecord | |||
所需参数:AcademicYearNo=19-20&Semester=1 | |||
参数名称 | |||
值 | |||
备注 | |||
AcademicYearNo | |||
19-20 | |||
代表学年19-20、18-19等 | |||
Semester | |||
1、2 | |||
学期1、2 | |||
主要业务数据 其余字段可忽略 | |||
属性 | |||
返回值 | |||
备注 | |||
可否为空 | |||
ClassroomId | |||
GUID (string) | |||
否 | |||
ClassroomNo | |||
编号(string) | |||
否 | |||
ClassroomName | |||
名称(string) | |||
否 | |||
ClassroomTypeNo | |||
教室类型 (string) | |||
ClassroomFloor | |||
教室楼层(string) | |||
ClassroomBuildingNo | |||
教学楼(string) | |||
课程接口 | |||
地址:http://部署地址/arrangelesson/ lessonNotRecord | |||
所需参数:AcademicYearNo=19-20&Semester=1 | |||
参数名称 | |||
值 | |||
备注 | |||
AcademicYearNo | |||
19-20 | |||
代表学年19-20、18-19等 | |||
Semester | |||
1、2 | |||
学期1、2 | |||
主要业务数据 其余字段可忽略 | |||
属性 | |||
返回值 | |||
备注 | |||
可否为空 | |||
LessonId | |||
GUID (string) | |||
GUI课程ID | |||
否 | |||
LessonNo | |||
课程编号(string) | |||
否 | |||
LessonName | |||
课程名称(string) | |||
否 | |||
LessonSortNo | |||
课程类型(string) | |||
1必修,2选修 | |||
F_SchoolId | |||
校区Id(string) | |||
StudyScore | |||
学分(decimal) | |||
WeekStudyHour | |||
周理论学时(decimal) | |||
TotalHours | |||
总学时(decimal) | |||
WhoStudy | |||
修读对象(string) | |||
BriefIntro | |||
简介(string) | |||
教师接口 | |||
地址:http://部署地址/arrangelesson/ teacherNotRecord | |||
所需参数:AcademicYearNo=19-20&Semester=1 | |||
参数名称 | |||
值 | |||
备注 | |||
AcademicYearNo | |||
19-20 | |||
代表学年19-20、18-19等 | |||
Semester | |||
1、2 | |||
学期1、2 | |||
主要业务数据 其余字段可忽略 | |||
属性 | |||
返回值 | |||
备注 | |||
可否为空 | |||
EmpId | |||
GUID (string) | |||
GUID教师ID | |||
否 | |||
EmpNo | |||
教职工编号(string) | |||
否 | |||
EmpName | |||
职工姓名(string) | |||
否 | |||
GenderNo | |||
性别(bool) | |||
true男false女 | |||
Birthday | |||
生日(datetime) | |||
F_DepartmentId | |||
部门ID(string) | |||
mobile | |||
电话(string) | |||
EmpFullTimeNo | |||
专兼职(string) | |||
IsInActiveStatus | |||
在职状态(string) | |||
1在职0离职 | |||
CultureDegreeNo | |||
文化程序(string) | |||
HighestRecord | |||
最高学历(string) | |||
resume | |||
简介(string) | |||
班级接口 | |||
地址:http://部署地址/arrangelesson/ classNotRecord | |||
所需参数:AcademicYearNo=19-20&Semester=1 | |||
参数名称 | |||
值 | |||
备注 | |||
AcademicYearNo | |||
19-20 | |||
代表学年19-20、18-19等 | |||
Semester | |||
1、2 | |||
学期1、2 | |||
主要业务数据 其余字段可忽略 | |||
属性 | |||
返回值 | |||
备注 | |||
可否为空 | |||
ClassId | |||
GUID (string) | |||
GUI班级ID | |||
否 | |||
ClassNo | |||
班级编号(string) | |||
否 | |||
ClassName | |||
班级名称(string) | |||
否 | |||
DeptNo | |||
系部编号(string) | |||
MajorNo | |||
专业编号(string) | |||
Grade | |||
级别(18代表2018级,19表示2019级)(string) | |||
学生接口 | |||
地址:http://部署地址/arrangelesson/ stuNotRecord | |||
所需参数:AcademicYearNo=19-20&Semester=1 | |||
参数名称 | |||
值 | |||
备注 | |||
AcademicYearNo | |||
19-20 | |||
代表学年19-20、18-19等 | |||
Semester | |||
1、2 | |||
学期1、2 | |||
主要业务数据 其余字段可忽略 | |||
属性 | |||
返回值 | |||
备注 | |||
可否为空 | |||
StuId | |||
GUID (string) | |||
GUID学生ID | |||
否 | |||
StuNo | |||
学生编号(string) | |||
否 | |||
StuName | |||
姓名(string) | |||
否 | |||
StuCode | |||
学籍号(string) | |||
ksh | |||
考生号(string) | |||
GenderNo | |||
性别(bool) | |||
true男false女 | |||
Birthday | |||
生日(datetime) | |||
mobile | |||
电话(string) | |||
IdentityCardNo | |||
身份证号(string) | |||
DeptNo | |||
系部编号(string) | |||
MajorNo | |||
专业编号(string) | |||
Grade | |||
级别(18代表2018级,19表示2019级)(string) | |||
ClassNo | |||
班级编号(string) | |||
对接数据接口 | |||
学院接口 | |||
地址:http://部署地址/arrangelesson/ school | |||
主要业务数据 其余字段可忽略 | |||
属性 | |||
返回值 | |||
备注 | |||
可否为空 | |||
F_CompanyId | |||
GUID (string) | |||
GUID学院ID | |||
否 | |||
F_Category | |||
分类ID(INT) | |||
F_ParentId | |||
父级ID(string) | |||
否 | |||
F_EnCode | |||
学院编号(string) | |||
否 | |||
F_FullName | |||
学院全称(string) | |||
否 | |||
F_ShortName | |||
学院简称(string) | |||
F_Nature | |||
学院性质(string) | |||
F_OuterPhone | |||
外线电话(string) | |||
F_InnerPhone | |||
内线电话(string) | |||
F_Fax | |||
传真(string) | |||
F_Postalcode | |||
邮编(string) | |||
F_Email | |||
电子信箱(string) | |||
F_Manager | |||
负责人(string) | |||
F_Address | |||
详细地址(string) | |||
F_WebAddress | |||
主页(string) | |||
F_FoundedTime | |||
成立时间(DateTime) | |||
F_Description | |||
备注(string) | |||
系部接口 | |||
地址:http://部署地址/arrangelesson/ dept | |||
主要业务数据 其余字段可忽略 | |||
属性 | |||
返回值 | |||
备注 | |||
可否为空 | |||
DeptId | |||
GUID (string) | |||
GUID部门ID | |||
否 | |||
F_SchoolId | |||
学校ID(string) | |||
否 | |||
DeptNo | |||
部门编号(string) | |||
否 | |||
DeptName | |||
部门全称(string) | |||
否 | |||
DeptShortName | |||
部门简称(string) | |||
DeptEnBrief | |||
英文名称(string) | |||
DeptEnShort | |||
英文简称(string) | |||
DeptOldName | |||
曾用名(string) | |||
专业接口 | |||
地址:http://部署地址/arrangelesson/ major | |||
主要业务数据 其余字段可忽略 | |||
属性 | |||
返回值 | |||
备注 | |||
可否为空 | |||
ID | |||
GUID (string) | |||
GUID专业ID | |||
否 | |||
MajorNo | |||
专业编号(string) | |||
否 | |||
MajorName | |||
专业名称(string) | |||
否 | |||
DeptNo | |||
系部编号(string) | |||
SubjectSpeciesNo | |||
学科门类代码(string) | |||
GovMajorName | |||
教委专业名称(string) | |||
班级接口 | |||
地址:http://部署地址/arrangelesson/ class | |||
主要业务数据 其余字段可忽略 | |||
属性 | |||
返回值 | |||
备注 | |||
可否为空 | |||
ClassId | |||
GUID (string) | |||
GUI班级ID | |||
否 | |||
ClassNo | |||
班级编号(string) | |||
否 | |||
ClassName | |||
班级名称(string) | |||
否 | |||
DeptNo | |||
系部编号(string) | |||
MajorNo | |||
专业编号(string) | |||
Grade | |||
级别(18代表2018级,19表示2019级)(string) | |||
教师接口 | |||
地址:http://部署地址/arrangelesson/ teacher | |||
主要业务数据 其余字段可忽略 | |||
属性 | |||
返回值 | |||
备注 | |||
可否为空 | |||
EmpId | |||
GUID (string) | |||
GUID教师ID | |||
否 | |||
EmpNo | |||
教职工编号(string) | |||
否 | |||
EmpName | |||
职工姓名(string) | |||
否 | |||
GenderNo | |||
性别(bool) | |||
true男false女 | |||
Birthday | |||
生日(datetime) | |||
F_DepartmentId | |||
部门ID(string) | |||
mobile | |||
电话(string) | |||
EmpFullTimeNo | |||
专兼职(string) | |||
IsInActiveStatus | |||
在职状态(string) | |||
1在职0离职 | |||
CultureDegreeNo | |||
文化程序(string) | |||
HighestRecord | |||
最高学历(string) | |||
resume | |||
简介(string) | |||
教室接口 | |||
地址:http://部署地址/arrangelesson/ classroom | |||
主要业务数据 其余字段可忽略 | |||
属性 | |||
返回值 | |||
备注 | |||
可否为空 | |||
ClassroomId | |||
GUID (string) | |||
否 | |||
ClassroomNo | |||
编号(string) | |||
否 | |||
ClassroomName | |||
名称(string) | |||
否 | |||
ClassroomTypeNo | |||
教室类型 (string) | |||
ClassroomFloor | |||
教室楼层(string) | |||
ClassroomBuildingNo | |||
教学楼(string) | |||
教室类型接口 | |||
地址:http://部署地址/arrangelesson/ classroomtype | |||
主要业务数据 其余字段可忽略 | |||
属性 | |||
返回值 | |||
备注 | |||
可否为空 | |||
ClassroomTypeId | |||
GUID (string) | |||
否 | |||
ClassroomTypeNo | |||
类型名称(string) | |||
否 | |||
ClassroomType | |||
类型编号(string) | |||
否 | |||
课程接口 | |||
地址:http://部署地址/arrangelesson/ lesson | |||
主要业务数据 其余字段可忽略 | |||
属性 | |||
返回值 | |||
备注 | |||
可否为空 | |||
LessonId | |||
GUID (string) | |||
GUI课程ID | |||
否 | |||
LessonNo | |||
课程编号(string) | |||
否 | |||
LessonName | |||
课程名称(string) | |||
否 | |||
LessonSortNo | |||
课程类型(string) | |||
1必修,2选修 | |||
F_SchoolId | |||
校区Id(string) | |||
StudyScore | |||
学分(decimal) | |||
WeekStudyHour | |||
周理论学时(decimal) | |||
TotalHours | |||
总学时(decimal) | |||
WhoStudy | |||
修读对象(string) | |||
BriefIntro | |||
简介(string) | |||
课程类型接口 | |||
地址:http://部署地址/arrangelesson/ lessontype | |||
主要业务数据 其余字段可忽略 | |||
属性 | |||
返回值 | |||
备注 | |||
可否为空 | |||
LTId | |||
GUID (string) | |||
否 | |||
LessonTypeName | |||
类型名称(string) | |||
否 | |||
LessonTypeCode | |||
类型编号(string) | |||
否 | |||
学生接口 | |||
地址:http://部署地址/arrangelesson/ stu | |||
主要业务数据 其余字段可忽略 | |||
属性 | |||
返回值 | |||
备注 | |||
可否为空 | |||
StuId | |||
GUID (string) | |||
GUID学生ID | |||
否 | |||
StuNo | |||
学生编号(string) | |||
否 | |||
StuName | |||
姓名(string) | |||
否 | |||
StuCode | |||
学籍号(string) | |||
ksh | |||
考生号(string) | |||
GenderNo | |||
性别(bool) | |||
true男false女 | |||
Birthday | |||
生日(datetime) | |||
mobile | |||
电话(string) | |||
IdentityCardNo | |||
身份证号(string) | |||
DeptNo | |||
系部编号(string) | |||
MajorNo | |||
专业编号(string) | |||
Grade | |||
级别(18代表2018级,19表示2019级)(string) | |||
ClassNo | |||
班级编号(string) | |||
部门接口 | |||
地址:http://部署地址/arrangelesson/ departments | |||
主要业务数据 其余字段可忽略 | |||
属性 | |||
返回值 | |||
备注 | |||
可否为空 | |||
F_DepartmentId | |||
GUID (string) | |||
GUID部门ID | |||
否 | |||
F_ParentId | |||
上级部门ID(string) | |||
-1和0均代表根 | |||
否 | |||
F_EnCode | |||
部门编号(string) | |||
部门编号 | |||
否 | |||
F_FullName | |||
部门全称(string) | |||
否 | |||
F_ShortName | |||
部门简称(string) | |||
F_Manager | |||
负责人(string) | |||
F_OuterPhone | |||
电话(string) | |||
数校清空基础数据 | |||
地址:http://部署地址/arrangelesson/ initbasicdata | |||
所需参数:AcademicYearNo=19-20&Semester=1 | |||
参数名称 | |||
值 | |||
备注 | |||
AcademicYearNo | |||
19-20 | |||
代表学年19-20、18-19等 | |||
Semester | |||
1、2 | |||
学期1、2 | |||
BaseTable | |||
基础表 | |||
@@ -21,6 +21,7 @@ namespace Learun.Application.WebApi.Modules | |||
Get["/classlesson"] = GetClassLessons; | |||
Get["/bukaolist"] = GetBuKaoList; | |||
//以下接口需要传值学年学期 | |||
//2024/6/27取消学年学期参数 | |||
Get["/school"] = GetSchools; | |||
Get["/dept"] = GetDepts; | |||
Get["/major"] = GetMajors; | |||
@@ -108,20 +109,20 @@ namespace Learun.Application.WebApi.Modules | |||
} | |||
private Response InitBasicData(dynamic _) | |||
{ | |||
string AcademicYearNo = Request.Query["AcademicYearNo"]; | |||
string Semester = Request.Query["Semester"]; | |||
//string AcademicYearNo = Request.Query["AcademicYearNo"]; | |||
//string Semester = Request.Query["Semester"]; | |||
string BaseTable = Request.Query["BaseTable"]; | |||
if (string.IsNullOrEmpty(AcademicYearNo) || string.IsNullOrEmpty(Semester)) | |||
{ | |||
return Fail("学年学期参数不能为空"); | |||
} | |||
if (string.IsNullOrEmpty(BaseTable)) | |||
{ | |||
return Fail("基础表参数不能为空"); | |||
} | |||
//if (string.IsNullOrEmpty(AcademicYearNo) || string.IsNullOrEmpty(Semester)) | |||
//{ | |||
// return Fail("学年学期参数不能为空"); | |||
//} | |||
//if (string.IsNullOrEmpty(BaseTable)) | |||
//{ | |||
// return Fail("基础表参数不能为空"); | |||
//} | |||
ArrangeLessonTermEntity arrangeLessonTermEntity = new ArrangeLessonTermEntity(); | |||
arrangeLessonTermEntity.AcademicYearNo = AcademicYearNo; | |||
arrangeLessonTermEntity.Semester = Semester; | |||
//arrangeLessonTermEntity.AcademicYearNo = AcademicYearNo; | |||
//arrangeLessonTermEntity.Semester = Semester; | |||
arrangeLessonTermEntity.SyncBasicTable = BaseTable; | |||
arrangeLessonTermIBLL.InitAsyncDataByCondition(arrangeLessonTermEntity); | |||
return Success("操作成功"); | |||
@@ -320,9 +321,9 @@ namespace Learun.Application.WebApi.Modules | |||
public Response GetStus(dynamic _) | |||
{ | |||
string AcademicYearNo = Request.Query["AcademicYearNo"]; | |||
string Semester = Request.Query["Semester"]; | |||
var result = arrangeLessonTermIBLL.GetStus(AcademicYearNo, Semester); | |||
//string AcademicYearNo = Request.Query["AcademicYearNo"]; | |||
//string Semester = Request.Query["Semester"]; | |||
var result = arrangeLessonTermIBLL.GetStus(); | |||
return Success(result); | |||
} | |||
@@ -418,9 +418,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
return data; | |||
} | |||
public IEnumerable<StuInfoBasicEntity> GetStus(string academicYearNo, string semester) | |||
public IEnumerable<StuInfoBasicEntity> GetStus() | |||
{ | |||
var data = arrangeLessonTermService.GetStus(academicYearNo, semester); | |||
var data = arrangeLessonTermService.GetStus(); | |||
return data; | |||
} | |||
@@ -34,7 +34,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||
IEnumerable<EmpInfoEntity> GetTeachersNotRecord(string academicYearNo, string semester); | |||
IEnumerable<ClassInfoEntity> GetClasses(); | |||
IEnumerable<ClassInfoEntity> GetClassesNotRecord(string academicYearNo, string semester); | |||
IEnumerable<StuInfoBasicEntity> GetStus(string academicYearNo, string semester); | |||
IEnumerable<StuInfoBasicEntity> GetStus(); | |||
IEnumerable<StuInfoBasicEntity> GetStusNotRecord(string academicYearNo, string semester); | |||
/// <summary> | |||
@@ -1701,14 +1701,14 @@ WHERE (AcademicYearNo = '" + strAcademicYear + "') and semester='" + strSemest | |||
} | |||
} | |||
public IEnumerable<StuInfoBasicEntity> GetStus(string academicYearNo, string semester) | |||
public IEnumerable<StuInfoBasicEntity> GetStus() | |||
{ | |||
try | |||
{ | |||
//var data = BaseRepository("CollegeMIS").FindList<StuInfoBasicEntity>(@"select a.StuId,a.StuNo,a.DeptNo,a.MajorNo,a.Grade,a.ClassNo,a.StuName,a.GenderNo,a.Birthday,b.F_Password,b.F_Secretkey from dbo.StuInfoBasic a left join adms7ultimate2.dbo.LR_Base_User b on a.StuNo=b.F_EnCode where a.CheckMark='1'"); | |||
//根据学年学期判断排课同步数据表中是否有数据:若有,说明该学年学期同步过;若没有,修改基础表,false; | |||
var aa = this.BaseRepository("CollegeMIS").FindEntity<ArrangeLessonSyncEntity>(x => x.AcademicYearNo == academicYearNo && x.Semester == semester && x.STypeId == "8"); | |||
var aa = this.BaseRepository("CollegeMIS").FindEntity<ArrangeLessonSyncEntity>(x => x.STypeId == "8"); | |||
if (aa == null) | |||
{ | |||
this.BaseRepository("CollegeMIS").ExecuteBySql("update StuInfoBasic set SyncFlag='false' "); | |||
@@ -1718,14 +1718,12 @@ WHERE (AcademicYearNo = '" + strAcademicYear + "') and semester='" + strSemest | |||
var db = BaseRepository("CollegeMIS"); | |||
var dbbase = BaseRepository(); | |||
db.BeginTrans(); | |||
var data = db.FindList<StuInfoBasicEntity>("select a.*,b.F_Password,b.F_Secretkey from dbo.StuInfoBasic a left join " + dbbase.getDbConnection().Database + ".dbo.LR_Base_User b on a.StuNo=b.F_EnCode where a.CheckMark=1 and a.StuId not in (select STableId from ArrangeLessonSync where AcademicYearNo='" + academicYearNo + "' and Semester='" + semester + "' )"); | |||
var data = db.FindList<StuInfoBasicEntity>("select a.*,b.F_Password,b.F_Secretkey from dbo.StuInfoBasic a left join " + dbbase.getDbConnection().Database + ".dbo.LR_Base_User b on a.StuNo=b.F_EnCode where a.CheckMark=1 and a.StuId not in (select STableId from ArrangeLessonSync )"); | |||
DateTime syncdate = DateTime.Now; | |||
foreach (var item in data.Select(m => m.StuId)) | |||
{ | |||
ArrangeLessonSyncEntity alsEntity = new ArrangeLessonSyncEntity(); | |||
alsEntity.Create(); | |||
alsEntity.AcademicYearNo = academicYearNo; | |||
alsEntity.Semester = semester; | |||
alsEntity.STypeId = "8"; | |||
alsEntity.SDate = syncdate; | |||
alsEntity.STableId = item; | |||
@@ -2267,44 +2265,42 @@ group by AcademicYearNo,Semester,DeptNo,MajorNo,LessonNo,TeachClassNo,EmpNo,Les | |||
if (tablename == "CdDept") | |||
{ | |||
//清空同步记录表 | |||
db.ExecuteBySql("delete from ArrangeLessonSync where AcademicYearNo='" + | |||
entity.AcademicYearNo + "' and Semester='" + entity.Semester + | |||
"' and STypeId='2'"); | |||
db.ExecuteBySql("delete from ArrangeLessonSync where STypeId='2'"); | |||
} | |||
if (tablename == "CdMajor") | |||
{ | |||
//清空同步记录表 | |||
db.ExecuteBySql("delete from ArrangeLessonSync where AcademicYearNo='" + | |||
entity.AcademicYearNo + "' and Semester='" + entity.Semester + | |||
"' and STypeId='3'"); | |||
db.ExecuteBySql("delete from ArrangeLessonSync where STypeId='3'"); | |||
} | |||
if (tablename == "ClassInfo") | |||
{ | |||
//清空同步记录表 | |||
db.ExecuteBySql("delete from ArrangeLessonSync where AcademicYearNo='" + | |||
entity.AcademicYearNo + "' and Semester='" + entity.Semester + | |||
"' and STypeId='4'"); | |||
db.ExecuteBySql("delete from ArrangeLessonSync where STypeId='4'"); | |||
} | |||
if (tablename == "ClassroomInfo") | |||
{ | |||
//清空同步记录表 | |||
db.ExecuteBySql("delete from ArrangeLessonSync where AcademicYearNo='" + | |||
entity.AcademicYearNo + "' and Semester='" + entity.Semester + | |||
"' and STypeId='6'"); | |||
db.ExecuteBySql("delete from ArrangeLessonSync where STypeId='6'"); | |||
} | |||
if (tablename == "LessonInfo") | |||
{ | |||
//清空同步记录表 | |||
db.ExecuteBySql("delete from ArrangeLessonSync where AcademicYearNo='" + | |||
entity.AcademicYearNo + "' and Semester='" + entity.Semester + | |||
"' and STypeId='5'"); | |||
db.ExecuteBySql("delete from ArrangeLessonSync where STypeId='5'"); | |||
} | |||
if (tablename == "EmpInfo") | |||
{ | |||
//清空同步记录表 | |||
db.ExecuteBySql("delete from ArrangeLessonSync where AcademicYearNo='" + | |||
entity.AcademicYearNo + "' and Semester='" + entity.Semester + | |||
"' and STypeId='7'"); | |||
db.ExecuteBySql("delete from ArrangeLessonSync where STypeId='7'"); | |||
} | |||
if (tablename == "CdClassType") | |||
{ | |||
//清空同步记录表 | |||
db.ExecuteBySql("delete from ArrangeLessonSync where STypeId='9'"); | |||
} | |||
if (tablename == "LR_Base_Department") | |||
{ | |||
//清空同步记录表 | |||
db.ExecuteBySql("delete from ArrangeLessonSync where STypeId='10'"); | |||
} | |||
//重置基础数据表 | |||
db.ExecuteBySql("update " + tablename + " set SyncFlag=0"); | |||