order_item表添加字段

This commit is contained in:
yangsb
2024-03-15 16:30:04 +08:00
parent c235cb07f3
commit 461e9cbf61
3 changed files with 10 additions and 2 deletions
@@ -52,6 +52,14 @@ public class OrderItemDO {
* 包裹 ID
*/
private Long packageId;
/**
* 生产单板件id
*/
private Long plateId;
/**
* 五金配件id
*/
private Long partsId;
/**
* 部件数量
*/
@@ -282,7 +282,7 @@ public class PlanServiceImpl implements PlanService {
orderItemDOS.add(OrderItemDO.builder()
.planId(req.getPlanId())
.orderId(obj.getOrderId())
.dataId(obj.getPlateId())
.plateId(obj.getPlateId())
.type(1)
.build());
@@ -24,7 +24,7 @@
resultType="com.cf.imes.module.executor.controller.admin.plan.vo.PlateResList">
select a.order_id, a.plate_no , a.name, e.material, e.color, e.width, e.height, e.thickness, b.room_id, b.body_id
from order_plate a
left join order_item b on a.id = b.data_id and b.type =1
left join order_item b on a.id = b.plate_id
left join order_plan_item c on a.id = c.item_id
left join order_goods e on e.goods_id = a.goods_id and e.order_id = a.order_id
left join `order` f on f.id = a.order_id