From 0878d3c36d54118573c7e30989e67a98951db62e Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Tue, 12 Aug 2025 16:36:11 +0800 Subject: [PATCH] 2025-08-12 --- .../Impl/TechnicalSpecificationServiceImpl.java | 11 ++++++++++- .../sampleManagement/TechnicalSpecificationMapper.xml | 3 ++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/spring/modules/sampleManagement/service/Impl/TechnicalSpecificationServiceImpl.java b/src/main/java/com/spring/modules/sampleManagement/service/Impl/TechnicalSpecificationServiceImpl.java index a02a50ce..138b03dc 100644 --- a/src/main/java/com/spring/modules/sampleManagement/service/Impl/TechnicalSpecificationServiceImpl.java +++ b/src/main/java/com/spring/modules/sampleManagement/service/Impl/TechnicalSpecificationServiceImpl.java @@ -2370,7 +2370,16 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification .filter(StringUtils::hasText) .collect(Collectors.joining(";")); // 更新印版号 - technicalSpecificationMapper.updateBMPrepressDetailPlateNo(data.getSite(), data.getCodeNo(), guildLineText, data.getCreateBy()); + PlmBmPrepressData plmBmPrepressData = new PlmBmPrepressData(); + plmBmPrepressData.setSite(data.getSite()); + plmBmPrepressData.setCodeNo(data.getCodeNo()); + List prepressDataList = technicalSpecificationMapper.searchBMPrepressDetail(plmBmPrepressData); + if (prepressDataList.isEmpty()) { + plmBmPrepressData.setPlateNo(guildLineText); + technicalSpecificationMapper.saveBMPrepressDetail(plmBmPrepressData); + } else { + technicalSpecificationMapper.updateBMPrepressDetailPlateNo(data.getSite(), data.getCodeNo(), guildLineText, data.getCreateBy()); + } } /** diff --git a/src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml b/src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml index a8f61187..0fcfd3ee 100644 --- a/src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml +++ b/src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml @@ -3314,6 +3314,7 @@ guideline_text, guideline_type FROM plm_routing_work_guide - where site = #{site} and part_no = #{partNo} and routing_revision = #{routingRevision} and routing_type = #{routingType} and alternative_no = #{alternativeNo} and operation_id = #{operationId} + where site = #{site} and part_no = #{partNo} and routing_revision = #{routingRevision} and routing_type = #{routingType} + and alternative_no = #{alternativeNo} and operation_id = #{operationId} and guideline_desc = #{dictLabel} \ No newline at end of file