diff --git a/mallinkService/src/main/java/com/iformall/service/impl/TtMallGoodsCategoryServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/TtMallGoodsCategoryServiceImpl.java index 4bd76a957..0f9e4f475 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/TtMallGoodsCategoryServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/TtMallGoodsCategoryServiceImpl.java @@ -142,11 +142,11 @@ public class TtMallGoodsCategoryServiceImpl implements TtMallGoodsCategoryServic List childList = new ArrayList<>(); for (Integer childId:childIds) { TtMallGoodsCategory child = new TtMallGoodsCategory(); - old.setGoodsCategoryId(childId); - old.updateTenantInfo(tenantEntity); - old.setSoftwareFee(softwareFee); - old.setCreateDate(now); - old.setUpdateDate(now); + child.setGoodsCategoryId(childId); + child.updateTenantInfo(tenantEntity); + child.setSoftwareFee(softwareFee); + child.setCreateDate(now); + child.setUpdateDate(now); childList.add(child); } ttMallGoodsCategoryMapper.insertList(childList);