Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
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
黄奎
mall.oytour.com
Commits
1a144e1f
Commit
1a144e1f
authored
Feb 03, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
into sdzq-ld
parents
afdf5dd7
c2ef2ebb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
PointModule.cs
Mall.Module.Education/PointModule.cs
+1
-1
AppletPointController.cs
Mall.WebApi/Controllers/Education/AppletPointController.cs
+11
-5
PointController.cs
Mall.WebApi/Controllers/Education/PointController.cs
+4
-0
No files found.
Mall.Module.Education/PointModule.cs
View file @
1a144e1f
...
@@ -1016,7 +1016,7 @@ namespace Mall.Module.Education
...
@@ -1016,7 +1016,7 @@ namespace Mall.Module.Education
TimeSpan
dspWorkingDayAM
=
DateTime
.
Parse
(
StartTime
).
TimeOfDay
;
TimeSpan
dspWorkingDayAM
=
DateTime
.
Parse
(
StartTime
).
TimeOfDay
;
TimeSpan
dspWorkingDayPM
=
DateTime
.
Parse
(
EndTime
).
TimeOfDay
;
TimeSpan
dspWorkingDayPM
=
DateTime
.
Parse
(
EndTime
).
TimeOfDay
;
TimeSpan
dspNow
=
timeStr
.
TimeOfDay
;
TimeSpan
dspNow
=
timeStr
.
TimeOfDay
;
if
(
dspNow
>
dspWorkingDayAM
&&
dspNow
<
dspWorkingDayPM
)
if
(
dspNow
>
=
dspWorkingDayAM
&&
dspNow
<=
dspWorkingDayPM
)
{
{
return
true
;
return
true
;
}
}
...
...
Mall.WebApi/Controllers/Education/AppletPointController.cs
View file @
1a144e1f
...
@@ -346,10 +346,13 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -346,10 +346,13 @@ namespace Mall.WebApi.Controllers.Education
{
{
return
ApiResult
.
Failed
(
"约课总时长必须课时时长的整数倍"
);
return
ApiResult
.
Failed
(
"约课总时长必须课时时长的整数倍"
);
}
}
//判断时长是否一致
if
(
courseModel
.
IsPublic
==
1
)
if
(
query
.
StudyDuration
!=
courseModel
.
StudyDuration
)
{
{
return
ApiResult
.
Failed
(
"约课时长与课时时长不等"
);
//判断时长是否一致
if
(
query
.
StudyDuration
!=
courseModel
.
StudyDuration
)
{
return
ApiResult
.
Failed
(
"约课时长与课时时长不等"
);
}
}
}
if
(
query
.
BasePointNum
!=
courseModel
.
PointNum
)
if
(
query
.
BasePointNum
!=
courseModel
.
PointNum
)
...
@@ -799,13 +802,13 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -799,13 +802,13 @@ namespace Mall.WebApi.Controllers.Education
List
<
RB_Point_TeacherCourseOrder_Extend
>
courseOrder
=
new
List
<
RB_Point_TeacherCourseOrder_Extend
>();
List
<
RB_Point_TeacherCourseOrder_Extend
>
courseOrder
=
new
List
<
RB_Point_TeacherCourseOrder_Extend
>();
if
(
model
!=
null
)
if
(
model
!=
null
)
{
{
courseOrder
=
pointModule
.
GetPointOrderList
(
new
RB_Point_TeacherCourseOrder_Extend
{
SelectOrderStatus
=
1
,
TenantId
=
userInfo
.
TenantId
,
MallBaseId
=
userInfo
.
MallBaseId
,
CourseId
=
model
.
ID
,
UserId
=
userInfo
.
UserId
});
courseOrder
=
pointModule
.
GetPointOrderList
(
new
RB_Point_TeacherCourseOrder_Extend
{
SelectOrderStatus
=
1
,
TenantId
=
userInfo
.
TenantId
,
MallBaseId
=
userInfo
.
MallBaseId
,
CourseId
=
model
.
ID
});
}
}
List
<
object
>
orderList
=
new
List
<
object
>();
List
<
object
>
orderList
=
new
List
<
object
>();
if
(
courseOrder
!=
null
&&
courseOrder
.
Any
())
if
(
courseOrder
!=
null
&&
courseOrder
.
Any
())
{
{
orderList
.
AddRange
(
courseOrder
.
Select
(
x
=>
new
{
x
.
UserName
,
x
.
Photo
,
StartStudyDate
=
x
.
StudyDate
.
ToString
(
"HH:mm"
),
EndStudyDate
=
x
.
DurationUnit
==
Common
.
Enum
.
Point
.
DurationUnitEnum
.
Hour
?
(
x
.
StudyDate
.
AddMinutes
(
Convert
.
ToDouble
(
x
.
TotalStudyDuration
*
60
)))
:
x
.
StudyDate
.
AddMinutes
(
Convert
.
ToDouble
(
x
.
TotalStudyDuration
)
)
}));
orderList
.
AddRange
(
courseOrder
.
Select
(
x
=>
new
{
x
.
UserName
,
x
.
Photo
,
StartStudyDate
=
x
.
StudyDate
.
ToString
(
"HH:mm"
),
EndStudyDate
=
(
x
.
DurationUnit
==
Common
.
Enum
.
Point
.
DurationUnitEnum
.
Hour
?
(
x
.
StudyDate
.
AddMinutes
(
Convert
.
ToDouble
(
x
.
TotalStudyDuration
*
60
)))
:
x
.
StudyDate
.
AddMinutes
(
Convert
.
ToDouble
(
x
.
TotalStudyDuration
))).
ToString
(
"HH:mm"
)
}));
}
}
List
<
string
>
template_message_list
=
new
List
<
string
>();
List
<
string
>
template_message_list
=
new
List
<
string
>();
...
@@ -832,7 +835,10 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -832,7 +835,10 @@ namespace Mall.WebApi.Controllers.Education
model
.
CourseName
,
model
.
CourseName
,
model
.
RoomId
,
model
.
RoomId
,
model
.
DurationUnit
,
model
.
DurationUnit
,
model
.
StudentNumType
,
StudyDateStr
=
model
.
StudyDate
.
ToString
(
"yyyy-MM-dd"
),
StudyDateStr
=
model
.
StudyDate
.
ToString
(
"yyyy-MM-dd"
),
model
.
StudyStartDate
,
model
.
StudyEndDate
,
orderList
,
orderList
,
StudentNumTypeName
=
EnumHelper
.
GetEnumName
(
model
.
StudentNumType
)
StudentNumTypeName
=
EnumHelper
.
GetEnumName
(
model
.
StudentNumType
)
};
};
...
...
Mall.WebApi/Controllers/Education/PointController.cs
View file @
1a144e1f
...
@@ -732,6 +732,10 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -732,6 +732,10 @@ namespace Mall.WebApi.Controllers.Education
{
{
return
ApiResult
.
Failed
(
"排课时间不能交叉,已存在"
+
item
.
StudyStartDate
+
"~"
+
item
.
StudyEndDate
);
return
ApiResult
.
Failed
(
"排课时间不能交叉,已存在"
+
item
.
StudyStartDate
+
"~"
+
item
.
StudyEndDate
);
}
}
if
(
pointModule
.
GetTimeSpan
(
item
.
StudyStartTime
,
query
.
StudyStartDate
,
query
.
StudyEndDate
))
{
return
ApiResult
.
Failed
(
"排课时间不能交叉,已存在"
+
item
.
StudyStartDate
+
"~"
+
item
.
StudyEndDate
);
}
}
}
...
...
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