feat:判空
This commit is contained in:
1 parent
96c058ca9a
commit
2fe4a4e522
1 file changed
+1
+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);
|
||||
|
||||
Reference in new issue
Block a user