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
ab284459
Commit
ab284459
authored
Oct 20, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
88cf656f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
RB_Goods_Extend.cs
Mall.Model/Extend/Product/RB_Goods_Extend.cs
+23
-0
RB_GoodsRepository.cs
Mall.Repository/Product/RB_GoodsRepository.cs
+22
-0
No files found.
Mall.Model/Extend/Product/RB_Goods_Extend.cs
View file @
ab284459
...
...
@@ -443,6 +443,11 @@ namespace Mall.Model.Extend.Product
/// </summary>
public
string
ClassTime
{
get
;
set
;
}
/// <summary>
/// 上课时间详情
/// </summary>
public
List
<
CourseTimeItem
>
ClassTimeList
{
get
;
set
;
}
/// <summary>
/// 开班日期
/// </summary>
...
...
@@ -483,4 +488,22 @@ namespace Mall.Model.Extend.Product
/// </summary>
public
decimal
BookPrice
{
get
;
set
;
}
}
public
class
CourseTimeItem
{
/// <summary>
/// 上课时间
/// </summary>
public
string
TimeStr
{
get
;
set
;
}
/// <summary>
/// 日期
/// </summary>
public
List
<
string
>
DateList
{
get
;
set
;
}
/// <summary>
/// 类型(周,固定的日期)
/// </summary>
public
string
TypeStr
{
get
;
set
;
}
}
}
Mall.Repository/Product/RB_GoodsRepository.cs
View file @
ab284459
...
...
@@ -699,6 +699,28 @@ WHERE {where} group by g.Id order by g.CreateDate desc";
jsonItem
.
TeacherInfo
=
jObj
.
GetStringValue
(
"TeacherInfo"
);
jsonItem
.
EndOrderTime
=
jObj
.
GetStringValue
(
"EndOrderTime"
);
jsonItem
.
BookPrice
=
jObj
.
GetDecimal
(
"BookPrice"
);
jsonItem
.
ClassTimeList
=
new
List
<
CourseTimeItem
>();
var
tempArray
=
JArray
.
Parse
(
jObj
.
GetStringValue
(
"ClassTimeList"
));
try
{
if
(
tempArray
!=
null
&&
tempArray
.
Count
>
0
)
{
foreach
(
var
tItem
in
tempArray
)
{
JObject
subObj
=
JObject
.
Parse
(
JsonHelper
.
Serialize
(
tItem
));
jsonItem
.
ClassTimeList
.
Add
(
new
CourseTimeItem
()
{
TypeStr
=
subObj
.
GetStringValue
(
"TypeStr"
),
TimeStr
=
subObj
.
GetStringValue
(
"TimeStr"
),
DateList
=
JsonHelper
.
DeserializeObject
<
List
<
string
>>(
subObj
.
GetStringValue
(
"DateList"
)),
});
}
}
}
catch
{
}
}
}
catch
...
...
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