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); + } + /** * 查询工具台账列表 *