商品单位为空

This commit is contained in:
GYJ 2025-03-25 09:24:31 +08:00
parent 21341d98c6
commit 735e142a71
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ public class CurProductServiceImpl extends ServiceImpl<CurProductMapper, CurProd
curProduct.setCategoryId(StrUtil.isBlank(oldProduct.getCategoryId()) ? null : Long.valueOf(oldProduct.getCategoryId()));
curProduct.setSpecId(oldProduct.getSpecId() == null ? null : Long.valueOf(oldProduct.getSpecId()));
curProduct.setShopId(Long.valueOf(oldProduct.getShopId()));
curProduct.setUnitId(oldProduct.getUnitId() == null ? 1L : Long.valueOf(oldProduct.getUnitId()));
curProduct.setName(oldProduct.getName());
curProduct.setShortTitle(oldProduct.getShortTitle());
curProduct.setType(getProductType(oldProduct));