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
90e6c755
Commit
90e6c755
authored
Dec 20, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
0f220e41
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
0 deletions
+30
-0
GuestLearningGoalsEnum.cs
Edu.Common/Enum/Course/GuestLearningGoalsEnum.cs
+7
-0
StuChannelEnum.cs
Edu.Common/Enum/User/StuChannelEnum.cs
+6
-0
RB_AccountRepository.cs
Edu.Repository/User/RB_AccountRepository.cs
+4
-0
CourseController.cs
Edu.WebApi/Controllers/Course/CourseController.cs
+11
-0
UserController.cs
Edu.WebApi/Controllers/User/UserController.cs
+2
-0
No files found.
Edu.Common/Enum/Course/GuestLearningGoalsEnum.cs
View file @
90e6c755
...
@@ -40,10 +40,17 @@ namespace Edu.Common.Enum.Course
...
@@ -40,10 +40,17 @@ namespace Edu.Common.Enum.Course
/// </summary>
/// </summary>
[
EnumField
(
"工作"
)]
[
EnumField
(
"工作"
)]
Work
=
6
,
Work
=
6
,
/// <summary>
/// <summary>
/// 移民
/// 移民
/// </summary>
/// </summary>
[
EnumField
(
"移民"
)]
[
EnumField
(
"移民"
)]
Immigrant
=
7
,
Immigrant
=
7
,
/// <summary>
/// 考级
/// </summary>
[
EnumField
(
"考级"
)]
ExamGrade
=
8
,
}
}
}
}
Edu.Common/Enum/User/StuChannelEnum.cs
View file @
90e6c755
...
@@ -51,5 +51,11 @@ namespace Edu.Common.Enum.User
...
@@ -51,5 +51,11 @@ namespace Edu.Common.Enum.User
/// </summary>
/// </summary>
[
EnumField
(
"其他"
)]
[
EnumField
(
"其他"
)]
Other
=
7
,
Other
=
7
,
/// <summary>
/// 校园推广
/// </summary>
[
EnumField
(
"校园推广"
)]
SchoolPromote
=
8
,
}
}
}
}
\ No newline at end of file
Edu.Repository/User/RB_AccountRepository.cs
View file @
90e6c755
...
@@ -427,6 +427,10 @@ FROM
...
@@ -427,6 +427,10 @@ FROM
where2
.
AppendFormat
(
" AND A.{0} LIKE @EmployeeName "
,
nameof
(
Employee_ViewModel
.
EmployeeName
));
where2
.
AppendFormat
(
" AND A.{0} LIKE @EmployeeName "
,
nameof
(
Employee_ViewModel
.
EmployeeName
));
parameters
.
Add
(
"EmployeeName"
,
"%"
+
query
.
EmployeeName
.
Trim
()
+
"%"
);
parameters
.
Add
(
"EmployeeName"
,
"%"
+
query
.
EmployeeName
.
Trim
()
+
"%"
);
}
}
if
(
query
.
UserRole
>
0
)
{
where2
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
Employee_ViewModel
.
UserRole
),(
int
)
query
.
UserRole
);
}
if
(!
string
.
IsNullOrEmpty
(
query
.
AccountTypeStr
))
if
(!
string
.
IsNullOrEmpty
(
query
.
AccountTypeStr
))
{
{
where2
.
AppendFormat
(
" AND A.{0} IN({1}) "
,
nameof
(
Employee_ViewModel
.
AccountType
),
query
.
AccountTypeStr
);
where2
.
AppendFormat
(
" AND A.{0} IN({1}) "
,
nameof
(
Employee_ViewModel
.
AccountType
),
query
.
AccountTypeStr
);
...
...
Edu.WebApi/Controllers/Course/CourseController.cs
View file @
90e6c755
...
@@ -1201,6 +1201,7 @@ namespace Edu.WebApi.Controllers.Course
...
@@ -1201,6 +1201,7 @@ namespace Edu.WebApi.Controllers.Course
/// 获取课程优惠价格列表
/// 获取课程优惠价格列表
/// </summary>
/// </summary>
/// <returns></returns>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetCoursePreferentialList
()
public
ApiResult
GetCoursePreferentialList
()
{
{
var
CourseId
=
base
.
ParmJObj
.
GetInt
(
"CourseId"
,
0
);
var
CourseId
=
base
.
ParmJObj
.
GetInt
(
"CourseId"
,
0
);
...
@@ -1208,6 +1209,16 @@ namespace Edu.WebApi.Controllers.Course
...
@@ -1208,6 +1209,16 @@ namespace Edu.WebApi.Controllers.Course
return
ApiResult
.
Success
(
data
:
list
.
OrderBy
(
qitem
=>
qitem
.
PriceDiscountType
));
return
ApiResult
.
Success
(
data
:
list
.
OrderBy
(
qitem
=>
qitem
.
PriceDiscountType
));
}
}
/// <summary>
/// 获取课程优惠价格列表
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetCourseRebateSetList
()
{
var
list
=
Common
.
Plugin
.
EnumHelper
.
EnumToList
(
typeof
(
CourseRebateSetEnum
));
return
ApiResult
.
Success
(
data
:
list
);
}
/// <summary>
/// <summary>
/// 批量设置课程优惠价格
/// 批量设置课程优惠价格
...
...
Edu.WebApi/Controllers/User/UserController.cs
View file @
90e6c755
...
@@ -718,6 +718,7 @@ namespace Edu.WebApi.Controllers.User
...
@@ -718,6 +718,7 @@ namespace Edu.WebApi.Controllers.User
item
.
StuStage
,
item
.
StuStage
,
item
.
StuStageName
,
item
.
StuStageName
,
CreateTimeStr
=
Common
.
ConvertHelper
.
FormatTime
(
item
.
CreateTime
),
CreateTimeStr
=
Common
.
ConvertHelper
.
FormatTime
(
item
.
CreateTime
),
item
.
CreateBy
,
item
.
CreateByName
,
item
.
CreateByName
,
item
.
CreateType
,
item
.
CreateType
,
CreateTypeStr
=
item
.
CreateType
.
ToName
(),
CreateTypeStr
=
item
.
CreateType
.
ToName
(),
...
@@ -2206,6 +2207,7 @@ namespace Edu.WebApi.Controllers.User
...
@@ -2206,6 +2207,7 @@ namespace Edu.WebApi.Controllers.User
EmployeeName
=
base
.
ParmJObj
.
GetStringValue
(
"EmployeeName"
),
//姓名
EmployeeName
=
base
.
ParmJObj
.
GetStringValue
(
"EmployeeName"
),
//姓名
AccountTypeStr
=
base
.
ParmJObj
.
GetStringValue
(
"AccountTypeStr"
),
//人员类型【逗号分割】
AccountTypeStr
=
base
.
ParmJObj
.
GetStringValue
(
"AccountTypeStr"
),
//人员类型【逗号分割】
IsLeave
=
base
.
ParmJObj
.
GetInt
(
"IsLeave"
),
IsLeave
=
base
.
ParmJObj
.
GetInt
(
"IsLeave"
),
UserRole
=
(
UserRoleEnum
)
base
.
ParmJObj
.
GetInt
(
"UserRole"
),
};
};
query
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
query
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
var
list
=
employeeModule
.
GetEmployeeListModule
(
query
);
var
list
=
employeeModule
.
GetEmployeeListModule
(
query
);
...
...
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