Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
bom_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
0e0f8ee2
authored
Jul 01, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
6d7b368c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
internal/logic/goods.go
internal/logic/goods.go
View file @
0e0f8ee2
...
@@ -205,7 +205,13 @@ func MatchGoodsInfo(goods model.ApiGoods, goodsMap GoodsMap) (bomMatching model.
...
@@ -205,7 +205,13 @@ func MatchGoodsInfo(goods model.ApiGoods, goodsMap GoodsMap) (bomMatching model.
//需要用于获取价格的阶梯价
//需要用于获取价格的阶梯价
if
bomMatching
.
Number
<
price
.
Purchases
{
if
bomMatching
.
Number
<
price
.
Purchases
{
//ladder = price
//ladder = price
ladder
=
goods
.
LadderPrice
[
key
-
1
]
var
index
int
if
key
==
0
{
index
=
0
}
else
{
index
=
key
-
1
}
ladder
=
goods
.
LadderPrice
[
index
]
break
break
}
}
}
}
...
...
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