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} + + +