绑定料箱包含隐藏物料
This commit is contained in:
parent
48cc27d3c6
commit
26561fd2a7
@ -125,7 +125,7 @@ public class BomRouteServiceImpl implements IBomRouteService
|
||||
mbbProduBom.setBomRouteId(bomRouteId);
|
||||
list.add(mbbProduBom);
|
||||
}
|
||||
if (!list.isEmpty())
|
||||
if (!list .isEmpty())
|
||||
{
|
||||
bomRouteMapper.batchMbbProduBom(list);
|
||||
}
|
||||
|
@ -208,7 +208,7 @@ public class UcmCtBaseServiceImpl implements IUcmCtBaseService {
|
||||
|
||||
BaseKnife baseKnifeQuery = new BaseKnife();
|
||||
baseKnifeQuery.setRfid(boxItem.getBoxItemRfid().trim());
|
||||
List<BaseKnife> baseKnifeList = baseKnifeMapper.selectBaseKnifeList(baseKnifeQuery);
|
||||
List<BaseKnife> baseKnifeList = baseKnifeMapper.selectBaseKnifeNotValidList(baseKnifeQuery);
|
||||
if (baseKnifeList.isEmpty())
|
||||
throw new RuntimeException(String.format("绑定失败,物料“%s”不存在", boxItem.getBoxItemRfid().trim()));
|
||||
|
||||
@ -234,7 +234,7 @@ public class UcmCtBaseServiceImpl implements IUcmCtBaseService {
|
||||
|
||||
BaseKnife baseKnifeQuery = new BaseKnife();
|
||||
baseKnifeQuery.setRfid(boxItem.getBoxItemRfid().trim());
|
||||
List<BaseKnife> baseKnifeList = baseKnifeMapper.selectBaseKnifeList(baseKnifeQuery);
|
||||
List<BaseKnife> baseKnifeList = baseKnifeMapper.selectBaseKnifeNotValidList(baseKnifeQuery);
|
||||
if (baseKnifeList.isEmpty())
|
||||
throw new RuntimeException(String.format("解绑失败,物料“%s”不存在", boxItem.getBoxItemRfid().trim()));
|
||||
|
||||
|
@ -192,10 +192,13 @@
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<!-- IS_VALID = 1 出粗则添加该指令 -->
|
||||
<select id="selectBaseKnifeNotValidList" parameterType="BaseKnife" resultMap="BaseKnifeResult">
|
||||
<include refid="selectBaseKnifeVo"/>
|
||||
<where>
|
||||
IS_VALID = 1
|
||||
<if test="rfid != null and rfid != ''">
|
||||
and RFID = #{rfid}
|
||||
</if>
|
||||
<if test="mbbBdMrlId != null and mbbBdMrlId != ''">
|
||||
and MBB_BD_MRL_ID = #{mbbBdMrlId}
|
||||
</if>
|
||||
|
Loading…
Reference in New Issue
Block a user