完善物料绑定前校验
This commit is contained in:
parent
866cac140d
commit
f6a2554263
@ -213,11 +213,10 @@ public class UcmCtBaseServiceImpl implements IUcmCtBaseService {
|
||||
throw new RuntimeException(String.format("绑定失败,物料“%s”不存在", boxItem.getBoxItemRfid().trim()));
|
||||
|
||||
UcmCtMaterial ucmCtMaterialQuery = new UcmCtMaterial();
|
||||
ucmCtMaterialQuery.setCtBaseId(Long.parseLong(ucmCtBaseList.get(0).getCtBaseId()));
|
||||
ucmCtMaterialQuery.setBaseKnifeId(baseKnifeList.get(0).getBaseKnifeId());
|
||||
List<UcmCtMaterial> ucmCtMaterialList = ucmCtMaterialMapper2.selectUcmCtMaterialList(ucmCtMaterialQuery);
|
||||
if (!ucmCtMaterialList.isEmpty())
|
||||
throw new RuntimeException(String.format("绑定失败,物料“%s”已经绑定料箱“%s”", boxItem.getBoxItemRfid().trim(), box.getBoxRfid().trim()));
|
||||
throw new RuntimeException(String.format("绑定失败,物料“%s”已经被其它料箱绑定", boxItem.getBoxItemRfid().trim()));
|
||||
|
||||
UcmCtMaterial ucmCtMaterial = new UcmCtMaterial();
|
||||
ucmCtMaterial.setCtBaseId(Long.parseLong(ucmCtBaseList.get(0).getCtBaseId()));
|
||||
|
Loading…
Reference in New Issue
Block a user