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
5e939548
Commit
5e939548
authored
Jul 23, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
bc75abf8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
11 deletions
+63
-11
OrderModule.cs
Edu.Module.Course/OrderModule.cs
+1
-1
EducationReceiptModule.cs
Edu.Module.EduTask/EducationReceiptModule.cs
+10
-2
OrderChangeModule.cs
Edu.Module.EduTask/OrderChangeModule.cs
+16
-4
ClassController.cs
Edu.WebApi/Controllers/Course/ClassController.cs
+36
-4
No files found.
Edu.Module.Course/OrderModule.cs
View file @
5e939548
...
...
@@ -509,7 +509,7 @@ namespace Edu.Module.Course
return
flag
;
}
}
else
if
(
demodel
.
JoinType
==
OrderJoinTypeEnum
.
TransOrder
)
else
if
(
demodel
.
JoinType
==
OrderJoinTypeEnum
.
TransOrder
||
demodel
.
JoinType
==
OrderJoinTypeEnum
.
SplitOrder
)
{
//不验证应收
}
...
...
Edu.Module.EduTask/EducationReceiptModule.cs
View file @
5e939548
...
...
@@ -312,11 +312,15 @@ namespace Edu.Module.EduTask
if
(
subItem
.
ReceiptType
==
Common
.
Enum
.
Finance
.
ReceiptTypeEnum
.
OrderTransClass
)
{
string
transClassIds
=
string
.
Join
(
","
,
list
.
Where
(
qitem
=>
qitem
.
ReceiptType
==
subItem
.
ReceiptType
).
Select
(
qitem
=>
qitem
.
RelationId
));
orderTrans
List
=
order_ChangeRepository
.
GetOrderChangeListRepository
(
new
RB_Order_Change_ViewModel
()
var
temp
List
=
order_ChangeRepository
.
GetOrderChangeListRepository
(
new
RB_Order_Change_ViewModel
()
{
QIds
=
transClassIds
,
ChangeType
=
1
,
});
if
(
tempList
!=
null
&&
tempList
.
Count
>
0
)
{
orderTransList
.
AddRange
(
tempList
);
}
}
#
endregion
...
...
@@ -324,11 +328,15 @@ namespace Edu.Module.EduTask
if
(
subItem
.
ReceiptType
==
Common
.
Enum
.
Finance
.
ReceiptTypeEnum
.
OrderSplitClass
)
{
string
transClassIds
=
string
.
Join
(
","
,
list
.
Where
(
qitem
=>
qitem
.
ReceiptType
==
subItem
.
ReceiptType
).
Select
(
qitem
=>
qitem
.
RelationId
));
orderTrans
List
=
order_ChangeRepository
.
GetOrderChangeListRepository
(
new
RB_Order_Change_ViewModel
()
var
temp
List
=
order_ChangeRepository
.
GetOrderChangeListRepository
(
new
RB_Order_Change_ViewModel
()
{
QIds
=
transClassIds
,
ChangeType
=
2
,
});
if
(
tempList
!=
null
&&
tempList
.
Count
>
0
)
{
orderTransList
.
AddRange
(
tempList
);
}
}
#
endregion
}
...
...
Edu.Module.EduTask/OrderChangeModule.cs
View file @
5e939548
...
...
@@ -270,6 +270,14 @@ namespace Edu.Module.EduTask
orderModel
.
UpdateBy
=
userInfo
.
Id
;
orderModel
.
UpdateTime
=
DateTime
.
Now
;
orderModel
.
OldGuestId
=
orderChangeModel
.
OrderGuestId
;
if
(
oldOrderModel
.
SourceOrderId
>
0
)
{
orderModel
.
FirstOrderId
=
oldOrderModel
.
SourceOrderId
;
}
else
{
orderModel
.
FirstOrderId
=
oldOrderModel
.
OrderId
;
}
flag
=
orderModule
.
SetClassOrderCommonModule
(
orderModel
,
userInfo
,
false
,
out
string
message
);
#
endregion
...
...
@@ -621,10 +629,14 @@ namespace Edu.Module.EduTask
});
var
oldClassModel
=
classList
?.
Where
(
qitem
=>
qitem
.
ClassId
==
oldOrderModel
.
ClassId
)?.
FirstOrDefault
()
??
new
RB_Class_ViewModel
();
var
newClassModel
=
classList
?.
Where
(
qitem
=>
qitem
.
ClassId
==
orderChangeModel
.
NewClassId
)?.
FirstOrDefault
()
??
new
RB_Class_ViewModel
();
//班级有效课时
var
courseValidHourse
=
planList
?.
Sum
(
qitem
=>
qitem
.
TimeHour
)
??
0
;
//新课程信息
var
newCourseModel
=
courseList
?.
Where
(
qitem
=>
qitem
.
CourseId
==
orderChangeModel
.
NewCourseId
)?.
FirstOrDefault
()
??
new
RB_Course_ViewModel
();
//班级有效课时
var
courseValidHourse
=
planList
?.
Sum
(
qitem
=>
qitem
.
TimeHour
)
??
0
;
if
(
courseValidHourse
>
newCourseModel
.
ClassHours
)
{
courseValidHourse
=
newCourseModel
.
ClassHours
;
}
//原课程信息
var
oldCourseModel
=
courseList
.
Where
(
qitem
=>
qitem
.
CourseId
==
oldOrderModel
.
CourseId
)?.
FirstOrDefault
()
??
new
RB_Course_ViewModel
();
...
...
@@ -683,13 +695,13 @@ namespace Edu.Module.EduTask
orderModel
.
OldGuestId
=
orderChangeModel
.
OrderGuestId
;
orderModel
.
NewGuestTotalClassHours
=
Convert
.
ToInt32
(
courseValidHourse
);
orderModel
.
SourceOrderId
=
orderChangeModel
.
SourceOrderId
;
if
(
o
rderModel
.
JoinType
!=
Common
.
Enum
.
Sale
.
OrderJoinTypeEnum
.
SplitOrder
&&
orderModel
.
JoinType
!=
Common
.
Enum
.
Sale
.
OrderJoinTypeEnum
.
TransOrder
)
if
(
o
ldOrderModel
.
TargetOrderId
==
0
)
{
orderModel
.
FirstOrderId
=
oldOrderModel
.
OrderId
;
}
else
{
orderModel
.
FirstOrderId
=
oldOrderModel
.
Target
OrderId
;
orderModel
.
FirstOrderId
=
oldOrderModel
.
Source
OrderId
;
}
flag
=
orderModule
.
SetClassOrderCommonModule
(
orderModel
,
userInfo
,
false
,
out
string
message
);
#
endregion
...
...
Edu.WebApi/Controllers/Course/ClassController.cs
View file @
5e939548
...
...
@@ -778,7 +778,7 @@ namespace Edu.WebApi.Controllers.Course
List
<
object
>
guestList
=
new
List
<
object
>();
foreach
(
var
item
in
orderGuestList
.
Where
(
x
=>
x
.
GuestState
==
1
||
x
.
GuestState
==
6
||
((
x
.
GuestState
==
5
||
x
.
GuestState
==
7
)
&&
x
.
ChangeEffectTime
.
HasValue
&&
Convert
.
ToDateTime
(
Common
.
ConvertHelper
.
FormatDate
(
x
.
ChangeEffectTime
))
>=
data
.
ClassDate
)))
{
if
(
item
.
JoinType
==
Common
.
Enum
.
Sale
.
OrderJoinTypeEnum
.
Normal
||
item
.
JoinType
==
Common
.
Enum
.
Sale
.
OrderJoinTypeEnum
.
RenewOrder
||
(
item
.
JoinType
==
Common
.
Enum
.
Sale
.
OrderJoinTypeEnum
.
InsertClass
&&
data
.
ClassDate
>=
Convert
.
ToDateTime
(
Common
.
ConvertHelper
.
FormatDate
(
item
.
EffectTime
)
)))
if
(
item
.
JoinType
==
Common
.
Enum
.
Sale
.
OrderJoinTypeEnum
.
InsertClass
&&
data
.
ClassDate
>=
Convert
.
ToDateTime
(
Common
.
ConvertHelper
.
FormatDate
(
item
.
EffectTime
)))
{
guestList
.
Add
(
new
{
...
...
@@ -796,9 +796,9 @@ namespace Edu.WebApi.Controllers.Course
item
.
CompleteHours
,
item
.
StartClassHours
,
item
.
JoinType
,
JoinTypeName
=
item
.
JoinType
.
ToName
(),
JoinTypeName
=
item
.
JoinType
.
ToName
(),
item
.
TargetJoinType
,
TargetJoinTypeName
=
item
.
TargetJoinType
.
ToName
(),
TargetJoinTypeName
=
item
.
TargetJoinType
.
ToName
(),
item
.
SourceOrderId
,
item
.
TargetOrderId
,
item
.
EffectStatus
,
...
...
@@ -807,7 +807,39 @@ namespace Edu.WebApi.Controllers.Course
item
.
UpOrderId
,
IsCheck
=
(
checkLogList
!=
null
&&
checkLogList
.
Any
())
?
checkLogList
.
Where
(
x
=>
x
.
OrderGuestId
==
item
.
Id
).
FirstOrDefault
()?.
CheckStatus
??
-
1
:
-
1
,
StudyNum
=
(
checkLogList
!=
null
&&
checkLogList
.
Any
())
?
checkLogList
.
Where
(
x
=>
x
.
OrderGuestId
==
item
.
Id
).
FirstOrDefault
()?.
StudyNum
??
0
:
0
,
IsTemp
=
0
,
IsTemp
=
0
,
});
}
else
{
guestList
.
Add
(
new
{
UserIcon
=
""
,
item
.
Id
,
SexStr
=
item
.
Sex
==
1
?
"男"
:
"女"
,
item
.
GuestName
,
item
.
Age
,
CreateTimeStr
=
Common
.
ConvertHelper
.
FormatTime
(
item
.
CreateTime
),
item
.
Mobile
,
item
.
OrderId
,
item
.
CourseName
,
item
.
CourseId
,
item
.
TotalHours
,
item
.
CompleteHours
,
item
.
StartClassHours
,
item
.
JoinType
,
JoinTypeName
=
item
.
JoinType
.
ToName
(),
item
.
TargetJoinType
,
TargetJoinTypeName
=
item
.
TargetJoinType
.
ToName
(),
item
.
SourceOrderId
,
item
.
TargetOrderId
,
item
.
EffectStatus
,
item
.
EffectStatusStr
,
EffectTime
=
Common
.
ConvertHelper
.
FormatDate
(
item
.
EffectTime
),
item
.
UpOrderId
,
IsCheck
=
(
checkLogList
!=
null
&&
checkLogList
.
Any
())
?
checkLogList
.
Where
(
x
=>
x
.
OrderGuestId
==
item
.
Id
).
FirstOrDefault
()?.
CheckStatus
??
-
1
:
-
1
,
StudyNum
=
(
checkLogList
!=
null
&&
checkLogList
.
Any
())
?
checkLogList
.
Where
(
x
=>
x
.
OrderGuestId
==
item
.
Id
).
FirstOrDefault
()?.
StudyNum
??
0
:
0
,
IsTemp
=
0
,
});
}
}
...
...
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