feat:购物车不能为0的问题
This commit is contained in:
1 parent
a143db7cd1
commit
cf95ef732b
2 files changed
+4
-2
No files matched your search
+1
-1
@@ -24,7 +24,7 @@ public class HardCarSaveOrUpdateDto {
|
||||
private Long merchantId;
|
||||
|
||||
@Schema(description = "购物车")
|
||||
@NotEmpty(message = "购物车不能为空")
|
||||
// @NotEmpty(message = "购物车不能为空")
|
||||
private List<HardCreateCarDto> list;
|
||||
|
||||
@Schema(description = "用户id")
|
||||
|
||||
+3
-1
@@ -131,7 +131,9 @@ public class HardCarServiceImpl extends ServiceImpl<HardCarMapper, HardCarEntity
|
||||
if (ObjectUtil.isNotEmpty(parentCar)) {
|
||||
baseMapper.delete(new LambdaQueryWrapper<HardCarEntity>().eq(HardCarEntity::getParentCarId, parentCar.getId()));
|
||||
// 添加购物车
|
||||
getSelf().appCreateCard(parentCar.getId(), dto.getHardType(), dto.getOrderType(), carList);
|
||||
if (ObjectUtil.isNotEmpty(carList)) {
|
||||
getSelf().appCreateCard(parentCar.getId(), dto.getHardType(), dto.getOrderType(), carList);
|
||||
}
|
||||
return;
|
||||
}
|
||||
// 添加父订单
|
||||
|
||||
Reference in new issue
Block a user