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
72b561aa
Commit
72b561aa
authored
Feb 03, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
教师课程调整
parent
1a144e1f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
14 deletions
+7
-14
Mall.Module.TradePavilion.csproj
Mall.Module.TradePavilion/Mall.Module.TradePavilion.csproj
+5
-0
RB_Point_TeacherCourseRepository.cs
Mall.Repository/Point/RB_Point_TeacherCourseRepository.cs
+2
-14
No files found.
Mall.Module.TradePavilion/Mall.Module.TradePavilion.csproj
View file @
72b561aa
...
...
@@ -4,4 +4,9 @@
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Mall.Model\Mall.Model.csproj" />
<ProjectReference Include="..\Mall.Repository\Mall.Repository.csproj" />
</ItemGroup>
</Project>
Mall.Repository/Point/RB_Point_TeacherCourseRepository.cs
View file @
72b561aa
...
...
@@ -38,10 +38,6 @@ LEFT JOIN rb_education_teacher as et on tc.TeacherId=et.ID
{
sb
.
AppendFormat
(
" and tc.MallBaseId={0}"
,
where
.
MallBaseId
);
}
if
(
where
.
MallBaseId
>
0
)
{
sb
.
AppendFormat
(
" and tc.MallBaseId={0}"
,
where
.
MallBaseId
);
}
if
(
where
.
CourseClassId
>
0
)
{
sb
.
AppendFormat
(
" and tc.CourseClassId={0}"
,
where
.
CourseClassId
);
...
...
@@ -91,10 +87,6 @@ LEFT JOIN rb_education_teacher as et on tc.TeacherId=et.ID
{
sb
.
AppendFormat
(
" and MallBaseId={0}"
,
where
.
MallBaseId
);
}
if
(
where
.
MallBaseId
>
0
)
{
sb
.
AppendFormat
(
" and MallBaseId={0}"
,
where
.
MallBaseId
);
}
if
(
where
.
CourseClassId
>
0
)
{
sb
.
AppendFormat
(
" and CourseClassId={0}"
,
where
.
CourseClassId
);
...
...
@@ -146,10 +138,6 @@ left join (SELECT CourseId,SUM(case when OrderStaus =2 then 1 else 0 end) AS Con
{
sb
.
AppendFormat
(
" and tc.MallBaseId={0}"
,
where
.
MallBaseId
);
}
if
(
where
.
MallBaseId
>
0
)
{
sb
.
AppendFormat
(
" and tc.MallBaseId={0}"
,
where
.
MallBaseId
);
}
if
(
where
.
CourseClassId
>
0
)
{
sb
.
AppendFormat
(
" and tc.CourseClassId={0}"
,
where
.
CourseClassId
);
...
...
@@ -173,11 +161,11 @@ left join (SELECT CourseId,SUM(case when OrderStaus =2 then 1 else 0 end) AS Con
if
(
where
.
CourseStudyState
>
0
)
{
if
(
where
.
CourseStudyState
==
1
)
{
sb
.
AppendFormat
(
" AND CONCAT(DATE_FORMAT(StudyDate,'%Y-%m-%d'),' ',StudyEndDate) >= '{
1
}' "
,
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
sb
.
AppendFormat
(
" AND CONCAT(DATE_FORMAT(StudyDate,'%Y-%m-%d'),' ',StudyEndDate) >= '{
0
}' "
,
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
}
else
if
(
where
.
CourseStudyState
==
2
)
{
sb
.
AppendFormat
(
" AND CONCAT(DATE_FORMAT(StudyDate,'%Y-%m-%d'),' ',StudyEndDate) < '{
1
}' "
,
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
sb
.
AppendFormat
(
" AND CONCAT(DATE_FORMAT(StudyDate,'%Y-%m-%d'),' ',StudyEndDate) < '{
0
}' "
,
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
}
}
}
...
...
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