|
@@ -223,7 +223,8 @@ namespace TEAMModelOS.Controllers.Third
|
|
|
var ScSchools = await table.FindListByDict<ScSchool>(new Dictionary<string, object>() { { "PartitionKey", "ScSchool" }, { "areaId", $"{areaId}" } });
|
|
|
Dictionary<string, object> dict = new Dictionary<string, object> { { "accessConfig", $"{accessConfig}" }, { "areaId", $"{areaId}" } };
|
|
|
//获取当前期,所有区所有学校的教师
|
|
|
- (int status, string json) = await _httpTrigger.RequestHttpTrigger(dict, _option.Location, "GetTeachersListByProject");
|
|
|
+ //(int status, string json) = await _httpTrigger.RequestHttpTrigger(dict, _option.Location, "GetTeachersListByProject");
|
|
|
+ (int status, string json) = await _scsStudyApisService.GetTeachersListByProject($"{areaId}", $"{accessConfig}");
|
|
|
//序列化
|
|
|
List<ScTeacher> teachers = json.ToObject<List<ScTeacher>>(new JsonSerializerOptions { PropertyNameCaseInsensitive = false });
|
|
|
// 处理省平台后补的教师,教师的学校不在当前区的学校列表中。
|
|
@@ -329,7 +330,8 @@ namespace TEAMModelOS.Controllers.Third
|
|
|
var ScTeachers = await table.FindListByDict<ScTeacher>(new Dictionary<string, object>() { { "PartitionKey", "ScTeacher" }, { "areaId", $"{areaId}" } });
|
|
|
var ScSchools = await table.FindListByDict<ScSchool>(new Dictionary<string, object>() { { "PartitionKey", "ScSchool" }, { "areaId", $"{areaId}" } });
|
|
|
Dictionary<string, object> dict = new Dictionary<string, object> { { "accessConfig", $"{accessConfig}" }, { "areaId", $"{areaId}" } };
|
|
|
- (int status, string json) = await _httpTrigger.RequestHttpTrigger(dict, _option.Location, "GetTeachersListByProject");
|
|
|
+ //(int status, string json) = await _httpTrigger.RequestHttpTrigger(dict, _option.Location, "GetTeachersListByProject");
|
|
|
+ (int status, string json) = await _scsStudyApisService.GetTeachersListByProject($"{areaId}", $"{accessConfig}");
|
|
|
///
|
|
|
var teachers = json.ToObject<List<ScTeacher>>(new JsonSerializerOptions { PropertyNameCaseInsensitive = false });
|
|
|
// 处理省平台后补的教师,教师的学校不在当前区的学校列表中。
|
|
@@ -545,7 +547,8 @@ namespace TEAMModelOS.Controllers.Third
|
|
|
{
|
|
|
ignore.Add(item);
|
|
|
}
|
|
|
- (status, json) = await _httpTrigger.RequestHttpTrigger(dict, _option.Location, "GetSchoolList");
|
|
|
+ //(status, json) = await _httpTrigger.RequestHttpTrigger(dict, _option.Location, "GetSchoolList");
|
|
|
+ (status, json) = await _scsStudyApisService.GetSchoolList($"{areaId}", $"{accessConfig}");
|
|
|
if (status == 200)
|
|
|
{
|
|
|
schools = json.ToObject<List<ScSchool>>(new JsonSerializerOptions { PropertyNameCaseInsensitive = false });
|
|
@@ -611,9 +614,9 @@ namespace TEAMModelOS.Controllers.Third
|
|
|
Dictionary<string, object> dict = new Dictionary<string, object> { { "accessConfig", $"{accessConfig}" }, { "areaId", $"{areaId}" } };
|
|
|
int status = -1; string json = null;
|
|
|
//5.3.1.1获取项目列表
|
|
|
- (status, json) = await _httpTrigger.RequestHttpTrigger(dict, _option.Location, "GetProjectInfoByTrainComID");
|
|
|
+ //(status, json) = await _httpTrigger.RequestHttpTrigger(dict, _option.Location, "GetProjectInfoByTrainComID");
|
|
|
//新的方式 5.3.1.1获取项目列表
|
|
|
- //(status, json) = await _scsStudyApisService.GetProjectInfoByTrainComID($"{areaId}", $"{accessConfig}");
|
|
|
+ (status, json) = await _scsStudyApisService.GetProjectInfoByTrainComID($"{areaId}", $"{accessConfig}");
|
|
|
List<ScProject> projects = null;
|
|
|
List<ScSchool> saveschools = null;
|
|
|
List<ScSchool> schools = null;
|
|
@@ -626,7 +629,8 @@ namespace TEAMModelOS.Controllers.Third
|
|
|
var table = _azureStorage.GetCloudTableClient().GetTableReference("ScYxpt");
|
|
|
|
|
|
// 5.3.1.18根据机构ID、项目ID、子项目ID返回学校列表
|
|
|
- (status, json) = await _httpTrigger.RequestHttpTrigger(dict, _option.Location, "GetSchoolList");
|
|
|
+ //(status, json) = await _httpTrigger.RequestHttpTrigger(dict, _option.Location, "GetSchoolList");
|
|
|
+ (status, json) = await _scsStudyApisService.GetSchoolList($"{areaId}", $"{accessConfig}");
|
|
|
if (status == 200)
|
|
|
{
|
|
|
schools = json.ToObject<List<ScSchool>>(new JsonSerializerOptions { PropertyNameCaseInsensitive = false });
|