mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
自定义板编号 excel异步/xml异步/webcad同异步 导入订单拆单 房间柜体序号失效、订单序号配置失效修复
This commit is contained in:
+2
-2
@@ -93,8 +93,8 @@ public class CustomPlateNoGenerateServiceImpl implements CustomPlateNoGenerateSe
|
|||||||
orderDO.setCustomPlatenoSeq(JSON.toJSONString(orderCustomPlateNoSeqVO));
|
orderDO.setCustomPlatenoSeq(JSON.toJSONString(orderCustomPlateNoSeqVO));
|
||||||
orderDO.setCustomPlatenoConfigId(orgCustomPlateNoConfigId);
|
orderDO.setCustomPlatenoConfigId(orgCustomPlateNoConfigId);
|
||||||
// } else {
|
// } else {
|
||||||
// // 已有订单更新序号
|
// 已有订单更新序号
|
||||||
// orderMapper.update(new LambdaUpdateWrapper<OrderDO>().eq(OrderDO::getId, orderId).set(OrderDO::getCustomPlatenoSeq, JsonUtils.zipString(JSON.toJSONString(orderCustomPlateNoSeqVO))));
|
orderMapper.update(new LambdaUpdateWrapper<OrderDO>().eq(OrderDO::getId, orderId).set(OrderDO::getCustomPlatenoSeq, JsonUtils.zipString(JSON.toJSONString(orderCustomPlateNoSeqVO))));
|
||||||
// }
|
// }
|
||||||
// 机构下序号配置同步
|
// 机构下序号配置同步
|
||||||
CustomPlateNoSeqDTO orgCustomPlateNoSeqRespDTO = generateConfig.getOrgCustomPlateNoSeqRespDTO();
|
CustomPlateNoSeqDTO orgCustomPlateNoSeqRespDTO = generateConfig.getOrgCustomPlateNoSeqRespDTO();
|
||||||
|
|||||||
+3
-2
@@ -135,8 +135,9 @@ public class WebCadOrderImportServiceImpl implements WebCadOrderImportService {
|
|||||||
JsonFactory factory = new JsonFactory();
|
JsonFactory factory = new JsonFactory();
|
||||||
|
|
||||||
Long cadViewFileId;
|
Long cadViewFileId;
|
||||||
try (GZIPInputStream gzipInputStream = new GZIPInputStream(file.getInputStream());
|
try (
|
||||||
JsonParser parser = factory.createParser(gzipInputStream)) {
|
// GZIPInputStream gzipInputStream = new GZIPInputStream();
|
||||||
|
JsonParser parser = factory.createParser(file.getInputStream())) {
|
||||||
factory.disable(JsonParser.Feature.AUTO_CLOSE_SOURCE);
|
factory.disable(JsonParser.Feature.AUTO_CLOSE_SOURCE);
|
||||||
|
|
||||||
int plateCount = 0;
|
int plateCount = 0;
|
||||||
|
|||||||
+2
@@ -744,6 +744,8 @@ public class DefaultExcelOrderImportFactory {
|
|||||||
currentPlateArea = currentPlateArea.add(tempDataDO.getArea());
|
currentPlateArea = currentPlateArea.add(tempDataDO.getArea());
|
||||||
|
|
||||||
// 生成自定义板编号
|
// 生成自定义板编号
|
||||||
|
plateDO.setRoomName(roomName);
|
||||||
|
plateDO.setBodyName(bodyName);
|
||||||
generateCustomPlateNo(plateDO);
|
generateCustomPlateNo(plateDO);
|
||||||
|
|
||||||
OrderItemDO orderItemDO = OrderItemDO.builder()
|
OrderItemDO orderItemDO = OrderItemDO.builder()
|
||||||
|
|||||||
+2
@@ -571,6 +571,8 @@ public class DefaultXmlOrderImportFactory {
|
|||||||
currentPlateArea = currentPlateArea.add(plateDO.getArea());
|
currentPlateArea = currentPlateArea.add(plateDO.getArea());
|
||||||
|
|
||||||
// 生成自定义板编号
|
// 生成自定义板编号
|
||||||
|
plateDO.setRoomName(roomCode);
|
||||||
|
plateDO.setBodyName(bodyCode);
|
||||||
generateCustomPlateNo(plateDO);
|
generateCustomPlateNo(plateDO);
|
||||||
|
|
||||||
OrderItemDO orderItemDO = OrderItemDO.builder()
|
OrderItemDO orderItemDO = OrderItemDO.builder()
|
||||||
|
|||||||
+2
@@ -843,6 +843,8 @@ public class WebCadOrderImportAsyncFactory {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 生成自定义板编号
|
// 生成自定义板编号
|
||||||
|
plateDO.setRoomName(orderBodyDO.getRoomName());
|
||||||
|
plateDO.setBodyName(orderBodyDO.getName());
|
||||||
generateCustomPlateNo(plateDO, block.getCustBlockNo());
|
generateCustomPlateNo(plateDO, block.getCustBlockNo());
|
||||||
|
|
||||||
// 更新房间下板件和异形的数量
|
// 更新房间下板件和异形的数量
|
||||||
|
|||||||
+2
@@ -1036,6 +1036,8 @@ public class WebCadOrderImportFactory {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 生成自定义板编号
|
// 生成自定义板编号
|
||||||
|
plateDO.setRoomName(orderBodyDO.getRoomName());
|
||||||
|
plateDO.setBodyName(orderBodyDO.getName());
|
||||||
generateCustomPlateNo(plateDO, block.getCustBlockNo());
|
generateCustomPlateNo(plateDO, block.getCustBlockNo());
|
||||||
|
|
||||||
// 更新房间下板件和异形的数量
|
// 更新房间下板件和异形的数量
|
||||||
|
|||||||
Reference in New Issue
Block a user