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
83deee39
Commit
83deee39
authored
Dec 15, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
8ff638e1
803af54b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
17 deletions
+51
-17
ClassModule.cs
Edu.Module.Course/ClassModule.cs
+3
-0
RB_StudentRepository.cs
Edu.Repository/User/RB_StudentRepository.cs
+43
-15
B2BAppController.cs
Edu.WebApi/Controllers/B2BApp/B2BAppController.cs
+3
-1
VisitorReserveController.cs
Edu.WebApi/Controllers/Duty/VisitorReserveController.cs
+1
-1
UserController.cs
Edu.WebApi/Controllers/User/UserController.cs
+1
-0
No files found.
Edu.Module.Course/ClassModule.cs
View file @
83deee39
...
@@ -4873,6 +4873,7 @@ namespace Edu.Module.Course
...
@@ -4873,6 +4873,7 @@ namespace Edu.Module.Course
{
{
List
<
object
>
subList
=
new
List
<
object
>();
List
<
object
>
subList
=
new
List
<
object
>();
var
tempSubList
=
checkList
?.
Where
(
qitem
=>
qitem
.
OrderId
==
item
.
OrderId
)?.
OrderByDescending
(
qitem
=>
qitem
.
ClassDate
)?.
ToList
();
var
tempSubList
=
checkList
?.
Where
(
qitem
=>
qitem
.
OrderId
==
item
.
OrderId
)?.
OrderByDescending
(
qitem
=>
qitem
.
ClassDate
)?.
ToList
();
var
tempOrder
=
stuOrderList
?.
FirstOrDefault
(
qitem
=>
qitem
.
OrderId
==
item
.
OrderId
);
list
.
Add
(
new
list
.
Add
(
new
{
{
item
.
OrderId
,
item
.
OrderId
,
...
@@ -4881,6 +4882,8 @@ namespace Edu.Module.Course
...
@@ -4881,6 +4882,8 @@ namespace Edu.Module.Course
item
.
RoomName
,
item
.
RoomName
,
item
.
TeacherName
,
item
.
TeacherName
,
item
.
TeacherHead
,
item
.
TeacherHead
,
TotalHours
=
tempOrder
?.
TotalHours
??
0
,
CompleteHours
=
tempOrder
?.
CompleteHours
??
0
,
SubList
=
tempSubList
?.
Select
(
qitem
=>
new
SubList
=
tempSubList
?.
Select
(
qitem
=>
new
{
{
ClassData
=
Common
.
ConvertHelper
.
FormatDate2
(
qitem
.
ClassDate
),
ClassData
=
Common
.
ConvertHelper
.
FormatDate2
(
qitem
.
ClassDate
),
...
...
Edu.Repository/User/RB_StudentRepository.cs
View file @
83deee39
...
@@ -37,6 +37,11 @@ namespace Edu.Repository.User
...
@@ -37,6 +37,11 @@ namespace Edu.Repository.User
/// </summary>
/// </summary>
private
readonly
RB_StageRepository
stageRepository
=
new
RB_StageRepository
();
private
readonly
RB_StageRepository
stageRepository
=
new
RB_StageRepository
();
/// <summary>
/// 同业客户仓储层对象
/// </summary>
private
readonly
RB_CustomerRepository
customerRepository
=
new
RB_CustomerRepository
();
/// <summary>
/// <summary>
/// 获取学生列表
/// 获取学生列表
/// </summary>
/// </summary>
...
@@ -166,10 +171,7 @@ WHERE 1=1
...
@@ -166,10 +171,7 @@ WHERE 1=1
{
{
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
AreaId
),
query
.
AreaId
);
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
AreaId
),
query
.
AreaId
);
}
}
if
(
query
.
CreateBy
>
0
)
{
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
CreateBy
),
query
.
CreateBy
);
}
if
(
query
.
StuStage
>
0
)
if
(
query
.
StuStage
>
0
)
{
{
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
StuStage
),
(
int
)
query
.
StuStage
);
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
StuStage
),
(
int
)
query
.
StuStage
);
...
@@ -198,18 +200,29 @@ WHERE 1=1
...
@@ -198,18 +200,29 @@ WHERE 1=1
{
{
//全部
//全部
if
(
query
.
BelongType
==
1
)
if
(
query
.
BelongType
==
1
)
{
{
builder
.
AppendFormat
(
@"
AND ( t.CreateBy={0}
OR t.StuId IN (SELECT StuId FROM rb_student_assist WHERE AssistId={0} AND `Status`=0)
)
"
,
query
.
CreateBy
);
}
}
//我负责的
//我负责的
if
(
query
.
BelongType
==
2
)
if
(
query
.
BelongType
==
2
&&
query
.
CreateBy
>
0
)
{
{
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
CreateBy
),
query
.
CreateBy
);
}
}
//我协同的
//我协同的
if
(
query
.
BelongType
==
3
)
if
(
query
.
BelongType
==
3
)
{
{
builder
.
AppendFormat
(
" AND t.StuId IN (SELECT StuId FROM rb_student_assist WHERE AssistId={0} AND `Status`=0) "
,
query
.
CreateBy
);
}
}
else
{
if
(
query
.
CreateBy
>
0
)
{
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
CreateBy
),
query
.
CreateBy
);
}
}
}
}
}
}
...
@@ -342,7 +355,25 @@ WHERE o.OrderState=1 and og.`Status`=0 and sog.`Status`=0 and og.GuestState=1 an
...
@@ -342,7 +355,25 @@ WHERE o.OrderState=1 and og.`Status`=0 and sog.`Status`=0 and og.GuestState=1 an
}
}
if
(
oldModel
.
StuSourceId
!=
model
.
StuSourceId
)
if
(
oldModel
.
StuSourceId
!=
model
.
StuSourceId
)
{
{
logContent
+=
string
.
Format
(
"来源人:由【{0}】=>【{1}】,"
,
oldModel
.
StuSourceId
,
model
.
StuSourceId
);
string
oldName
=
""
;
string
newName
=
""
;
if
(
oldModel
.
CreateType
==
Common
.
Enum
.
User
.
StuCreateTypeEnum
.
InternalIntroduction
)
{
oldName
=
accountRepository
.
GetEmployeeInfo
(
oldModel
.
StuSourceId
)?.
EmployeeName
??
""
;
}
if
(
oldModel
.
CreateType
==
Common
.
Enum
.
User
.
StuCreateTypeEnum
.
TransIntroduction
)
{
oldName
=
customerRepository
.
GetEntity
(
oldModel
.
StuSourceId
)?.
CustomerName
??
""
;
}
if
(
model
.
CreateType
==
Common
.
Enum
.
User
.
StuCreateTypeEnum
.
InternalIntroduction
)
{
newName
=
accountRepository
.
GetEmployeeInfo
(
model
.
StuSourceId
)?.
EmployeeName
??
""
;
}
if
(
model
.
CreateType
==
Common
.
Enum
.
User
.
StuCreateTypeEnum
.
TransIntroduction
)
{
newName
=
customerRepository
.
GetEntity
(
model
.
StuSourceId
)?.
CustomerName
??
""
;
}
logContent
+=
string
.
Format
(
"来源人:由【{0}】=>【{1}】,"
,
oldName
,
newName
);
}
}
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
...
@@ -537,10 +568,7 @@ WHERE 1=1
...
@@ -537,10 +568,7 @@ WHERE 1=1
{
{
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
Group_Id
),
query
.
Group_Id
);
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
Group_Id
),
query
.
Group_Id
);
}
}
if
(
query
.
School_Id
>
-
1
)
{
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
School_Id
),
query
.
School_Id
);
}
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
StuTel
))
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
StuTel
))
{
{
builder
.
AppendFormat
(
" AND t.{0}='{1}' "
,
nameof
(
RB_Student_ViewModel
.
StuTel
),
query
.
StuTel
);
builder
.
AppendFormat
(
" AND t.{0}='{1}' "
,
nameof
(
RB_Student_ViewModel
.
StuTel
),
query
.
StuTel
);
...
...
Edu.WebApi/Controllers/B2BApp/B2BAppController.cs
View file @
83deee39
...
@@ -62,6 +62,8 @@ namespace Edu.WebApi.Controllers.B2BApp
...
@@ -62,6 +62,8 @@ namespace Edu.WebApi.Controllers.B2BApp
GuestName
=
base
.
ParmJObj
.
GetStringValue
(
"GuestName"
),
GuestName
=
base
.
ParmJObj
.
GetStringValue
(
"GuestName"
),
Q_StudentId
=
base
.
ParmJObj
.
GetInt
(
"Q_StudentId"
),
Q_StudentId
=
base
.
ParmJObj
.
GetInt
(
"Q_StudentId"
),
};
};
//query.Q_StudentId = 0;
//query.CustomerId = 0;
var
list
=
orderModule
.
GetMyOrderPageList
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
rowsCount
,
query
);
var
list
=
orderModule
.
GetMyOrderPageList
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
rowsCount
,
query
);
List
<
RB_Class_Time_ViewModel
>
timeList
=
new
List
<
RB_Class_Time_ViewModel
>();
List
<
RB_Class_Time_ViewModel
>
timeList
=
new
List
<
RB_Class_Time_ViewModel
>();
List
<
RB_Customer_BalanceDetail_ViewModel
>
balanceList
=
new
List
<
RB_Customer_BalanceDetail_ViewModel
>();
List
<
RB_Customer_BalanceDetail_ViewModel
>
balanceList
=
new
List
<
RB_Customer_BalanceDetail_ViewModel
>();
...
@@ -124,7 +126,7 @@ namespace Edu.WebApi.Controllers.B2BApp
...
@@ -124,7 +126,7 @@ namespace Edu.WebApi.Controllers.B2BApp
{
{
var
customer
=
base
.
AppletCustomerInfo
;
var
customer
=
base
.
AppletCustomerInfo
;
int
StuId
=
base
.
ParmJObj
.
GetInt
(
"StuId"
);
int
StuId
=
base
.
ParmJObj
.
GetInt
(
"StuId"
);
//StuId = 0;
var
obj
=
classModule
.
AppCustomerGetClassPlan
(
StuId
);
var
obj
=
classModule
.
AppCustomerGetClassPlan
(
StuId
);
return
ApiResult
.
Success
(
data
:
obj
);
return
ApiResult
.
Success
(
data
:
obj
);
}
}
...
...
Edu.WebApi/Controllers/Duty/VisitorReserveController.cs
View file @
83deee39
...
@@ -52,7 +52,7 @@ namespace Edu.WebApi.Controllers.Duty
...
@@ -52,7 +52,7 @@ namespace Edu.WebApi.Controllers.Duty
};
};
if
(
query
.
IsQueryAll
!=
1
)
if
(
query
.
IsQueryAll
!=
1
)
{
{
query
.
CreateBy
=
base
.
UserInfo
.
Id
;
//
query.CreateBy = base.UserInfo.Id;
}
}
var
list
=
visitorReserveModule
.
GetVisitorReservePageModule
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
rowsCount
,
query
);
var
list
=
visitorReserveModule
.
GetVisitorReservePageModule
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
rowsCount
,
query
);
foreach
(
var
item
in
list
)
foreach
(
var
item
in
list
)
...
...
Edu.WebApi/Controllers/User/UserController.cs
View file @
83deee39
...
@@ -675,6 +675,7 @@ namespace Edu.WebApi.Controllers.User
...
@@ -675,6 +675,7 @@ namespace Edu.WebApi.Controllers.User
{
{
query
.
CreateBy
=
base
.
UserInfo
.
Id
;
query
.
CreateBy
=
base
.
UserInfo
.
Id
;
}
}
int
PlanId
=
base
.
ParmJObj
.
GetInt
(
"PlanId"
);
int
PlanId
=
base
.
ParmJObj
.
GetInt
(
"PlanId"
);
if
(
PlanId
>
0
)
if
(
PlanId
>
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