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
9504a0d0
Commit
9504a0d0
authored
Jan 17, 2022
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d711c739
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
RB_Order_GuestRepository.cs
Edu.Repository/Sell/RB_Order_GuestRepository.cs
+4
-0
RB_Student_OrderGuestRepository.cs
Edu.Repository/User/RB_Student_OrderGuestRepository.cs
+8
-0
StuController.cs
Edu.WebApi/Controllers/Course/StuController.cs
+1
-0
No files found.
Edu.Repository/Sell/RB_Order_GuestRepository.cs
View file @
9504a0d0
...
...
@@ -791,6 +791,10 @@ WHERE 1=1 AND A.Status=0 AND class.Status=0 AND class.ClassStatus <>4 AND b.Or
{
builder
.
AppendFormat
(
$@" AND st.StuChannel =
{
demodel
.
StuChannelId
}
"
);
}
if
(
demodel
.
StuSourceId
>
0
)
{
builder
.
AppendFormat
(
$@" AND st.StuSourceId =
{
demodel
.
StuSourceId
}
"
);
}
builder
.
AppendFormat
(
$@" order by A.
{
nameof
(
RB_Order_Guest_Extend
.
Id
)}
desc"
);
return
GetPage
<
RB_Order_Guest_Extend
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
()).
ToList
();
...
...
Edu.Repository/User/RB_Student_OrderGuestRepository.cs
View file @
9504a0d0
...
...
@@ -282,6 +282,10 @@ INNER JOIN rb_order o on sog.OrderId = o.OrderId
{
where
+=
$" and s.
{
nameof
(
RB_Student_ViewModel
.
CreateType
)}
=
{(
int
)
demodel
.
CreateType
}
"
;
}
if
(
demodel
.
StuSourceId
>
0
)
{
where
+=
$" and s.
{
nameof
(
RB_Student_ViewModel
.
StuSourceId
)}
=
{
demodel
.
StuSourceId
}
"
;
}
if
(
demodel
.
StuGuestState
>
0
)
{
where
+=
$" and org.GuestState =
{(
int
)
demodel
.
StuGuestState
}
"
;
...
...
@@ -428,6 +432,10 @@ LEFT JOIN rb_education_contract ec on ec.GuestId = og.GuestId";
{
where
+=
$" and s.
{
nameof
(
RB_Student_ViewModel
.
CreateType
)}
=
{(
int
)
demodel
.
CreateType
}
"
;
}
if
(
demodel
.
StuSourceId
>
0
)
{
where
+=
$" and s.
{
nameof
(
RB_Student_ViewModel
.
StuSourceId
)}
=
{
demodel
.
StuSourceId
}
"
;
}
if
(
demodel
.
StuStage
>
0
)
{
where
+=
$" and s.
{
nameof
(
RB_Student_ViewModel
.
StuStage
)}
=
{
demodel
.
StuStage
}
"
;
...
...
Edu.WebApi/Controllers/Course/StuController.cs
View file @
9504a0d0
...
...
@@ -307,6 +307,7 @@ namespace Edu.WebApi.Controllers.Course
GuestState
=(
GuestStateEnum
)
base
.
ParmJObj
.
GetInt
(
"GuestState"
),
StuChannelId
=
base
.
ParmJObj
.
GetInt
(
"StuChannelId"
,
0
),
CreateType
=
(
Common
.
Enum
.
User
.
StuCreateTypeEnum
)
base
.
ParmJObj
.
GetInt
(
"CreateType"
,
0
),
StuSourceId
=
base
.
ParmJObj
.
GetInt
(
"StuSourceId"
,
0
),
};
model
.
School_Id
=
-
1
;
var
schoolId
=
base
.
ParmJObj
.
GetStringValue
(
"School_Id"
);
...
...
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