迁移 商品规格
This commit is contained in:
@@ -66,6 +66,7 @@ public class CurShopProdSpecServiceImpl extends ServiceImpl<CurShopProdSpecMappe
|
||||
CurShopProdSpec curShopProdSpec = new CurShopProdSpec();
|
||||
|
||||
Long curShopId = oldAndCurShopIdMap.get(Long.valueOf(oldProductSpec.getShopId()));
|
||||
curShopProdSpec.setId(Long.valueOf(oldProductSpec.getId()));
|
||||
curShopProdSpec.setShopId(curShopId == null ? 1L : curShopId);
|
||||
curShopProdSpec.setLevel(1);
|
||||
curShopProdSpec.setPid(0L);
|
||||
@@ -115,7 +116,7 @@ public class CurShopProdSpecServiceImpl extends ServiceImpl<CurShopProdSpecMappe
|
||||
curShopProdSpec.setFullName(String.format("%s-%s", first.getFullName(), curShopProdSpec.getName()));
|
||||
curShopProdSpec.setLevel(2);
|
||||
curShopProdSpec.setSort(1);
|
||||
curShopProdSpec.setPid(first.getPid());
|
||||
curShopProdSpec.setPid(first.getId());
|
||||
curShopProdSpec.setPids(pids2Str);
|
||||
curShopProdSpec.setShopId(first.getShopId());
|
||||
curShopProdSpec.setStatus(1);
|
||||
@@ -144,7 +145,7 @@ public class CurShopProdSpecServiceImpl extends ServiceImpl<CurShopProdSpecMappe
|
||||
curShopProdSpec2.setFullName(String.format("%s-%s", curShopProdSpec.getFullName(), name));
|
||||
curShopProdSpec2.setLevel(3);
|
||||
curShopProdSpec2.setSort(1);
|
||||
curShopProdSpec2.setPid(curShopProdSpec.getPid());
|
||||
curShopProdSpec2.setPid(curShopProdSpec.getId());
|
||||
curShopProdSpec2.setPids(pids3Str);
|
||||
curShopProdSpec2.setShopId(first.getShopId());
|
||||
curShopProdSpec2.setStatus(1);
|
||||
|
||||
Reference in New Issue
Block a user