|
|
@@ -1435,7 +1435,7 @@ namespace DigitalSchoolApi.Controllers |
|
|
|
//课程信息 |
|
|
|
List<V_KCXX> kcxx = conn_oracle.Query<V_KCXX>("select * from V_KCXX").ToList(); |
|
|
|
//部门 |
|
|
|
var depts = conn_oracle.Query<V_Dept>("select * from V_DEPT").ToList(); |
|
|
|
List<V_Dept> depts = conn_oracle.Query<V_Dept>("select * from V_DEPT").ToList(); |
|
|
|
//教师 |
|
|
|
List<V_JSXX> jsxx = conn_oracle.Query<V_JSXX>("select * from V_JSXX").ToList(); |
|
|
|
//行政班级表 |
|
|
@@ -1465,13 +1465,13 @@ namespace DigitalSchoolApi.Controllers |
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|
using (var db=new SqlConnection(_coresqlConnection)) |
|
|
|
using (IDbConnection db =new SqlConnection(_coresqlConnection)) |
|
|
|
{ |
|
|
|
|
|
|
|
#region 部门 |
|
|
|
var departments = db.Query<DepartmentEntity>("select * from LR_Base_Department").ToList(); |
|
|
|
var anumDept = 0; |
|
|
|
var unumDept = 0; |
|
|
|
List<DepartmentEntity> departments = db.Query<DepartmentEntity>("select * from LR_Base_Department").ToList(); |
|
|
|
int anumDept = 0; |
|
|
|
int unumDept = 0; |
|
|
|
foreach (var item in depts) |
|
|
|
{ |
|
|
|
try |
|
|
|