修改支持备注
This commit is contained in:
@@ -371,6 +371,12 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
||||
tbCashierCart.setCategoryId(product.getCategoryId());
|
||||
cashierCartRepository.save(tbCashierCart);
|
||||
|
||||
if (tbCashierCart.getOrderId() != null && StrUtil.isNotBlank(updateCartDTO.getNote())) {
|
||||
orderDetailMapper.update(null, new LambdaUpdateWrapper<TbOrderDetail>()
|
||||
.eq(TbOrderDetail::getCartId, tbCashierCart.getId())
|
||||
.set(TbOrderDetail::getNote, updateCartDTO.getNote()));
|
||||
}
|
||||
|
||||
return tbCashierCart;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user