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
33451a62
Commit
33451a62
authored
Aug 12, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微店价格配置
parent
4fc29488
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
473 additions
and
2 deletions
+473
-2
RB_SmallShops_Price_Extend.cs
Mall.Model/Extend/User/RB_SmallShops_Price_Extend.cs
+8
-0
ProductModule.cs
Mall.Module.Product/ProductModule.cs
+1
-2
SmallShopsModule.cs
Mall.Module.User/SmallShopsModule.cs
+422
-0
RB_SmallShops_PriceRepository.cs
Mall.Repository/User/RB_SmallShops_PriceRepository.cs
+40
-0
ProductController.cs
Mall.WebApi/Controllers/Product/ProductController.cs
+2
-0
No files found.
Mall.Model/Extend/User/RB_SmallShops_Price_Extend.cs
View file @
33451a62
...
...
@@ -18,5 +18,13 @@ namespace Mall.Model.Extend.User
/// 微店ids
/// </summary>
public
string
SmallShopsIds
{
get
;
set
;
}
/// <summary>
/// 商品ids
/// </summary>
public
string
GoodsIds
{
get
;
set
;
}
/// <summary>
/// 商品名称
/// </summary>
public
string
GoodsName
{
get
;
set
;
}
}
}
Mall.Module.Product/ProductModule.cs
View file @
33451a62
...
...
@@ -1089,7 +1089,6 @@ namespace Mall.Module.Product
List
<
string
>
CarouselIdList
=
JsonConvert
.
DeserializeObject
<
List
<
string
>>(
model
.
CarouselImage
);
//封面图
model
.
CoverImage
=
CarouselIdList
[
0
];
//轮播图
}
}
//小程序名称
...
...
@@ -1765,7 +1764,7 @@ namespace Mall.Module.Product
var
fxmodel
=
distributor_FXGradeRepository
.
GetEntity
(
model
.
PresentFXGrade
);
if
(
fxmodel
!=
null
)
{
PresentFXGradeMsg
=
"购买后赠送"
+
fxmodel
.
GradeName
+
"
会员
"
;
PresentFXGradeMsg
=
"购买后赠送"
+
fxmodel
.
GradeName
+
"
"
;
if
(
model
.
PresentFXMonth
>
0
)
{
PresentFXGradeMsg
+=
(
model
.
PresentFXMonth
??
0
)
+
"个月"
;
...
...
Mall.Module.User/SmallShopsModule.cs
View file @
33451a62
This diff is collapsed.
Click to expand it.
Mall.Repository/User/RB_SmallShops_PriceRepository.cs
View file @
33451a62
...
...
@@ -36,11 +36,51 @@ namespace Mall.Repository.User
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
SmallShopsIds
))
{
where
+=
$@" and di.
{
nameof
(
RB_SmallShops_Price_Extend
.
SmallShopsId
)}
in(
{
dmodel
.
SmallShopsIds
}
)"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
GoodsIds
))
{
where
+=
$@" and di.
{
nameof
(
RB_SmallShops_Price_Extend
.
GoodsId
)}
in(
{
dmodel
.
GoodsIds
}
)"
;
}
string
sql
=
$@"select di.* from RB_SmallShops_Price_Extend di
where
{
where
}
order by di.Id desc"
;
return
Get
<
RB_SmallShops_Price_Extend
>(
sql
).
ToList
();
}
/// <summary>
/// 获取微店商品价格列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="count"></param>
/// <param name="demodel"></param>
/// <returns></returns>
public
List
<
RB_SmallShops_Price_Extend
>
GetSmallShopsGoodsPricePageList
(
int
pageIndex
,
int
pageSize
,
out
long
count
,
RB_SmallShops_Price_Extend
demodel
)
{
string
where
=
$@" 1=1 and sp.Status=0"
;
if
(
demodel
.
TenantId
>
0
)
{
where
+=
$@" and sp.
{
nameof
(
RB_SmallShops_Price_Extend
.
TenantId
)}
=
{
demodel
.
TenantId
}
"
;
}
if
(
demodel
.
MallBaseId
>
0
)
{
where
+=
$@" and sp.
{
nameof
(
RB_SmallShops_Price_Extend
.
MallBaseId
)}
=
{
demodel
.
MallBaseId
}
"
;
}
if
(
demodel
.
GoodsId
>
0
)
{
where
+=
$@" and sp.
{
nameof
(
RB_SmallShops_Price_Extend
.
GoodsId
)}
=
{
demodel
.
GoodsId
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
demodel
.
GoodsName
))
{
where
+=
$@" and g.
{
nameof
(
Model
.
Entity
.
Product
.
RB_Goods
.
Name
)}
like '%
{
demodel
.
GoodsName
}
%'"
;
}
string
sql
=
$@"
SELECT sp.GoodsId FROM rb_smallshops_price sp
INNER JOIN rb_goods g on sp.GoodsId=g.Id
{
where
}
GROUP BY sp.GoodsId ORDER BY sp.CreateDate DESC
"
;
return
GetPage
<
RB_SmallShops_Price_Extend
>(
pageIndex
,
pageSize
,
out
count
,
sql
).
ToList
();
}
}
}
Mall.WebApi/Controllers/Product/ProductController.cs
View file @
33451a62
...
...
@@ -1348,6 +1348,8 @@ namespace Mall.WebApi.Controllers.MallBase
new
ExcelColumn
(
value
:(
item
.
IsSellWell
??
0
).
ToString
()){
},
new
ExcelColumn
(
value
:(
item
.
IsGoodsNegotiable
??
0
).
ToString
()){
},
}
,
ColumnHight
=
30
};
slist
.
Add
(
datarow
);
}
...
...
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