From 89b03eb93bf9e6a1d0b8aa38786403c150530199 Mon Sep 17 00:00:00 2001 From: Kelvin Date: Sat, 4 Jan 2025 11:51:59 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=8F=B0=E8=B4=A6):=20=E6=A0=B9=E6=8D=AEr?= =?UTF-8?q?fid=E6=9F=A5=E8=AF=A2=E5=8F=B0=E8=B4=A6=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ktg/mes/md/service/IBaseKnifeService.java | 12 ++++++++++-- .../md/service/impl/BaseKnifeServiceImpl.java | 17 +++++++++++------ 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/IBaseKnifeService.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/IBaseKnifeService.java index b556d74..250ce2d 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/md/service/IBaseKnifeService.java +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/IBaseKnifeService.java @@ -13,12 +13,20 @@ public interface IBaseKnifeService { /** * 查询工具台账 - * + * * @param baseKnifeId 工具台账主键 - * @return 工具台账 + * @return 工具台账 包含基础物料信息(BOM清单) */ public BaseKnife selectBaseKnifeByBaseKnifeId(Long baseKnifeId); + /** + * 查询工具台账 + * + * @param rfid 工具台账主键 + * @return 工具台账 包含物料基础信息 + */ + public BaseKnife selectBaseKnifeByRfid(String rfid); + /** * 查询工具台账列表 * diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/BaseKnifeServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/BaseKnifeServiceImpl.java index 6dbe079..f439baf 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/BaseKnifeServiceImpl.java +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/BaseKnifeServiceImpl.java @@ -45,12 +45,6 @@ public class BaseKnifeServiceImpl implements IBaseKnifeService { private final WmsBusinessTypeMapper wmsBusinessTypeMapper; private final WmsInPlanDetailEntityServiceImpl wmsInPlanDetailEntityService; - /** - * 查询工具台账 - * - * @param baseKnifeId 工具台账主键 - * @return 工具台账 - */ @Override public BaseKnife selectBaseKnifeByBaseKnifeId(Long baseKnifeId) { BaseKnife baseKnife = baseKnifeMapper.selectBaseKnifeByBaseKnifeId(baseKnifeId); @@ -63,6 +57,17 @@ public class BaseKnifeServiceImpl implements IBaseKnifeService { return baseKnife; } + /** + * 查询工具台账 + * + * @param rfid 工具台账主键 + * @return 工具台账 + */ + @Override + public BaseKnife selectBaseKnifeByRfid(String rfid) { + return baseKnifeMapper.selectBaseKnifeByRfid(rfid); + } + /** * 查询工具台账列表 *