From e14730d85fa4c784e7f3555d35a1c8b057b1d383 Mon Sep 17 00:00:00 2001
From: zhoushihao <zsh19950802@163.com>
Date: 星期一, 09 十二月 2024 17:57:08 +0800
Subject: [PATCH] 1、fixbug:钢化小片表状态更新 2、中空校验 3、磨边发送宽高改为磨边前
---
hangzhoumesParent/moduleService/howllowGlassModule/src/main/java/com/mes/hollow/service/impl/HollowGlassRelationInfoServiceImpl.java | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/hangzhoumesParent/moduleService/howllowGlassModule/src/main/java/com/mes/hollow/service/impl/HollowGlassRelationInfoServiceImpl.java b/hangzhoumesParent/moduleService/howllowGlassModule/src/main/java/com/mes/hollow/service/impl/HollowGlassRelationInfoServiceImpl.java
index 8bb8edc..cac7777 100644
--- a/hangzhoumesParent/moduleService/howllowGlassModule/src/main/java/com/mes/hollow/service/impl/HollowGlassRelationInfoServiceImpl.java
+++ b/hangzhoumesParent/moduleService/howllowGlassModule/src/main/java/com/mes/hollow/service/impl/HollowGlassRelationInfoServiceImpl.java
@@ -64,8 +64,7 @@
.eq(HollowGlassRelationInfo::getWidth, width)
.eq(HollowGlassRelationInfo::getHeight, height)
.eq(HollowGlassRelationInfo::getLayer, layer)
- .isNull(HollowGlassRelationInfo::getTemperingLayoutId)
- .isNull(HollowGlassRelationInfo::getTemperingFeedSequence)
+ .eq(HollowGlassRelationInfo::getState,Const.HOLLOW_RELATION_NEW)
.orderByAsc(HollowGlassRelationInfo::getHollowSequence)
.last("limit 1")
);
@@ -200,6 +199,7 @@
hollow.setVirtualSlot(temp.get(0).getVirtualSlot());
hollow.setFilmsId(glassInfo.getFilmsid());
hollow.setThickness(glassInfo.getThickness());
+ hollow.setState(Const.HOLLOW_RELATION_NEW);
temp.add(hollow);
flag = true;
break;
@@ -214,6 +214,7 @@
hollow.setVirtualSlot(slotNumber++);
hollow.setFilmsId(glassInfo.getFilmsid());
hollow.setThickness(glassInfo.getThickness());
+ hollow.setState(Const.HOLLOW_RELATION_NEW);
newList.add(hollow);
tempHollowList.add(newList);
}
@@ -242,9 +243,16 @@
return dtos.stream().collect(Collectors.groupingBy(FlowCardGlassInfoDTO::getFlowCardId));
}
+// @Override
+// public Map<Integer, List<LackDetailsDTO>> queryLackByFlowCard(String flowCardId) {
+// List<LackDetailsDTO> lackDetailsList = this.baseMapper.queryLackByFlowCard(flowCardId);
+// Map<Integer, List<LackDetailsDTO>> listMap = lackDetailsList.stream().collect(Collectors.groupingBy(LackDetailsDTO::getLayer));
+// return listMap;
+// }
@Override
- public List<LackDetailsDTO> queryLackByFlowCard(String flowCardId, int layer) {
- return this.baseMapper.queryLackByFlowCard(flowCardId, layer);
+ public List<LackDetailsDTO> queryLackByFlowCard(String flowCardId) {
+ List<LackDetailsDTO> lackDetailsList = this.baseMapper.queryLackByFlowCard(flowCardId);
+ return lackDetailsList;
}
}
--
Gitblit v1.8.0