...
|
...
|
@@ -142,12 +142,14 @@ public class ProductServiceImpl implements IProductService, ApplicationContextAw |
|
|
|
|
|
private List<Storage> getStoragesFromBo(ProductRequestBo bo) {
|
|
|
List<Storage> storageList = new ArrayList<>();
|
|
|
for(Integer id : bo.getSizeIdList()) {
|
|
|
Storage s = new Storage();
|
|
|
s.setCreateTime((int) (System.currentTimeMillis() / 1000));
|
|
|
s.setSizeId(id);
|
|
|
s.setStorageNum(0);
|
|
|
storageList.add(s);
|
|
|
if (CollectionUtils.isNotEmpty(bo.getSizeIdList())) {
|
|
|
for (Integer id : bo.getSizeIdList()) {
|
|
|
Storage s = new Storage();
|
|
|
s.setCreateTime((int) (System.currentTimeMillis() / 1000));
|
|
|
s.setSizeId(id);
|
|
|
s.setStorageNum(0);
|
|
|
storageList.add(s);
|
|
|
}
|
|
|
}
|
|
|
return storageList;
|
|
|
}
|
...
|
...
|
|