mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 12:52:07 +08:00
webcad拆单板件部件关联关系创建修正
This commit is contained in:
+21
-2
@@ -942,7 +942,6 @@ public class WebCadOrderImportAsyncFactory {
|
||||
.packageId(0L)
|
||||
.partsId(0L)
|
||||
.num(1.0)
|
||||
.compId(plateComponentId)
|
||||
.cadViewId(cadViewId)
|
||||
.organId(organId)
|
||||
.build();
|
||||
@@ -962,13 +961,33 @@ public class WebCadOrderImportAsyncFactory {
|
||||
.packageId(0L)
|
||||
.partsId(0L)
|
||||
.num(1.0)
|
||||
.compId(plateComponentId)
|
||||
.cadViewId(cadViewId)
|
||||
.organId(organId)
|
||||
.build();
|
||||
orderItemDOS.add(orderItemDO);
|
||||
orderItemBatchInsertWithinThreshold(orderItemDOS, false);
|
||||
}
|
||||
|
||||
// 创建部件关联关系
|
||||
if(ObjectUtil.isNotNull(plateComponentId)) {
|
||||
OrderItemDO orderItemDO = OrderItemDO
|
||||
.builder()
|
||||
.id((Long) snowFlakeGenerator.nextId(null))
|
||||
.orderId(orderId)
|
||||
.type(OrderItemTypeEnum.PLATE_ITEM.getStatus())
|
||||
.roomId(roomId)
|
||||
.bodyId(bodyId)
|
||||
.plateId(plateId)
|
||||
.packageId(0L)
|
||||
.partsId(0L)
|
||||
.num(1.0)
|
||||
.cadViewId(cadViewId)
|
||||
.compId(plateComponentId)
|
||||
.organId(organId)
|
||||
.build();
|
||||
orderItemDOS.add(orderItemDO);
|
||||
orderItemBatchInsertWithinThreshold(orderItemDOS, false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+21
-2
@@ -1552,7 +1552,6 @@ public class WebCadOrderImportFactory {
|
||||
.packageId(0L)
|
||||
.partsId(0L)
|
||||
.num(1.0)
|
||||
.compId(plateComponentId)
|
||||
.cadViewId(cadViewId)
|
||||
.organId(organId)
|
||||
.build();
|
||||
@@ -1572,13 +1571,33 @@ public class WebCadOrderImportFactory {
|
||||
.packageId(0L)
|
||||
.partsId(0L)
|
||||
.num(1.0)
|
||||
.compId(plateComponentId)
|
||||
.cadViewId(cadViewId)
|
||||
.organId(organId)
|
||||
.build();
|
||||
orderItemDOS.add(orderItemDO);
|
||||
orderItemBatchInsertWithinThreshold(orderItemDOS, false);
|
||||
}
|
||||
|
||||
// 创建部件关联关系
|
||||
if(ObjectUtil.isNotNull(plateComponentId)) {
|
||||
OrderItemDO orderItemDO = OrderItemDO
|
||||
.builder()
|
||||
.id((Long) snowFlakeGenerator.nextId(null))
|
||||
.orderId(orderId)
|
||||
.type(OrderItemTypeEnum.PLATE_ITEM.getStatus())
|
||||
.roomId(roomId)
|
||||
.bodyId(bodyId)
|
||||
.plateId(plateId)
|
||||
.packageId(0L)
|
||||
.partsId(0L)
|
||||
.num(1.0)
|
||||
.cadViewId(cadViewId)
|
||||
.compId(plateComponentId)
|
||||
.organId(organId)
|
||||
.build();
|
||||
orderItemDOS.add(orderItemDO);
|
||||
orderItemBatchInsertWithinThreshold(orderItemDOS, false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user