fix:空木箱入库跟装箱入库任务冲突
This commit is contained in:
@@ -398,9 +398,13 @@ public class PdmBiSubpackagerelationServiceImpl extends ServiceImpl<PdmBiSubpack
|
||||
JSONObject 浅Attr = attrTab
|
||||
.query("zdepth = '1' and row_num = '"+boxAttr.getString("row_num")+"' and col_num = '" + boxAttr.getString("col_num") + "' and layer_num = '"+boxAttr.getString("layer_num")+"'")
|
||||
.uniqueResult(0);
|
||||
// 判断浅货位是否有木箱
|
||||
if (!ObjectUtil.isEmpty(浅Attr.getString("storagevehicle_code"))) {
|
||||
// 判断是否被锁定
|
||||
if (!ObjectUtil.isEmpty(浅Attr)){
|
||||
//判断有没有浅货位入库任务
|
||||
if (ObjectUtil.isEmpty(浅Attr.getString("storagevehicle_code"))){
|
||||
if (!浅Attr.getString("lock_type").equals(IOSEnum.LOCK_TYPE.code("未锁定"))) {
|
||||
throw new BadRequestException("木箱货位"+boxAttr.getString("struct_code")+"的浅货位存在正在执行的任务");
|
||||
}
|
||||
}else {
|
||||
if (浅Attr.getString("lock_type").equals(IOSEnum.LOCK_TYPE.code("未锁定"))) {
|
||||
// 判断浅货位木箱和深货位木箱是否相同规格
|
||||
task_group_id = outBoxManageService.createBoxMove(浅Attr);
|
||||
@@ -417,6 +421,7 @@ public class PdmBiSubpackagerelationServiceImpl extends ServiceImpl<PdmBiSubpack
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 生成任务
|
||||
JSONObject jsonTaskParam = new JSONObject();
|
||||
|
||||
Reference in New Issue
Block a user