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
86e5dac1
Commit
86e5dac1
authored
Feb 01, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
属性接口调整
parent
cba31319
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
RB_Goods_Specification.cs
Mall.Model/Entity/Product/RB_Goods_Specification.cs
+4
-5
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+0
-1
ProductModule.cs
Mall.Module.Product/ProductModule.cs
+3
-2
No files found.
Mall.Model/Entity/Product/RB_Goods_Specification.cs
View file @
86e5dac1
using
VT.FW.DB
;
using
Mall.Common.Enum.User
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System
;
using
VT.FW.DB
;
namespace
Mall.Model.Entity.Product
{
...
...
@@ -59,6 +56,8 @@ namespace Mall.Model.Entity.Product
/// 默认0,1-是,是日期格式,方便后面转换成日期
/// </summary>
public
int
IsDateFormat
{
get
;
set
;
}
/// <summary>
/// Status
/// </summary>
...
...
Mall.Module.Product/OrderModule.cs
View file @
86e5dac1
...
...
@@ -1956,7 +1956,6 @@ namespace Mall.Module.Product
#
region
获取商品的自定义表单
if
(
gList
!=
null
&&
gList
.
Any
())
{
string
formsIds
=
string
.
Join
(
","
,
gList
.
Where
(
x
=>
x
.
FormsId
>
1
).
Select
(
x
=>
x
.
FormsId
));
if
(!
string
.
IsNullOrWhiteSpace
(
formsIds
))
{
...
...
Mall.Module.Product/ProductModule.cs
View file @
86e5dac1
...
...
@@ -2528,6 +2528,7 @@ namespace Mall.Module.Product
EduTeacherId
=
model
?.
EduTeacherId
??
0
,
attr_groups
=
model
.
SpecificationList
.
Select
(
x
=>
new
{
isdateformat
=
x
.
IsDateFormat
,
attr_group_id
=
x
.
Sort
,
attr_group_name
=
x
.
Name
,
//购买次数(进阶小课堂使用)
...
...
@@ -2539,6 +2540,7 @@ namespace Mall.Module.Product
pic_url
=
z
.
ImagePath
})
}),
attr
=
priceList
,
goodsRelevanceList
=
goodsRelevanceList
?.
Select
(
qitem
=>
new
{
qitem
.
RelevanceId
,
...
...
@@ -2584,7 +2586,6 @@ namespace Mall.Module.Product
area_type
=
x
.
AreaType
})
}
},
form_id
=
model
.
FormsId
,
//form_data_json= new { formData = !string.IsNullOrWhiteSpace(customFormModel.FormData)?JsonConvert.DeserializeObject<List<Model.Extend.TradePavilion.FormDataItem>>(customFormModel.FormData):new List<Model.Extend.TradePavilion.FormDataItem>(), formType=customFormModel.FormType },
sales
=
(
model
.
SalesNum
??
0
)
+
payment_num
,
//已售出数量 + 订单商品数量//
name
=
model
.
Name
,
subname
=
model
?.
SubName
??
""
,
...
...
@@ -2596,7 +2597,7 @@ namespace Mall.Module.Product
video_url
=
model
?.
VideoAddress
??
""
,
level_show
=
(
userModel
?.
MemberGrade
??
0
)
>
0
?
1
:
2
,
//是否显示会员价
is_sales
=
model
.
GoodsStatus
==
1
&&
model
.
InventoryNum
>
0
?
1
:
2
,
//是否可购买
attr
=
priceList
,
//goods_num = model.InventoryNum,
goods_no
=
model
.
GoodsNumbers
,
goods_weight
=
model
.
GoodsWeight
,
...
...
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