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
03d46a8d
Commit
03d46a8d
authored
Sep 02, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序商品详情
parent
a160159e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
643 additions
and
3 deletions
+643
-3
RB_Goods.cs
Mall.Model/Entity/Product/RB_Goods.cs
+1
-1
GuideCarModule.cs
Mall.Module.Product/GuideCarModule.cs
+606
-0
AppletGuideCarController.cs
Mall.WebApi/Controllers/Product/AppletGuideCarController.cs
+34
-0
GuideCarController.cs
Mall.WebApi/Controllers/Product/GuideCarController.cs
+2
-2
No files found.
Mall.Model/Entity/Product/RB_Goods.cs
View file @
03d46a8d
...
...
@@ -494,7 +494,7 @@ namespace Mall.Model.Entity.Product
/// <summary>
/// 使用日期 天
/// </summary>
public
decimal
?
Use
r
Day
{
get
;
set
;
}
public
decimal
?
UseDay
{
get
;
set
;
}
/// <summary>
/// 线路名称
/// </summary>
...
...
Mall.Module.Product/GuideCarModule.cs
View file @
03d46a8d
This diff is collapsed.
Click to expand it.
Mall.WebApi/Controllers/Product/AppletGuideCarController.cs
View file @
03d46a8d
...
...
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using
System.Linq
;
using
System.Threading.Tasks
;
using
Mall.Common.API
;
using
Mall.Common.Plugin
;
using
Mall.Model.Extend.GuideCar
;
using
Mall.Module.Product
;
using
Mall.WebApi.Filter
;
...
...
@@ -10,6 +11,7 @@ using Microsoft.AspNetCore.Cors;
using
Microsoft.AspNetCore.Http
;
using
Microsoft.AspNetCore.Mvc
;
using
Newtonsoft.Json
;
using
Newtonsoft.Json.Linq
;
namespace
Mall.WebApi.Controllers.Product
{
...
...
@@ -22,6 +24,38 @@ namespace Mall.WebApi.Controllers.Product
{
private
readonly
GuideCarModule
guideCarModule
=
new
GuideCarModule
();
#
region
商品详情
/// <summary>
/// 获取小程序商品详情
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetAppletSDGoodsInfo
(
object
requestMsg
)
{
var
req
=
JsonConvert
.
DeserializeObject
<
RequestParm
>(
requestMsg
.
ToString
());
if
(
req
.
MallBaseId
<=
0
)
{
return
ApiResult
.
ParamIsNull
();
}
JObject
prams
=
JObject
.
Parse
(
req
.
msg
.
ToString
());
int
GoodsId
=
prams
.
GetInt
(
"GoodsId"
,
0
);
if
(
GoodsId
<=
0
)
{
return
ApiResult
.
ParamIsNull
();
}
int
UserId
=
req
.
UserId
;
var
Robj
=
guideCarModule
.
GetAppletGoodsInfo_V2
(
GoodsId
,
UserId
,
req
.
SmallShopsId
,
req
.
TenantId
,
req
.
MallBaseId
);
return
ApiResult
.
Success
(
""
,
Robj
);
}
#
endregion
#
region
订单信息
#
endregion
/// <summary>
/// 获取详情
/// </summary>
...
...
Mall.WebApi/Controllers/Product/GuideCarController.cs
View file @
03d46a8d
...
...
@@ -352,7 +352,7 @@ namespace Mall.WebApi.Controllers.MallBase
model
?.
CarBuyYear
,
model
?.
CarType
,
CarTypeName
=
model
?.
CarType
.
GetEnumName
(),
model
?.
Use
r
Day
,
model
?.
UseDay
,
model
?.
LineName
,
model
?.
LineDescriptionList
,
model
?.
IsSpell
,
...
...
@@ -437,7 +437,7 @@ namespace Mall.WebApi.Controllers.MallBase
}
if
(
demodel
.
CarType
==
Common
.
Enum
.
Goods
.
GuideCarGoodsTypeEnum
.
SQ
||
demodel
.
CarType
==
Common
.
Enum
.
Goods
.
GuideCarGoodsTypeEnum
.
ZB
||
demodel
.
CarType
==
Common
.
Enum
.
Goods
.
GuideCarGoodsTypeEnum
.
Line
)
{
if
((
demodel
.
Use
r
Day
??
0
)
<=
0
)
if
((
demodel
.
UseDay
??
0
)
<=
0
)
{
return
ApiResult
.
ParamIsNull
(
"请输入使用时间"
);
}
...
...
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