opt:优化解绑包装关系时未找到木箱货位就不处理
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user