!231 fix: 修复保存草稿商品规格顺序问题

Merge pull request !231 from OceansDeep/feature/pg
This commit is contained in:
OceansDeep 2022-09-09 07:40:59 +00:00 committed by Gitee
commit 02d017eb9e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -128,7 +128,7 @@ public class DraftGoodsServiceImpl extends ServiceImpl<DraftGoodsMapper, DraftGo
}
private GoodsSku add(Map<String, Object> map) {
Map<String, Object> specMap = new HashMap<>(2);
Map<String, Object> specMap = new LinkedHashMap<>();
GoodsSku sku = new GoodsSku();
for (Map.Entry<String, Object> m : map.entrySet()) {
switch (m.getKey()) {