feat:判空

This commit is contained in:
dzc committed 2026-05-12 20:33:50 +08:00
1 parent 96c058ca9a
commit 2fe4a4e522
1 file changed
+1
@@ -1762,6 +1762,7 @@ public class HardOrderServiceImpl extends ServiceImpl<HardOrderMapper, HardOrder
// 购物车
if (dto.getIsFindCarList()) {
for (HardOrderVo v : list) {
if (ObjectUtil.isEmpty(v.getParentCarId())) continue;
List<HardCarEntity> carList = hardCarService.getByParentCarId(v.getParentCarId());
List<HardCarVo> carVoList = BeanUtils.toBean(carList, HardCarVo.class);
v.setCarList(carVoList);