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
14c0f9ca
Commit
14c0f9ca
authored
Sep 07, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
faeda797
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
ProductModule.cs
Mall.Module.Product/ProductModule.cs
+12
-4
AppletGoodsController.cs
Mall.WebApi/Controllers/Product/AppletGoodsController.cs
+4
-2
No files found.
Mall.Module.Product/ProductModule.cs
View file @
14c0f9ca
...
...
@@ -18,6 +18,7 @@ using Mall.Repository.BaseSetUp;
using
Mall.Repository.Product
;
using
Mall.Repository.User
;
using
Newtonsoft.Json
;
using
Newtonsoft.Json.Linq
;
using
NPOI.SS.Formula.Functions
;
using
VT.FW.DB
;
...
...
@@ -231,8 +232,9 @@ namespace Mall.Module.Product
/// <param name="pageSize"></param>
/// <param name="count"></param>
/// <param name="demodel"></param>
/// <param name="IsGetShare">1-获取分销佣金</param>
/// <returns></returns>
public
List
<
RB_Goods_Extend
>
GetAppletGoodsPageListForZY
(
int
pageIndex
,
int
pageSize
,
out
long
count
,
RB_Goods_Extend
demodel
)
public
List
<
RB_Goods_Extend
>
GetAppletGoodsPageListForZY
(
int
pageIndex
,
int
pageSize
,
out
long
count
,
RB_Goods_Extend
demodel
,
int
IsGetShare
=
0
)
{
var
list
=
goodsRepository
.
GetAppletGoodsPageList
(
pageIndex
,
pageSize
,
out
count
,
demodel
);
if
(
list
.
Any
())
...
...
@@ -447,10 +449,16 @@ namespace Mall.Module.Product
item
.
FreeShippingModel
=
new
RB_FreeShipping_Extend
();
}
//2020-08-06 Add by:W End
}
if
(
IsGetShare
==
1
)
{
var
obj
=
GetAppletGoodsInfo_V2
(
item
.
Id
,
(
demodel
?.
UserId
??
0
),
(
demodel
?.
SmallShopsId
??
0
),
demodel
.
TenantId
,
demodel
.
MallBaseId
);
if
(
obj
!=
null
)
{
JObject
jobj
=
JObject
.
Parse
(
obj
.
ToString
());
}
}
}
}
return
list
;
}
...
...
Mall.WebApi/Controllers/Product/AppletGoodsController.cs
View file @
14c0f9ca
...
...
@@ -169,12 +169,14 @@ namespace Mall.WebApi.Controllers.MallBase
}
ResultPageModel
pagelist
=
JsonConvert
.
DeserializeObject
<
ResultPageModel
>(
parms
.
msg
.
ToString
());
RB_Goods_Extend
demodel
=
JsonConvert
.
DeserializeObject
<
RB_Goods_Extend
>(
parms
.
msg
.
ToString
());
JObject
newParms
=
JObject
.
Parse
(
parms
.
msg
.
ToString
());
demodel
.
TenantId
=
parms
.
TenantId
;
demodel
.
MallBaseId
=
parms
.
MallBaseId
;
demodel
.
GoodsStatus
=
1
;
//只查询销售中的
demodel
.
SmallShopsId
=
parms
.
SmallShopsId
;
int
UserId
=
parms
.
UserId
;
//HK2020-09-07新增
int
IsGetShare
=
newParms
.
GetInt
(
"IsGetShare"
);
RB_Member_User_Extend
userModel
=
new
RB_Member_User_Extend
();
RB_Member_Grade_Extend
memberGrade
=
new
RB_Member_Grade_Extend
();
if
(
UserId
>
0
)
...
...
@@ -188,7 +190,7 @@ namespace Mall.WebApi.Controllers.MallBase
demodel
.
SmallShopsId
=
userModel
.
SmallShopId
;
}
}
var
list
=
productModule
.
GetAppletGoodsPageListForZY
(
pagelist
.
pageIndex
,
pagelist
.
pageSize
,
out
long
count
,
demodel
);
var
list
=
productModule
.
GetAppletGoodsPageListForZY
(
pagelist
.
pageIndex
,
pagelist
.
pageSize
,
out
long
count
,
demodel
,
IsGetShare
:
IsGetShare
);
List
<
object
>
RList
=
new
List
<
object
>();
if
(
list
.
Any
())
{
...
...
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