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
638eed58
Commit
638eed58
authored
Aug 10, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交商品新增营销标识字段
parent
a5d91c0b
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
3 deletions
+20
-3
RB_Goods.cs
Mall.Model/Entity/Product/RB_Goods.cs
+6
-0
RB_Goods_ShoppingCart_Extend.cs
Mall.Model/Extend/Product/RB_Goods_ShoppingCart_Extend.cs
+5
-0
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+1
-0
ProductModule.cs
Mall.Module.Product/ProductModule.cs
+2
-0
RB_Goods_ShoppingCartRepository.cs
Mall.Repository/Product/RB_Goods_ShoppingCartRepository.cs
+1
-1
AppletGoodsController.cs
Mall.WebApi/Controllers/Product/AppletGoodsController.cs
+2
-1
AppletOrderController.cs
Mall.WebApi/Controllers/Product/AppletOrderController.cs
+1
-0
ProductController.cs
Mall.WebApi/Controllers/Product/ProductController.cs
+2
-1
No files found.
Mall.Model/Entity/Product/RB_Goods.cs
View file @
638eed58
...
@@ -434,5 +434,11 @@ namespace Mall.Model.Entity.Product
...
@@ -434,5 +434,11 @@ namespace Mall.Model.Entity.Product
/// 副标题
/// 副标题
/// </summary>
/// </summary>
public
string
SubName
{
get
;
set
;
}
public
string
SubName
{
get
;
set
;
}
/// <summary>
/// 营销标识(文字+文字颜色+文字背景/ 图标)
/// </summary>
public
string
MarketingLogo
{
get
;
set
;
}
}
}
}
}
Mall.Model/Extend/Product/RB_Goods_ShoppingCart_Extend.cs
View file @
638eed58
...
@@ -94,5 +94,10 @@ namespace Mall.Model.Extend.Product
...
@@ -94,5 +94,10 @@ namespace Mall.Model.Extend.Product
get
;
get
;
set
;
set
;
}
}
/// <summary>
/// 营销标识
/// </summary>
public
string
MarketingLogo
{
get
;
set
;
}
}
}
}
}
Mall.Module.Product/OrderModule.cs
View file @
638eed58
...
@@ -1997,6 +1997,7 @@ namespace Mall.Module.Product
...
@@ -1997,6 +1997,7 @@ namespace Mall.Module.Product
sign
=
""
,
sign
=
""
,
confine_order_count
=
gmodel
.
LimitBuyOrderNum
,
//限制订单数量
confine_order_count
=
gmodel
.
LimitBuyOrderNum
,
//限制订单数量
form_id
=
gmodel
.
FormsId
,
//表单id
form_id
=
gmodel
.
FormsId
,
//表单id
marketingLogo
=
gmodel
.
MarketingLogo
//goodsWarehouse = new
//goodsWarehouse = new
//{
//{
// id = 19813,
// id = 19813,
...
...
Mall.Module.Product/ProductModule.cs
View file @
638eed58
...
@@ -2008,6 +2008,7 @@ namespace Mall.Module.Product
...
@@ -2008,6 +2008,7 @@ namespace Mall.Module.Product
fullMoneyPinkage
=
model
.
FreeShippingModel
.
FullMoneyPinkage
??
0
,
fullMoneyPinkage
=
model
.
FreeShippingModel
.
FullMoneyPinkage
??
0
,
fullNumPinkage
=
model
.
FreeShippingModel
.
FullNumPinkage
??
0
,
fullNumPinkage
=
model
.
FreeShippingModel
.
FullNumPinkage
??
0
,
freeShippingUrl
=
model
.
FreeShippingModel
.
FreeShippingUrl
,
freeShippingUrl
=
model
.
FreeShippingModel
.
FreeShippingUrl
,
marketingLogo
=
model
.
MarketingLogo
,
cats
=
model
.
CategoryList
.
Select
(
x
=>
new
cats
=
model
.
CategoryList
.
Select
(
x
=>
new
{
{
x
.
CategoryId
,
x
.
CategoryId
,
...
@@ -3840,6 +3841,7 @@ namespace Mall.Module.Product
...
@@ -3840,6 +3841,7 @@ namespace Mall.Module.Product
{
nameof
(
RB_Goods
.
PresentFXMonth
),
demodel
.
PresentFXMonth
},
{
nameof
(
RB_Goods
.
PresentFXMonth
),
demodel
.
PresentFXMonth
},
{
nameof
(
RB_Goods
.
Advertising
),
demodel
.
Advertising
},
{
nameof
(
RB_Goods
.
Advertising
),
demodel
.
Advertising
},
{
nameof
(
RB_Goods
.
SubName
),
demodel
.
SubName
},
{
nameof
(
RB_Goods
.
SubName
),
demodel
.
SubName
},
{
nameof
(
RB_Goods
.
MarketingLogo
),
demodel
.
MarketingLogo
},
};
};
if
(
goodsModel
.
IsProcurement
==
1
)
if
(
goodsModel
.
IsProcurement
==
1
)
{
{
...
...
Mall.Repository/Product/RB_Goods_ShoppingCartRepository.cs
View file @
638eed58
...
@@ -45,7 +45,7 @@ namespace Mall.Repository.Product
...
@@ -45,7 +45,7 @@ namespace Mall.Repository.Product
}
}
string
sql
=
$@"select sc.*,g.Name as GoodsName,g.GoodsStatus,g.CarouselImage,g.SellingPrice as Price,g.IsCustomSpecification,g.DefaultSpecificationName,
string
sql
=
$@"select sc.*,g.Name as GoodsName,g.GoodsStatus,g.CarouselImage,g.SellingPrice as Price,g.IsCustomSpecification,g.DefaultSpecificationName,
g.EnjoyMember,g.SeparateSetMember,g.InventoryNum,g.FullNumPinkage,g.FullMoneyPinkage from RB_Goods_ShoppingCart sc
g.EnjoyMember,g.SeparateSetMember,g.InventoryNum,g.FullNumPinkage,g.FullMoneyPinkage
,g.MarketingLogo
from RB_Goods_ShoppingCart sc
inner join RB_Goods g on sc.GoodsId=g.Id
inner join RB_Goods g on sc.GoodsId=g.Id
where
{
where
}
order by g.GoodsStatus asc,sc.CreateDate desc"
;
where
{
where
}
order by g.GoodsStatus asc,sc.CreateDate desc"
;
return
GetPage
<
RB_Goods_ShoppingCart_Extend
>(
pageIndex
,
pageSize
,
out
rowCount
,
sql
).
ToList
();
return
GetPage
<
RB_Goods_ShoppingCart_Extend
>(
pageIndex
,
pageSize
,
out
rowCount
,
sql
).
ToList
();
...
...
Mall.WebApi/Controllers/Product/AppletGoodsController.cs
View file @
638eed58
...
@@ -343,7 +343,8 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -343,7 +343,8 @@ namespace Mall.WebApi.Controllers.MallBase
}),
}),
attr
=
priceList
,
attr
=
priceList
,
goods_stock
=
model
.
InventoryNum
,
goods_stock
=
model
.
InventoryNum
,
goods_num
=
model
.
InventoryNum
goods_num
=
model
.
InventoryNum
,
marketingLogo
=
model
.
MarketingLogo
});
});
}
}
}
}
...
...
Mall.WebApi/Controllers/Product/AppletOrderController.cs
View file @
638eed58
...
@@ -68,6 +68,7 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -68,6 +68,7 @@ namespace Mall.WebApi.Controllers.MallBase
FreeShippingFullMoneyPinkage
=
x
.
FreeShippingModel
.
FullMoneyPinkage
??
0
,
FreeShippingFullMoneyPinkage
=
x
.
FreeShippingModel
.
FullMoneyPinkage
??
0
,
FreeShippingFullNumPinkage
=
x
.
FreeShippingModel
.
FullNumPinkage
??
0
,
FreeShippingFullNumPinkage
=
x
.
FreeShippingModel
.
FullNumPinkage
??
0
,
x
.
FreeShippingModel
.
FreeShippingUrl
,
x
.
FreeShippingModel
.
FreeShippingUrl
,
x
.
MarketingLogo
});
});
List
<
object
>
robj
=
new
List
<
object
>()
{
List
<
object
>
robj
=
new
List
<
object
>()
{
new
{
new
{
...
...
Mall.WebApi/Controllers/Product/ProductController.cs
View file @
638eed58
...
@@ -1546,7 +1546,8 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -1546,7 +1546,8 @@ namespace Mall.WebApi.Controllers.MallBase
model
.
PresentFXGrade
,
model
.
PresentFXGrade
,
model
.
PresentFXMonth
,
model
.
PresentFXMonth
,
model
.
Advertising
,
model
.
Advertising
,
model
.
SubName
model
.
SubName
,
model
.
MarketingLogo
});
});
}
}
...
...
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