Browse Source

2025-08-12

master
fengyuan_yang 5 months ago
parent
commit
0878d3c36d
  1. 9
      src/main/java/com/spring/modules/sampleManagement/service/Impl/TechnicalSpecificationServiceImpl.java
  2. 3
      src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml

9
src/main/java/com/spring/modules/sampleManagement/service/Impl/TechnicalSpecificationServiceImpl.java

@ -2370,8 +2370,17 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification
.filter(StringUtils::hasText) .filter(StringUtils::hasText)
.collect(Collectors.joining(";")); .collect(Collectors.joining(";"));
// 更新印版号 // 更新印版号
PlmBmPrepressData plmBmPrepressData = new PlmBmPrepressData();
plmBmPrepressData.setSite(data.getSite());
plmBmPrepressData.setCodeNo(data.getCodeNo());
List<PlmBmPrepressData> prepressDataList = technicalSpecificationMapper.searchBMPrepressDetail(plmBmPrepressData);
if (prepressDataList.isEmpty()) {
plmBmPrepressData.setPlateNo(guildLineText);
technicalSpecificationMapper.saveBMPrepressDetail(plmBmPrepressData);
} else {
technicalSpecificationMapper.updateBMPrepressDetailPlateNo(data.getSite(), data.getCodeNo(), guildLineText, data.getCreateBy()); technicalSpecificationMapper.updateBMPrepressDetailPlateNo(data.getSite(), data.getCodeNo(), guildLineText, data.getCreateBy());
} }
}
/** /**
* 批量更新工具 * 批量更新工具

3
src/main/resources/mapper/sampleManagement/TechnicalSpecificationMapper.xml

@ -3314,6 +3314,7 @@
guideline_text, guideline_text,
guideline_type guideline_type
FROM plm_routing_work_guide 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}
</select> </select>
</mapper> </mapper>
Loading…
Cancel
Save