Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
search_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cf2de43c
authored
Dec 29, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加联营倍数
parent
a8e0a668
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
service/parity_service.go
service/parity_service.go
View file @
cf2de43c
...
...
@@ -115,6 +115,15 @@ func (qs *ParityService) GetParity(ctx *gin.Context) (results model.LyResponse)
if
tprice
==
0
{
//不符合梯度价跳过比价
continue
;
}
Multiple
:=
0
//联营倍数
if
v
.
SupplierName
!=
"猎芯自营"
{
//联营倍数
Multiple
=
v
.
Mpq
if
v
.
Mpq
>
v
.
Moq
{
Multiple
=
v
.
Moq
}
}
//转换价格
dullGoodsData
,
err
:=
transformer
.
MetGoodsInfo
(
ctx
,
model
.
DullGoodsData
{
ApiGoods
:
v
,
...
...
@@ -122,6 +131,7 @@ func (qs *ParityService) GetParity(ctx *gin.Context) (results model.LyResponse)
BrandUrl
:
BrandUrl
,
Attrs
:
attrs
[
v
.
GoodsId
],
Tprice
:
tprice
,
//对应梯度价格
Multiple
:
Multiple
,
})
if
err
!=
nil
{
...
...
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