feat: 订单明细增加长度、宽度、面积字段

This commit is contained in:
Agent
2026-04-01 14:01:55 +00:00
parent 083a8cb4c7
commit 0a62e19d51
4 changed files with 40 additions and 0 deletions

View File

@@ -113,6 +113,9 @@ public class OrderServiceImpl implements OrderService {
item.setDescription(product.getDescription());
item.setPrice(price);
item.setQuantity(itemDTO.getQuantity());
item.setLength(itemDTO.getLength());
item.setWidth(itemDTO.getWidth());
item.setArea(itemDTO.getArea());
item.setSubtotal(subtotal);
orderItems.add(item);
@@ -364,6 +367,9 @@ public class OrderServiceImpl implements OrderService {
item.setDescription(product.getDescription());
item.setPrice(price);
item.setQuantity(itemDTO.getQuantity());
item.setLength(itemDTO.getLength());
item.setWidth(itemDTO.getWidth());
item.setArea(itemDTO.getArea());
item.setSubtotal(subtotal);
orderItems.add(item);
orderItemMapper.insert(item);