opt:优化解绑包装关系时未找到木箱货位就不处理

This commit is contained in:
DESKTOP-5DIJMF9\admin
2025-04-13 13:14:48 +08:00
parent d67fe10455
commit b32683cd82

View File

@@ -789,11 +789,13 @@ public class PdmBiSubpackagerelationServiceImpl extends ServiceImpl<PdmBiSubpack
String packageBoxSn = containerName.getPackage_box_sn();
WQLObject attrTab = WQLObject.getWQLObject("st_ivt_structattr");
JSONObject attr = attrTab.query("storagevehicle_code = '" + packageBoxSn + "'").uniqueResult(0);
attr.put("lock_type","1");
attrTab.update(attr);
result.put("message", code+"子卷包装解除成功,同时确认MES装箱以解绑定");
if (StringUtils.isNotEmpty(attr)){
attr.put("lock_type","1");
attrTab.update(attr);
}
}
this.removeById(containerName.getWorkorder_id());
result.put("message", code+"子卷包装解除成功,同时确认MES装箱以解绑定");
return result;
}