Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
01502ebd
Commit
01502ebd
authored
Nov 08, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增日志
parent
b31a07f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
31 deletions
+29
-31
ScrollClassModule.cs
Edu.Module.Course/ScrollClassModule.cs
+29
-31
No files found.
Edu.Module.Course/ScrollClassModule.cs
View file @
01502ebd
...
...
@@ -3197,48 +3197,46 @@ namespace Edu.Module.Course
};
flag
=
scroll_AppointmentRepository
.
Update
(
keyValues
,
wheres
);
}
Common
.
Plugin
.
LogHelper
.
WriteInfo
(
$"约课修改老师SetScrollTeacherAsync:: date:
{
date
}
teacherId:
{
teacherId
}
NewTeacherId:
{
NewTeacherId
}
shiftSort:
{
shiftSort
}
修改人:
{
userInfo
.
AccountName
}
"
);
if
(
flag
)
{
var
appointModel
=
appointList
.
FirstOrDefault
();
if
(
appointModel
.
State
==
Common
.
Enum
.
Course
.
CourseAppointStateEnum
.
WaitCourse
||
appointModel
.
State
==
Common
.
Enum
.
Course
.
CourseAppointStateEnum
.
Coursed
)
//待上课 需要更新 上课计划 class_plan
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
//待上课 需要更新 上课计划 class_plan
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
nameof
(
RB_Class_Plan_ViewModel
.
TeacherId
),
teacherId
}
};
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_Class_Plan_ViewModel
.
ClassPlanId
),
FiledValue
=
appointModel
.
ClassPlanId
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
class_PlanRepository
.
Update
(
keyValues
,
wheres
);
Common
.
Plugin
.
LogHelper
.
WriteInfo
(
$"约课修改上课老师SetScrollTeacherAsync:: teacherId:
{
teacherId
}
ClassPlanId:
{
appointModel
.
ClassPlanId
}
"
);
//已上课 需要更新 签到数据 class_check
var
checkList
=
class_CheckRepository
.
GetClassCheckListRepository
(
new
RB_Class_Check_ViewModel
()
{
Group_Id
=
userInfo
.
Group_Id
,
QClassPlanIds
=
appointModel
.
ClassPlanId
.
ToString
()
});
foreach
(
var
qitem
in
checkList
)
{
Common
.
Plugin
.
LogHelper
.
WriteInfo
(
$"约课修改签到老师SetScrollTeacherAsync:: oldTeacherId:
{
qitem
.
TeacherId
}
teacherId:
{
teacherId
}
ClassPlanId:
{
qitem
.
ClassCheckId
}
"
);
Dictionary
<
string
,
object
>
checkFileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Class_
Plan
_ViewModel
.
TeacherId
),
teacherId
}
{
nameof
(
RB_Class_
Check
_ViewModel
.
TeacherId
),
teacherId
}
};
List
<
WhereHelper
>
w
heres
=
new
List
<
WhereHelper
>()
List
<
WhereHelper
>
checkW
heres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_Class_Plan_ViewModel
.
ClassPlan
Id
),
FiledValue
=
appointModel
.
ClassPlan
Id
,
OperatorEnum
=
OperatorEnum
.
Equal
FiledName
=
nameof
(
RB_Class_Check_ViewModel
.
ClassCheck
Id
),
FiledValue
=
qitem
.
ClassCheck
Id
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
class_PlanRepository
.
Update
(
keyValues
,
wheres
);
}
if
(
appointModel
.
State
==
Common
.
Enum
.
Course
.
CourseAppointStateEnum
.
Coursed
)
{
//已上课 需要更新 签到数据 class_check
var
checkList
=
class_CheckRepository
.
GetClassCheckListRepository
(
new
RB_Class_Check_ViewModel
()
{
Group_Id
=
userInfo
.
Group_Id
,
QClassPlanIds
=
appointModel
.
ClassPlanId
.
ToString
()
});
foreach
(
var
qitem
in
checkList
)
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Class_Check_ViewModel
.
TeacherId
),
teacherId
}
};
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_Class_Check_ViewModel
.
ClassCheckId
),
FiledValue
=
qitem
.
ClassCheckId
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
class_CheckRepository
.
Update
(
keyValues
,
wheres
);
}
class_CheckRepository
.
Update
(
checkFileds
,
checkWheres
);
}
if
(
MessageCenterHub
.
GlobalContext
!=
null
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment