绑定料箱包含隐藏物料

This commit is contained in:
刘名喜 2024-12-12 16:13:09 +08:00
parent 48cc27d3c6
commit 26561fd2a7
3 changed files with 7 additions and 4 deletions

View File

@ -125,7 +125,7 @@ public class BomRouteServiceImpl implements IBomRouteService
mbbProduBom.setBomRouteId(bomRouteId);
list.add(mbbProduBom);
}
if (!list.isEmpty())
if (!list .isEmpty())
{
bomRouteMapper.batchMbbProduBom(list);
}

View File

@ -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()));

View File

@ -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>