商品单位为空
This commit is contained in:
parent
21341d98c6
commit
735e142a71
|
|
@ -63,6 +63,7 @@ public class CurProductServiceImpl extends ServiceImpl<CurProductMapper, CurProd
|
||||||
curProduct.setCategoryId(StrUtil.isBlank(oldProduct.getCategoryId()) ? null : Long.valueOf(oldProduct.getCategoryId()));
|
curProduct.setCategoryId(StrUtil.isBlank(oldProduct.getCategoryId()) ? null : Long.valueOf(oldProduct.getCategoryId()));
|
||||||
curProduct.setSpecId(oldProduct.getSpecId() == null ? null : Long.valueOf(oldProduct.getSpecId()));
|
curProduct.setSpecId(oldProduct.getSpecId() == null ? null : Long.valueOf(oldProduct.getSpecId()));
|
||||||
curProduct.setShopId(Long.valueOf(oldProduct.getShopId()));
|
curProduct.setShopId(Long.valueOf(oldProduct.getShopId()));
|
||||||
|
curProduct.setUnitId(oldProduct.getUnitId() == null ? 1L : Long.valueOf(oldProduct.getUnitId()));
|
||||||
curProduct.setName(oldProduct.getName());
|
curProduct.setName(oldProduct.getName());
|
||||||
curProduct.setShortTitle(oldProduct.getShortTitle());
|
curProduct.setShortTitle(oldProduct.getShortTitle());
|
||||||
curProduct.setType(getProductType(oldProduct));
|
curProduct.setType(getProductType(oldProduct));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue