From 55db6f66c093c07df100cb0e609091030c2a4925 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期四, 24 九月 2026 09:19:20 +0800
Subject: [PATCH] feat(process): 完善检验委托单功能实现绑定和关联管理 - 实现检验委托单与成品下单的绑定功能,包括新增绑定、解除绑定和变更绑定关系 - 添加检验委托单关联状态查询和未绑定委托单筛选功能 - 实现检验委托单绑定日志记录和报告同步功能
---
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