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
4dbf2f2c
authored
Oct 12, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
默认匹配到就选中
parent
2b4e0581
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
internal/logic/bom_matching.go
internal/logic/goods.go
internal/logic/bom_matching.go
View file @
4dbf2f2c
...
@@ -57,7 +57,7 @@ func BatchSaveMatchings(bomId int, matchingList []model.BomItemMatching) (err er
...
@@ -57,7 +57,7 @@ func BatchSaveMatchings(bomId int, matchingList []model.BomItemMatching) (err er
itemStatus
=
3
itemStatus
=
3
}
}
err
=
model
.
Db
.
Table
(
"lie_bom_item_"
+
tableEnd
)
.
Where
(
"bom_item_id = ?"
,
matching
.
BomItemID
)
.
err
=
model
.
Db
.
Table
(
"lie_bom_item_"
+
tableEnd
)
.
Where
(
"bom_item_id = ?"
,
matching
.
BomItemID
)
.
Updates
(
map
[
string
]
interface
{}{
"item_status"
:
itemStatus
,
"update_time"
:
now
})
.
Error
Updates
(
map
[
string
]
interface
{}{
"item_status"
:
itemStatus
,
"update_time"
:
now
,
"is_select"
:
1
})
.
Error
if
err
!=
nil
{
if
err
!=
nil
{
return
return
}
}
...
...
internal/logic/goods.go
View file @
4dbf2f2c
...
@@ -100,7 +100,7 @@ func GetGoodsInfo(goodsIdsStr string) (goodsList []model.ApiGoods, err error) {
...
@@ -100,7 +100,7 @@ func GetGoodsInfo(goodsIdsStr string) (goodsList []model.ApiGoods, err error) {
var
goods
model
.
ApiGoods
var
goods
model
.
ApiGoods
goods
.
GoodsName
=
data
.
Get
(
"goods_name"
)
.
String
()
goods
.
GoodsName
=
data
.
Get
(
"goods_name"
)
.
String
()
goods
.
GoodsID
=
data
.
Get
(
"goods_id"
)
.
String
()
goods
.
GoodsID
=
data
.
Get
(
"goods_id"
)
.
String
()
goods
.
BrandID
=
int
(
data
.
Get
(
"
goods
_id"
)
.
Int
())
goods
.
BrandID
=
int
(
data
.
Get
(
"
brand
_id"
)
.
Int
())
goods
.
Pdf
=
data
.
Get
(
"pdf"
)
.
String
()
goods
.
Pdf
=
data
.
Get
(
"pdf"
)
.
String
()
goods
.
Stock
=
int
(
data
.
Get
(
"stock"
)
.
Int
())
goods
.
Stock
=
int
(
data
.
Get
(
"stock"
)
.
Int
())
goods
.
Mpq
=
int
(
data
.
Get
(
"mpq"
)
.
Int
())
goods
.
Mpq
=
int
(
data
.
Get
(
"mpq"
)
.
Int
())
...
...
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