From 0debf5b7bb0246eaef1397975cdb16f4adb9e8d9 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期四, 29 十月 2026 14:36:31 +0800
Subject: [PATCH] refactor(inspection-order): 1.检验委托单绑定机制支持多次下单 2.合格率统计口径调整 3.外购铜导体推送入库MES增加米重 4.报告英文字段调整
---
inspect-server/src/main/java/com/ruoyi/inspect/service/impl/IfsPartPropsRecordServiceImpl.java | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/IfsPartPropsRecordServiceImpl.java b/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/IfsPartPropsRecordServiceImpl.java
index c51ed06..d3c3072 100644
--- a/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/IfsPartPropsRecordServiceImpl.java
+++ b/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/IfsPartPropsRecordServiceImpl.java
@@ -151,6 +151,29 @@
public IfsPartPropsRecordDTO getOneByContract(IfsInventoryQuantityDto ifsInventoryQuantityDto) {
return baseMapper.selectOneByContract(ifsInventoryQuantityDto);
}
+
+ @Override
+ public IfsPartPropsRecordDTO getIfsPartProps(IfsInventoryQuantityDto ifsPartPropsRecordDTO) {
+ validateParams(ifsPartPropsRecordDTO);
+ ifsPartPropsRecordDTO.setOrderType(OrderType.WG.getValue());
+ return baseMapper.selectOneByContract(ifsPartPropsRecordDTO);
+ }
+
+ void validateParams(IfsInventoryQuantityDto ifsPartPropsRecordDTO){
+ if(Objects.isNull(ifsPartPropsRecordDTO)){
+ throw new RuntimeException("浼犲叆鍙傛暟涓嶈兘涓虹┖");
+ }
+ if(StringUtils.isBlank(ifsPartPropsRecordDTO.getContract())){
+ throw new RuntimeException("宸ュ巶鍩熶笉鑳戒负绌�");
+ }
+ if(StringUtils.isBlank(ifsPartPropsRecordDTO.getUpdateBatchNo())){
+ throw new RuntimeException("鎵规鍙蜂笉鑳戒负绌�");
+ }
+ if(StringUtils.isBlank(ifsPartPropsRecordDTO.getPartNo())){
+ throw new RuntimeException("闆朵欢鍙蜂笉鑳戒负绌�");
+ }
+ }
+
}
--
Gitblit v1.9.3