From 09ddece4effc738f2611c053d8f0f1fb22102597 Mon Sep 17 00:00:00 2001 From: liding <756868258@qq.com> Date: 星期二, 08 四月 2025 17:28:17 +0800 Subject: [PATCH] 1.原辅料下单标准 --- inspect-server/src/main/java/com/ruoyi/inspect/service/impl/RawMaterialOrderServiceImpl.java | 80 ++++++++++++++++++++++++++------------- 1 files changed, 53 insertions(+), 27 deletions(-) diff --git a/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/RawMaterialOrderServiceImpl.java b/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/RawMaterialOrderServiceImpl.java index 155010a..d02085a 100644 --- a/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/RawMaterialOrderServiceImpl.java +++ b/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/RawMaterialOrderServiceImpl.java @@ -89,32 +89,40 @@ RawMaterialStandardTreeDto rawMaterialStandardTreeDto = new RawMaterialStandardTreeDto(); for (FactoryDto factoryDto : factoryDtos) { for (LaboratoryDto laboratoryDto : factoryDto.getChildren()) { - for (SampleTypeDto sampleTypeDto : laboratoryDto.getChildren()) { - if (sampleTypeDto.getChildren().size() == 0) { - sampleTypeDto.setChildren(standardTreeMapper.getStandardTree3(sampleTypeDto.getValue())); - } - // 鍒ゆ柇缁戝畾鐨勬槸鍚︽槸褰撳墠闆朵欢鍙� - if (sampleTypeDto.getPartNo() != null && sampleTypeDto.getPartNo().equals(partNo)) { - // 娣诲姞瀵硅薄 - rawMaterialStandardTreeDto.setTreeName(factoryDto.getValue() + "-" - + laboratoryDto.getValue() + "-" - + sampleTypeDto.getValue()); - rawMaterialStandardTreeDto.setCode(sampleTypeDto.getCode()); - rawMaterialStandardTreeDto.setLabel(sampleTypeDto.getLabel()); - rawMaterialStandardTreeDto.setValue(sampleTypeDto.getValue()); - rawMaterialStandardTreeDto.setChildren1(sampleTypeDto.getChildren()); - } else { - for (SampleDto sampleDto : sampleTypeDto.getChildren()) { - if (sampleDto.getPartNo() != null && sampleDto.getPartNo().equals(partNo)) { + for (ObjectTypeDto objectTypeDto : laboratoryDto.getChildren()) { + for (WorkShopNameDto workShopNameDto : objectTypeDto.getChildren()) { + for (SampleTypeDto sampleTypeDto : workShopNameDto.getChildren()) { + if (sampleTypeDto.getChildren().size() == 0) { + sampleTypeDto.setChildren(standardTreeMapper.getStandardTree3(sampleTypeDto.getValue())); + } + // 鍒ゆ柇缁戝畾鐨勬槸鍚︽槸褰撳墠闆朵欢鍙� + if (sampleTypeDto.getPartNo() != null && sampleTypeDto.getPartNo().equals(partNo)) { // 娣诲姞瀵硅薄 rawMaterialStandardTreeDto.setTreeName(factoryDto.getValue() + "-" - + laboratoryDto.getValue() + "-" - + sampleTypeDto.getValue() + "-" - + sampleDto.getValue()); - rawMaterialStandardTreeDto.setCode(sampleDto.getCode()); - rawMaterialStandardTreeDto.setLabel(sampleDto.getLabel()); - rawMaterialStandardTreeDto.setValue(sampleDto.getValue()); - rawMaterialStandardTreeDto.setChildren2(sampleDto.getChildren()); + + laboratoryDto.getValue() + "-" + objectTypeDto.getValue() + "-" + workShopNameDto.getValue() + "-" + + sampleTypeDto.getValue()); + rawMaterialStandardTreeDto.setCode(sampleTypeDto.getCode()); + rawMaterialStandardTreeDto.setLabel(sampleTypeDto.getLabel()); + rawMaterialStandardTreeDto.setValue(sampleTypeDto.getValue()); + rawMaterialStandardTreeDto.setChildren1(sampleTypeDto.getChildren()); + rawMaterialStandardTreeDto.setWorkShopName(sampleTypeDto.getWorkShopName()); + rawMaterialStandardTreeDto.setWorkShopId(sampleTypeDto.getWorkShopId()); + } else { + for (SampleDto sampleDto : sampleTypeDto.getChildren()) { + if (sampleDto.getPartNo() != null && sampleDto.getPartNo().equals(partNo)) { + // 娣诲姞瀵硅薄 + rawMaterialStandardTreeDto.setTreeName(factoryDto.getValue() + "-" + + laboratoryDto.getValue() + "-" + objectTypeDto.getValue() + "-" + workShopNameDto.getValue() + "-" + + sampleTypeDto.getValue() + "-" + + sampleDto.getValue()); + rawMaterialStandardTreeDto.setCode(sampleDto.getCode()); + rawMaterialStandardTreeDto.setLabel(sampleDto.getLabel()); + rawMaterialStandardTreeDto.setValue(sampleDto.getValue()); + rawMaterialStandardTreeDto.setChildren2(sampleDto.getChildren()); + rawMaterialStandardTreeDto.setWorkShopName(sampleTypeDto.getWorkShopName()); + rawMaterialStandardTreeDto.setWorkShopId(sampleTypeDto.getWorkShopId()); + } + } } } } @@ -137,6 +145,7 @@ /** * 鎶ユ + * * @param ids * @return */ @@ -180,6 +189,7 @@ /** * 鎾ら攢鎶ユ + * * @param id * @return */ @@ -193,6 +203,7 @@ /** * 鎵撳嵃鏍囩鏌ヨ + * * @param ids * @return */ @@ -203,6 +214,7 @@ /** * 鎶ユ + * * @param ifsInventoryQuantity * @return */ @@ -233,6 +245,7 @@ /** * 鑾峰彇閾滀骇涓氶摼妫�娴嬫暟鎹� + * * @param id * @return */ @@ -243,6 +256,7 @@ /** * 鍘熸潗鏂欐挙閿�鎺ュ彛 + * * @param ifsInventoryId * @return */ @@ -269,6 +283,7 @@ /** * 鍘熸潗鏂欏厤妫�涓嬪崟 + * * @param list * @param insOrder * @return @@ -345,6 +360,7 @@ /** * 鏌ヨ寰呬笅鍗� + * * @param page * @param ifsInventoryQuantity * @return @@ -356,6 +372,7 @@ /** * 鏌ヨ宸叉楠� + * * @param page * @param ifsInventoryQuantityDto * @return @@ -374,6 +391,7 @@ /** * 鍒犻櫎鍘熸潗鏂欐姤妫�淇℃伅 + * * @param id * @return */ @@ -384,6 +402,7 @@ /** * 鍘熸潗鏂欐斁琛屽厤妫� + * * @param ifsInventoryId * @return */ @@ -437,8 +456,9 @@ /** * 0, 鏃犳彁绀�, 1鎻愮ず 褰撳墠鎵规鐨勬牱鍝佸凡妫�楠岃繃, 鍙互鍏嶆, 2 鎻愮ず 褰撳墠鎵规鐨勬牱鍝佸凡瓒�20鍚�, 闇�瑕佸绾у娆℃楠� - * + * <p> * 鍘熸潗鏂欎笅鍗曢�氱煡鍏嶆鎴栬�呭娆℃楠� + * * @param ifsInventoryId * @return */ @@ -478,6 +498,7 @@ /** * 鎶ユ鍙互鏂板鎶ユ淇℃伅 + * * @param ifsInventoryQuantity */ @Override @@ -489,10 +510,9 @@ } - - /** * 閾滃崟涓濅笅鍗曞厤妫� + * * @param list * @param insOrder */ @@ -589,6 +609,7 @@ /** * 鍘熸潗鏂欒繘鍘傛挙閿�涓嬪崟 + * * @param enterOrderId * @return */ @@ -627,6 +648,7 @@ /** * 鍘熸潗鏂欏搴︽挙閿�涓嬪崟 + * * @param quarterOrderId * @return */ @@ -667,6 +689,7 @@ /** * 鍘熸潗鏂欐姤妫�鍏ㄩ儴淇℃伅瀵煎嚭 + * * @param ifsInventoryQuantityDto * @param response */ @@ -729,6 +752,7 @@ /** * 鍘熸潗鏂欐煡璇㈠彲浠ュ搴︽楠岀殑鍐呭 + * * @param page * @param ifsInventoryQuantityDto * @return @@ -747,6 +771,7 @@ /** * 鎻愬墠鍏ュ簱 + * * @param ifsInventoryId * @return */ @@ -774,6 +799,7 @@ /** * 娣诲姞宸ユ椂 + * * @param insOrder * @param ifsInventoryQuantity */ -- Gitblit v1.9.3