From 1d8b214fbf0cd2871a93a468c6afc97d9aaf16fc Mon Sep 17 00:00:00 2001 From: zzj <31836194@qq.com> Date: Thu, 21 Mar 2024 17:12:33 +0800 Subject: [PATCH] --- DigitalSchoolApi/Controllers/YKTTrabs.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DigitalSchoolApi/Controllers/YKTTrabs.cs b/DigitalSchoolApi/Controllers/YKTTrabs.cs index 7512b3d..8492281 100644 --- a/DigitalSchoolApi/Controllers/YKTTrabs.cs +++ b/DigitalSchoolApi/Controllers/YKTTrabs.cs @@ -1435,7 +1435,7 @@ namespace DigitalSchoolApi.Controllers //课程信息 List kcxx = conn_oracle.Query("select * from V_KCXX").ToList(); //部门 - var depts = conn_oracle.Query("select * from V_DEPT").ToList(); + List depts = conn_oracle.Query("select * from V_DEPT").ToList(); //教师 List jsxx = conn_oracle.Query("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("select * from LR_Base_Department").ToList(); - var anumDept = 0; - var unumDept = 0; + List departments = db.Query("select * from LR_Base_Department").ToList(); + int anumDept = 0; + int unumDept = 0; foreach (var item in depts) { try