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
23c97c57
Commit
23c97c57
authored
Oct 29, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
6bce9490
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
253 additions
and
23 deletions
+253
-23
RB_Miniprogram_Template_Extend.cs
.../Extend/MarketingCenter/RB_Miniprogram_Template_Extend.cs
+6
-1
ProductModule.cs
Mall.Module.Product/ProductModule.cs
+43
-0
RB_GoodsRepository.cs
Mall.Repository/Product/RB_GoodsRepository.cs
+156
-9
MallHelper.cs
Mall.WebApi/Controllers/Mall/MallHelper.cs
+21
-13
ProductController.cs
Mall.WebApi/Controllers/Product/ProductController.cs
+27
-0
No files found.
Mall.Model/Extend/MarketingCenter/RB_Miniprogram_Template_Extend.cs
View file @
23c97c57
...
...
@@ -2665,7 +2665,7 @@ namespace Mall.Model.Extend.MarketingCenter
/// <summary>
/// 商品列表
/// </summary>
public
List
<
GoodsDetailsItem2
>
goodsList
{
get
;
set
;
}
public
List
<
Store
GoodsDetailsItem2
>
goodsList
{
get
;
set
;
}
}
/// <summary>
...
...
@@ -2699,6 +2699,11 @@ namespace Mall.Model.Extend.MarketingCenter
/// </summary>
public
decimal
OriginalPrice
{
get
;
set
;
}
/// <summary>
/// 是否选择服务人员(0-不选,1-选择)前端使用
/// </summary>
public
int
IsChooseServicePerson
{
get
;
set
;
}
/// <summary>
/// 课程评分 2020-10-13 ld
/// </summary>
...
...
Mall.Module.Product/ProductModule.cs
View file @
23c97c57
...
...
@@ -4945,6 +4945,49 @@ namespace Mall.Module.Product
return
list
;
}
/// <summary>
/// 获取下拉列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="count"></param>
/// <param name="demodel"></param>
/// <returns></returns>
public
List
<
RB_Goods_Extend
>
GetProductGoodsDialogList_V3
(
int
pageIndex
,
int
pageSize
,
out
long
count
,
RB_Goods_Extend
demodel
)
{
var
list
=
goodsRepository
.
GetProductGoodsDialogList_V3
(
pageIndex
,
pageSize
,
out
count
,
demodel
);
if
(
list
.
Any
())
{
//查询分类
string
ids
=
string
.
Join
(
","
,
list
.
Select
(
x
=>
x
.
Id
));
var
clist
=
goods_CategoryRepository
.
GetList
(
new
RB_Goods_Category_Extend
()
{
GoodsIds
=
ids
,
TenantId
=
demodel
.
TenantId
,
MallBaseId
=
demodel
.
MallBaseId
});
foreach
(
var
item
in
list
)
{
item
.
CategoryList
=
clist
.
Where
(
x
=>
x
.
GoodsId
==
item
.
Id
).
ToList
();
//轮播图
item
.
CoverImage
=
""
;
item
.
CarouselImageList
=
new
List
<
RB_ImageCommonModel
>();
if
(!
string
.
IsNullOrEmpty
(
item
.
CarouselImage
)
&&
item
.
CarouselImage
!=
"[]"
)
{
List
<
string
>
CarouselIdList
=
JsonConvert
.
DeserializeObject
<
List
<
string
>>(
item
.
CarouselImage
);
//封面图
item
.
CoverImage
=
CarouselIdList
[
0
];
//轮播图
//轮播图
foreach
(
var
qitem
in
CarouselIdList
)
{
item
.
CarouselImageList
.
Add
(
new
RB_ImageCommonModel
()
{
Id
=
0
,
Name
=
""
,
Path
=
qitem
});
}
}
}
}
return
list
;
}
/// <summary>
/// 获取后台商品分页列表
...
...
Mall.Repository/Product/RB_GoodsRepository.cs
View file @
23c97c57
...
...
@@ -25,7 +25,11 @@ namespace Mall.Repository.Product
public
List
<
RB_Goods_Extend
>
GetPageList
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_Goods_Extend
dmodel
,
bool
IsAllClassify
=
false
)
{
string
where
=
$" 1=1 and g.
{
nameof
(
RB_Goods_Extend
.
Status
)}
=0 "
;
if
(
dmodel
.
GoodsClassify
==
1
)
if
(
dmodel
.
GoodsClassify
==
3
)
{
//查询非司导商品
where
+=
$@" and g.GoodsClassify =3"
;
}
else
if
(
dmodel
.
GoodsClassify
==
1
)
{
//查询非司导商品
where
+=
$@" and g.GoodsClassify <> 1"
;
}
...
...
@@ -45,6 +49,10 @@ namespace Mall.Repository.Product
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
MallBaseId
)}
=
{
dmodel
.
MallBaseId
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
StoresIds
))
{
where
+=
$@" and locate('
{
dmodel
.
StoresIds
}
',g.
{
nameof
(
RB_Goods_Extend
.
StoresIds
)}
)"
;
}
if
(
dmodel
.
Id
>
0
)
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
Id
)}
=
{
dmodel
.
Id
}
"
;
...
...
@@ -275,6 +283,135 @@ where {where} group by g.Id order by {orderBy}";
return
GetPage
<
RB_Goods_Extend
>(
pageIndex
,
pageSize
,
out
rowCount
,
sql
).
ToList
();
}
/// <summary>
/// 获取列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowCount"></param>
/// <param name="dmodel"></param>
/// <returns></returns>
public
List
<
RB_Goods_Extend
>
GetProductGoodsDialogList_V3
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_Goods_Extend
dmodel
)
{
string
where
=
$" 1=1 and g.
{
nameof
(
RB_Goods_Extend
.
Status
)}
=0 "
;
where
+=
$@" and g.GoodsClassify =3"
;
//排除司导的
if
(
dmodel
.
TenantId
>
0
)
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
TenantId
)}
=
{
dmodel
.
TenantId
}
"
;
}
if
(
dmodel
.
NotTenantId
>
0
)
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
TenantId
)}
<>
{
dmodel
.
NotTenantId
}
"
;
}
if
(
dmodel
.
MallBaseId
>
0
)
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
MallBaseId
)}
=
{
dmodel
.
MallBaseId
}
"
;
}
if
(
dmodel
.
Id
>
0
)
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
Id
)}
=
{
dmodel
.
Id
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
GoodsIds
))
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
Id
)}
in(
{
dmodel
.
GoodsIds
}
)"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
Name
))
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
Name
)}
like '%
{
dmodel
.
Name
}
%'"
;
}
if
(
dmodel
.
GoodsStatus
>
0
)
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
GoodsStatus
)}
=
{
dmodel
.
GoodsStatus
}
"
;
}
if
(
dmodel
.
IsSelectSellOut
==
1
)
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
InventoryNum
)}
<=0"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
CategoryIds
))
{
where
+=
$@" and c.
{
nameof
(
RB_Goods_Category
.
CategoryId
)}
in(
{
dmodel
.
CategoryIds
}
)"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
StartTime
))
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
CreateDate
)}
>='
{
dmodel
.
StartTime
}
'"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
EndTime
))
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
CreateDate
)}
<='
{
dmodel
.
EndTime
+
" 23:59:59"
}
'"
;
}
if
(
dmodel
.
IsProcurement
>
0
)
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
IsProcurement
)}
=
{
dmodel
.
IsProcurement
}
"
;
}
if
(
dmodel
.
IsProxy
>
0
)
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
IsProxy
)}
=
{
dmodel
.
IsProxy
}
"
;
}
if
(
dmodel
.
SupplierId
>
0
)
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
SupplierId
)}
=
{
dmodel
.
SupplierId
}
"
;
}
if
(
dmodel
.
GoodsPageType
.
HasValue
)
{
if
(
dmodel
.
GoodsPageType
==
Common
.
Enum
.
Goods
.
GoodsPageTypeEnum
.
Mall
)
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
GoodsPageType
)}
in(0,1)"
;
}
else
if
(
dmodel
.
GoodsPageType
==
Common
.
Enum
.
Goods
.
GoodsPageTypeEnum
.
School
)
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
GoodsPageType
)}
in(0,2)"
;
}
}
string
orderBy
=
" g.CreateDate desc"
;
if
(
dmodel
.
OrderBy
==
1
)
{
//id升序
orderBy
=
" g.Id asc"
;
}
else
if
(
dmodel
.
OrderBy
==
2
)
{
//id降序
orderBy
=
" g.Id desc"
;
}
else
if
(
dmodel
.
OrderBy
==
3
)
{
//排序升序
orderBy
=
" g.Sort asc"
;
}
else
if
(
dmodel
.
OrderBy
==
4
)
{
//排序降序
orderBy
=
" g.Sort desc"
;
}
else
if
(
dmodel
.
OrderBy
==
5
)
{
//售价升序
orderBy
=
" g.SellingPrice asc"
;
}
else
if
(
dmodel
.
OrderBy
==
6
)
{
//售价降序
orderBy
=
" g.SellingPrice desc"
;
}
else
if
(
dmodel
.
OrderBy
==
7
)
{
//库存升序
orderBy
=
" g.InventoryNum asc"
;
}
else
if
(
dmodel
.
OrderBy
==
8
)
{
//库存降序
orderBy
=
" g.InventoryNum desc"
;
}
string
sql
=
$@"select g.Id,g.Name,g.CarouselImage,g.SellingPrice from RB_Goods g
inner join rb_goods_category c on g.Id=c.GoodsId
where
{
where
}
group by g.Id order by
{
orderBy
}
"
;
return
GetPage
<
RB_Goods_Extend
>(
pageIndex
,
pageSize
,
out
rowCount
,
sql
).
ToList
();
}
/// <summary>
/// 分页列表
/// </summary>
...
...
@@ -404,11 +541,16 @@ where {where} group by g.Id order by {orderBy}";
public
List
<
RB_Goods_Extend
>
GetList
(
RB_Goods_Extend
dmodel
)
{
string
where
=
$" 1=1 and g.
{
nameof
(
RB_Goods_Extend
.
Status
)}
=0 "
;
if
(
dmodel
.
GoodsClassify
==
1
)
//查询非司导
if
(
dmodel
.
GoodsClassify
==
3
)
//查询非司导
{
where
+=
$" and g.GoodsClassify = 3"
;
}
else
if
(
dmodel
.
GoodsClassify
==
1
)
//查询非司导
{
where
+=
$" and g.GoodsClassify <> 1"
;
}
else
{
else
{
where
+=
$" and g.GoodsClassify=0"
;
}
if
(
dmodel
.
TenantId
>
0
)
...
...
@@ -427,6 +569,10 @@ where {where} group by g.Id order by {orderBy}";
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
Id
)}
in(
{
dmodel
.
GoodsIds
}
)"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
StoresIds
))
{
where
+=
$@" and locate('
{
dmodel
.
StoresIds
}
',g.
{
nameof
(
RB_Goods_Extend
.
StoresIds
)}
)"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
Name
))
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
Name
)}
like '%
{
dmodel
.
Name
}
%'"
;
...
...
@@ -674,7 +820,8 @@ WHERE {where} group by g.Id order by g.CreateDate desc";
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
Id
)}
in(
{
dmodel
.
GoodsIds
}
)"
;
}
if
(
dmodel
.
NoGoodsId
>
0
)
{
if
(
dmodel
.
NoGoodsId
>
0
)
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
Id
)}
<>
{
dmodel
.
NoGoodsId
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
SupplierIds
))
...
...
@@ -901,7 +1048,7 @@ where {where} group by g.Id order by col.Id desc";
/// <param name="rowCount">总条数</param>
/// <param name="dmodel">查询条件</param>
/// <returns></returns>
public
List
<
RB_Goods_Extend
>
GetPageListForCommission
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_Goods_Extend
dmodel
,
int
GoodsClassify
)
public
List
<
RB_Goods_Extend
>
GetPageListForCommission
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_Goods_Extend
dmodel
,
int
GoodsClassify
)
{
string
where
=
$" 1=1 and g.
{
nameof
(
RB_Goods_Extend
.
Status
)}
=0 and g.GoodsClassify=
{
GoodsClassify
}
"
;
if
(
dmodel
.
TenantId
>
0
)
...
...
@@ -1160,7 +1307,7 @@ WHERE {where} group by g.Id order by g.CreateDate desc";
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
CarType
)}
=
{(
int
)
dmodel
.
CarType
}
"
;
if
(
dmodel
.
CarType
==
Common
.
Enum
.
Goods
.
GuideCarGoodsTypeEnum
.
Line
)
{
if
(
dmodel
.
IsSpell
==
1
)
if
(
dmodel
.
IsSpell
==
1
)
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
IsSpell
)}
=
{
dmodel
.
IsSpell
}
"
;
}
...
...
Mall.WebApi/Controllers/Mall/MallHelper.cs
View file @
23c97c57
...
...
@@ -88,7 +88,7 @@ namespace Mall.WebApi.Controllers
/// </summary>
/// <param name="item"></param>
/// <returns></returns>
public
static
object
PlusDataToObject
(
ComponentItem
subItem
,
int
TenantId
,
int
MallBaseId
,
int
SmallShopsId
,
int
IsOpenSchool
)
public
static
object
PlusDataToObject
(
ComponentItem
subItem
,
int
TenantId
,
int
MallBaseId
,
int
SmallShopsId
,
int
IsOpenSchool
,
int
StoreId
)
{
var
obj
=
new
object
();
switch
(
subItem
.
Id
)
...
...
@@ -855,13 +855,14 @@ namespace Mall.WebApi.Controllers
GoodsIds
=
Ids
,
GoodsStatus
=
1
,
GoodsClassify
=
3
,
//查询非司导
GoodsPageType
=
IsOpenSchool
==
1
?
Common
.
Enum
.
Goods
.
GoodsPageTypeEnum
.
School
:
Common
.
Enum
.
Goods
.
GoodsPageTypeEnum
.
Mall
StoresIds
=
StoreId
.
ToString
()
// GoodsPageType = IsOpenSchool == 1 ? Common.Enum.Goods.GoodsPageTypeEnum.School : Common.Enum.Goods.GoodsPageTypeEnum.Mall
},
SmallShopsId
:
SmallShopsId
);
List
<
GoodsDetailsItem2
>
newGoodsList
=
new
List
<
GoodsDetailsItem2
>();
List
<
StoreGoodsDetailsItem2
>
newGoodsList
=
new
List
<
Store
GoodsDetailsItem2
>();
foreach
(
var
goodItem
in
childItem
.
goodsList
)
{
var
lastItem
=
new
GoodsDetailsItem2
();
var
lastItem
=
new
Store
GoodsDetailsItem2
();
var
tempGood
=
tempGoodsList
?.
Where
(
qitem
=>
qitem
.
Id
==
goodItem
.
id
)?.
FirstOrDefault
();
if
(
tempGood
!=
null
&&
tempGood
.
Id
>
0
)
{
...
...
@@ -871,6 +872,7 @@ namespace Mall.WebApi.Controllers
lastItem
.
picUrl
=
tempGood
?.
CoverImage
!=
null
?
Common
.
Config
.
GetFileUrl
(
tempGood
.
CoverImage
)
:
""
;
lastItem
.
OriginalPrice
=
Math
.
Round
((
tempGood
?.
OriginalPrice
??
0
),
2
);
lastItem
.
courseScore
=
(
tempGood
.
CourseScore
??
0
);
lastItem
.
IsChooseServicePerson
=
tempGood
.
IsChooseServicePerson
;
newGoodsList
.
Add
(
lastItem
);
}
}
...
...
@@ -880,7 +882,7 @@ namespace Mall.WebApi.Controllers
//自动添加商品
else
{
childItem
.
goodsList
=
new
List
<
GoodsDetailsItem2
>();
childItem
.
goodsList
=
new
List
<
Store
GoodsDetailsItem2
>();
var
catGoodsList
=
productModule
.
GetProductGoodsPageList_V2
(
1
,
childItem
.
goodsNum
,
out
long
rowsCount
,
new
Model
.
Extend
.
Product
.
RB_Goods_Extend
()
{
TenantId
=
TenantId
,
...
...
@@ -888,20 +890,22 @@ namespace Mall.WebApi.Controllers
CategoryIds
=
childItem
.
id
.
ToString
(),
GoodsStatus
=
1
,
GoodsClassify
=
3
,
//查询非司导
GoodsPageType
=
IsOpenSchool
==
1
?
Common
.
Enum
.
Goods
.
GoodsPageTypeEnum
.
School
:
Common
.
Enum
.
Goods
.
GoodsPageTypeEnum
.
Mall
StoresIds
=
StoreId
.
ToString
()
// GoodsPageType = IsOpenSchool == 1 ? Common.Enum.Goods.GoodsPageTypeEnum.School : Common.Enum.Goods.GoodsPageTypeEnum.Mall
},
SmallShopsId
:
SmallShopsId
);
if
(
catGoodsList
!=
null
&&
catGoodsList
.
Count
>
0
)
{
foreach
(
var
gItem
in
catGoodsList
)
{
childItem
.
goodsList
.
Add
(
new
GoodsDetailsItem2
()
childItem
.
goodsList
.
Add
(
new
Store
GoodsDetailsItem2
()
{
id
=
gItem
.
Id
,
price
=
Math
.
Round
((
gItem
?.
SellingPrice
??
0
),
2
),
name
=
gItem
.
Name
,
picUrl
=
Common
.
Config
.
GetFileUrl
(
gItem
.
CoverImage
),
OriginalPrice
=
Math
.
Round
((
gItem
?.
OriginalPrice
??
0
),
2
),
courseScore
=
gItem
.
CourseScore
??
0
courseScore
=
gItem
.
CourseScore
??
0
,
IsChooseServicePerson
=
gItem
.
IsChooseServicePerson
});
}
}
...
...
@@ -921,8 +925,9 @@ namespace Mall.WebApi.Controllers
TenantId
=
TenantId
,
MallBaseId
=
MallBaseId
,
GoodsStatus
=
1
,
GoodsClassify
=
3
,
//查询非司导
GoodsPageType
=
IsOpenSchool
==
1
?
Common
.
Enum
.
Goods
.
GoodsPageTypeEnum
.
School
:
Common
.
Enum
.
Goods
.
GoodsPageTypeEnum
.
Mall
GoodsClassify
=
3
,
//查询非司导
StoresIds
=
StoreId
.
ToString
()
// GoodsPageType = IsOpenSchool == 1 ? Common.Enum.Goods.GoodsPageTypeEnum.School : Common.Enum.Goods.GoodsPageTypeEnum.Mall
});
#
region
微店价格
RB_SmallShops_Info_Extend
smallModel
=
new
RB_SmallShops_Info_Extend
();
...
...
@@ -1027,7 +1032,8 @@ namespace Mall.WebApi.Controllers
name
=
gItem
.
Name
,
picUrl
=
Common
.
Config
.
GetFileUrl
(
gItem
.
CoverImage
),
OriginalPrice
=
Math
.
Round
((
gItem
?.
OriginalPrice
??
0
),
2
),
courseScore
=
gItem
.
CourseScore
??
0
courseScore
=
gItem
.
CourseScore
??
0
,
IsChooseServicePerson
=
gItem
.
IsChooseServicePerson
});
}
}
...
...
@@ -1045,7 +1051,8 @@ namespace Mall.WebApi.Controllers
GoodsIds
=
Ids
,
GoodsStatus
=
1
,
GoodsClassify
=
3
,
//查询非司导
GoodsPageType
=
IsOpenSchool
==
1
?
Common
.
Enum
.
Goods
.
GoodsPageTypeEnum
.
School
:
Common
.
Enum
.
Goods
.
GoodsPageTypeEnum
.
Mall
StoresIds
=
StoreId
.
ToString
()
// GoodsPageType = IsOpenSchool == 1 ? Common.Enum.Goods.GoodsPageTypeEnum.School : Common.Enum.Goods.GoodsPageTypeEnum.Mall
});
#
region
微店价格
RB_SmallShops_Info_Extend
smallModel
=
new
RB_SmallShops_Info_Extend
();
...
...
@@ -1152,6 +1159,7 @@ namespace Mall.WebApi.Controllers
childItem
.
picUrl
=
tempGood
?.
CoverImage
!=
null
?
Common
.
Config
.
GetFileUrl
(
tempGood
.
CoverImage
)
:
""
;
childItem
.
OriginalPrice
=
Math
.
Round
((
tempGood
?.
OriginalPrice
??
0
),
2
);
childItem
.
courseScore
=
(
tempGood
.
CourseScore
??
0
);
childItem
.
IsChooseServicePerson
=
tempGood
.
IsChooseServicePerson
;
newGoodsList
.
Add
(
childItem
);
}
}
...
...
Mall.WebApi/Controllers/Product/ProductController.cs
View file @
23c97c57
...
...
@@ -1472,6 +1472,33 @@ namespace Mall.WebApi.Controllers.MallBase
}
/// <summary>
/// 获取商品列表
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetProductGoodsDialogList_V3
()
{
var
parms
=
RequestParm
;
ResultPageModel
pagelist
=
JsonConvert
.
DeserializeObject
<
ResultPageModel
>(
parms
.
msg
.
ToString
());
RB_Goods_Extend
demodel
=
JsonConvert
.
DeserializeObject
<
RB_Goods_Extend
>(
parms
.
msg
.
ToString
());
demodel
.
TenantId
=
parms
.
TenantId
;
demodel
.
MallBaseId
=
parms
.
MallBaseId
;
var
list
=
productModule
.
GetProductGoodsDialogList_V3
(
pagelist
.
pageIndex
,
pagelist
.
pageSize
,
out
long
count
,
demodel
);
pagelist
.
count
=
Convert
.
ToInt32
(
count
);
pagelist
.
pageData
=
list
.
Select
(
x
=>
new
{
x
.
Id
,
x
.
Name
,
x
.
CoverImage
,
x
.
CarouselImageList
,
x
.
SellingPrice
,
CategoryList
=
x
.
CategoryList
.
Select
(
y
=>
new
{
y
.
Id
,
y
.
CategoryName
})
});
return
ApiResult
.
Success
(
""
,
pagelist
);
}
/// <summary>
/// 获取商品列表
/// </summary>
...
...
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