feat(料箱管理): 根据rfid查询料箱管理
This commit is contained in:
parent
6df503cf41
commit
3765bfcc8b
@ -22,6 +22,14 @@ public interface IUcmCtBaseService
|
||||
*/
|
||||
public UcmCtBase selectUcmCtBaseByCtBaseId(String ctBaseId);
|
||||
|
||||
/**
|
||||
* 查询料箱管理
|
||||
*
|
||||
* @param code 料箱code rfid
|
||||
* @return 料箱管理
|
||||
*/
|
||||
public UcmCtBase selectUcmCtBaseByCode(String code);
|
||||
|
||||
/**
|
||||
* 查询料箱管理列表
|
||||
*
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询料箱管理列表
|
||||
*
|
||||
|
@ -46,7 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectUcmCtBaseByCtBaseId" parameterType="String" resultMap="UcmCtBaseBaseKnifeResult">
|
||||
<select id="selectUcmCtBaseByCode" parameterType="String" resultMap="UcmCtBaseBaseKnifeResult">
|
||||
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}
|
||||
</select>
|
||||
|
||||
<select id="selectUcmCtBaseByCtBaseId" parameterType="String" resultMap="UcmCtBaseBaseKnifeResult">
|
||||
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
|
||||
left join ucm_ct_material ucm
|
||||
on ucb.ct_base_id = ucm.ct_base_id
|
||||
left join base_knife bk
|
||||
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.CT_BASE_ID = #{ctBaseId}
|
||||
</select>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user