opt:优化解绑包装关系时未找到木箱货位就不处理
This commit is contained in:
@@ -789,11 +789,13 @@ public class PdmBiSubpackagerelationServiceImpl extends ServiceImpl<PdmBiSubpack
|
|||||||
String packageBoxSn = containerName.getPackage_box_sn();
|
String packageBoxSn = containerName.getPackage_box_sn();
|
||||||
WQLObject attrTab = WQLObject.getWQLObject("st_ivt_structattr");
|
WQLObject attrTab = WQLObject.getWQLObject("st_ivt_structattr");
|
||||||
JSONObject attr = attrTab.query("storagevehicle_code = '" + packageBoxSn + "'").uniqueResult(0);
|
JSONObject attr = attrTab.query("storagevehicle_code = '" + packageBoxSn + "'").uniqueResult(0);
|
||||||
attr.put("lock_type","1");
|
if (StringUtils.isNotEmpty(attr)){
|
||||||
attrTab.update(attr);
|
attr.put("lock_type","1");
|
||||||
result.put("message", code+"子卷包装解除成功,同时确认MES装箱以解绑定");
|
attrTab.update(attr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.removeById(containerName.getWorkorder_id());
|
this.removeById(containerName.getWorkorder_id());
|
||||||
|
result.put("message", code+"子卷包装解除成功,同时确认MES装箱以解绑定");
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user