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
d3cf4b6f
authored
Jun 17, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改
parent
4f331a22
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
protopb/bom/bom.pb.go
protos/bom.proto
service/goods_service.go
protopb/bom/bom.pb.go
View file @
d3cf4b6f
This diff is collapsed.
Click to expand it.
protos/bom.proto
View file @
d3cf4b6f
...
...
@@ -60,7 +60,7 @@ message OTHER_ATTRS {
string
gross_wegiht
=
1
;
}
message
L
ADDER_PRICE
{
message
L
adderPrice
{
int64
purchases
=
1
;
float
price_cn
=
2
;
float
price_us
=
3
;
...
...
@@ -89,7 +89,7 @@ message GoodsModel {
int64
moq
=
19
;
int64
mpq
=
20
;
// @inject_tag: json:"ladder_price"
repeated
L
ADDER_PRICE
ladder_price
=
21
;
repeated
L
adderPrice
ladder_price
=
21
;
int64
update_time
=
22
;
string
sku_name
=
23
;
int64
mpl
=
24
;
...
...
service/goods_service.go
View file @
d3cf4b6f
...
...
@@ -46,10 +46,10 @@ func GetGoodsInfo(goodsIdsStr string) (goodsList []*bom.GoodsModel, err error) {
goods
.
Status
=
data
.
Get
(
"status"
)
.
Int
()
goods
.
GoodsType
=
data
.
Get
(
"goods_type"
)
.
Int
()
goods
.
AcType
=
data
.
Get
(
"ac_type"
)
.
Int
()
var
ladderPrice
[]
*
bom
.
L
ADDER_PRICE
var
ladderPrice
[]
*
bom
.
L
adderPrice
for
_
,
price
:=
range
data
.
Get
(
"ladder_price"
)
.
Array
()
{
var
ladder
bom
.
L
ADDER_PRICE
ladder
=
bom
.
L
ADDER_PRICE
{
var
ladder
bom
.
L
adderPrice
ladder
=
bom
.
L
adderPrice
{
Purchases
:
price
.
Get
(
"purchases"
)
.
Int
(),
PriceUs
:
float32
(
price
.
Get
(
"price_us"
)
.
Float
()),
PriceCn
:
float32
(
price
.
Get
(
"price_cn"
)
.
Float
()),
...
...
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