From 3765bfcc8b2371dca2b98926dfaf6ae691e99beb Mon Sep 17 00:00:00 2001 From: Kelvin Date: Fri, 6 Dec 2024 15:27:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=96=99=E7=AE=B1=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E6=A0=B9=E6=8D=AErfid=E6=9F=A5=E8=AF=A2=E6=96=99=E7=AE=B1?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ktg/mes/wm/service/IUcmCtBaseService.java | 8 ++++++++ .../mes/wm/service/impl/UcmCtBaseServiceImpl.java | 11 +++++++++++ .../main/resources/mapper/wm/UcmCtBaseMapper.xml | 15 ++++++++++++++- 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/service/IUcmCtBaseService.java b/ktg-mes/src/main/java/com/ktg/mes/wm/service/IUcmCtBaseService.java index dc13eb2..0fac835 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/service/IUcmCtBaseService.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/service/IUcmCtBaseService.java @@ -22,6 +22,14 @@ public interface IUcmCtBaseService */ public UcmCtBase selectUcmCtBaseByCtBaseId(String ctBaseId); + /** + * 查询料箱管理 + * + * @param code 料箱code rfid + * @return 料箱管理 + */ + public UcmCtBase selectUcmCtBaseByCode(String code); + /** * 查询料箱管理列表 * diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/UcmCtBaseServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/UcmCtBaseServiceImpl.java index 7e4da12..4b8c629 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/UcmCtBaseServiceImpl.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/UcmCtBaseServiceImpl.java @@ -46,6 +46,17 @@ public class UcmCtBaseServiceImpl implements IUcmCtBaseService { return ucmCtBaseMapper.selectUcmCtBaseByCtBaseId(ctBaseId); } + /** + * 查询料箱管理 + * + * @param code 料箱code rfid + * @return 料箱管理 + */ + @Override + public UcmCtBase selectUcmCtBaseByCode(String code) { + return ucmCtBaseMapper.selectUcmCtBaseByCode(code); + } + /** * 查询料箱管理列表 * diff --git a/ktg-mes/src/main/resources/mapper/wm/UcmCtBaseMapper.xml b/ktg-mes/src/main/resources/mapper/wm/UcmCtBaseMapper.xml index c646af5..6a5882d 100644 --- a/ktg-mes/src/main/resources/mapper/wm/UcmCtBaseMapper.xml +++ b/ktg-mes/src/main/resources/mapper/wm/UcmCtBaseMapper.xml @@ -46,7 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select ucb.CT_BASE_ID, ucb.CODE, ucb.TYPE, ucb.REMARK, ucb.CREATE_BY, ucb.CREATE_TIME, ucb.UPDATE_BY, ucb.UPDATE_TIME, bk.base_knife_id, mi.item_name as knife_name, mi.item_code as knife_code, mi.unit_name as knife_unit from UCM_CT_BASE ucb @@ -56,6 +56,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" on ucm.base_knife_id = bk.base_knife_id left join md_item mi on bk.mbb_bd_mrl_id = mi.item_id + where ucb.CODE = #{code} + + +