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
07fa2ef9
Commit
07fa2ef9
authored
Feb 10, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
e815835f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
1 deletion
+30
-1
RB_Course_ViewModel.cs
Edu.Model/ViewModel/Course/RB_Course_ViewModel.cs
+4
-0
RB_CourseRepository.cs
Edu.Repository/Course/RB_CourseRepository.cs
+5
-0
CourseController.cs
Edu.WebApi/Controllers/Course/CourseController.cs
+2
-1
B2BCustomerController.cs
Edu.WebApi/Controllers/Customer/B2BCustomerController.cs
+19
-0
No files found.
Edu.Model/ViewModel/Course/RB_Course_ViewModel.cs
View file @
07fa2ef9
...
...
@@ -189,5 +189,9 @@ namespace Edu.Model.ViewModel.Course
#
endregion
/// <summary>
/// 是否查询有上架(1-是)
/// </summary>
public
int
IsQuerySalePlat
{
get
;
set
;
}
}
}
\ No newline at end of file
Edu.Repository/Course/RB_CourseRepository.cs
View file @
07fa2ef9
...
...
@@ -78,6 +78,11 @@ WHERE 1=1
builder
.
AppendFormat
(
" AND ({0}) "
,
str
);
}
}
//查询有上架的
if
(
query
.
IsQuerySalePlat
==
1
)
{
builder
.
AppendFormat
(
" AND IFNULL(A.Saleplat,'')<>'' "
);
}
//所属科目
if
(
query
.
CourseSubject
>
0
)
{
...
...
Edu.WebApi/Controllers/Course/CourseController.cs
View file @
07fa2ef9
...
...
@@ -350,8 +350,9 @@ namespace Edu.WebApi.Controllers.Course
{
IsQPrice
=
base
.
ParmJObj
.
GetInt
(
"IsQPrice"
,
0
),
CourseSubject
=
base
.
ParmJObj
.
GetInt
(
"CourseSubject"
),
IsQuerySalePlat
=
base
.
ParmJObj
.
GetInt
(
"IsQuerySalePlat"
),
};
query
.
Saleplat
=
"1,2,3,4"
;
query
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
query
.
School_Id
=
base
.
UserInfo
.
School_Id
;
var
list
=
courseModule
.
GetCourseListModule
(
query
);
...
...
Edu.WebApi/Controllers/Customer/B2BCustomerController.cs
View file @
07fa2ef9
...
...
@@ -132,6 +132,25 @@ namespace Edu.WebApi.Controllers.Customer
return
ApiResult
.
Failed
(
"手机号码、QQ号码、微信号码至少填写一项!"
);
}
var
categoryModel
=
new
RB_Customer_Category_Extend
()
{
CategoryId
=
0
,
CatetoryType
=
(
CatetoryTypeEnum
)
base
.
ParmJObj
.
GetInt
(
"CustomerType"
),
CategoryName
=
base
.
ParmJObj
.
GetStringValue
(
"CategoryName"
),
Status
=
Common
.
Enum
.
DateStateEnum
.
Normal
,
Group_Id
=
base
.
UserInfo
.
Group_Id
,
CreateBy
=
base
.
UserInfo
.
Id
,
CreateTime
=
DateTime
.
Now
,
UpdateBy
=
base
.
UserInfo
.
Id
,
UpdateTime
=
DateTime
.
Now
,
School_Id
=
base
.
UserInfo
.
School_Id
,
};
if
(!
string
.
IsNullOrEmpty
(
categoryModel
.
CategoryName
))
{
bool
cflag
=
customerModule
.
SetCustomerCategoryModule
(
categoryModel
);
model
.
CategoryId
=
categoryModel
.
CategoryId
;
}
model
.
Status
=
Common
.
Enum
.
DateStateEnum
.
Normal
;
model
.
CreateBy
=
base
.
UserInfo
.
Id
;
model
.
CreateTime
=
DateTime
.
Now
;
...
...
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