From c935e18fab3604e493de29b164ea4019244bb182 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期四, 21 五月 2026 17:59:58 +0800
Subject: [PATCH] 对外Mes查询外购订单零件批次属性接口开发
---
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