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
3183c265
authored
Jul 02, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
接入更新商品队列
parent
0e0f8ee2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
6 deletions
internal/logic/attr.go
internal/logic/bom_matching.go
internal/logic/attr.go
View file @
3183c265
...
...
@@ -37,11 +37,6 @@ func MatchGoodsNameByAttrs(bomItems []model.BomItem) (result []model.BomItem, er
search
=
searchAttr
(
item
,
search
)
searchFlag
=
true
}
////如果没有型号,但是有参数(参数有可能是型号),那就去匹配参数
//if item.GoodsName == "" && item.Attrs != "" {
// search = searchAttr(item, search)
// searchFlag = true
//}
}
if
!
searchFlag
{
return
bomItems
,
nil
...
...
internal/logic/bom_matching.go
View file @
3183c265
...
...
@@ -62,7 +62,7 @@ func BatchSaveMatchings(bomId int, matchingList []model.BomItemMatching) (err er
return
}
//更新商品价格和库存的队列
//
go UpdateGoodsPriceAndStockQueue(matching.GoodsName)
go
UpdateGoodsPriceAndStockQueue
(
matching
.
GoodsName
)
}
return
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