Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
SmdBox
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit c83ace94
由
zshaohui
编写于
2023-05-15 11:18:49 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
过期物料不能入
1 个父辈
5e868fdb
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
10 行增加
和
20 行删除
myproject/src/main/java/com/myproject/webapp/controller/storage/NLPShelfController.java
myproject/src/main/java/com/myproject/webapp/controller/storage/NLPShelfController.java
查看文件 @
c83ace9
...
...
@@ -114,28 +114,18 @@ public class NLPShelfController extends BaseController {
return
getText
(
"shelf.msg.noTask"
,
new
String
[]{
inPos
.
getPosName
()},
request
.
getLocale
(),
"操作失败,已在库位["
+
inPos
.
getPosName
()+
"]中,未找到对应的出库任务"
);
}
log
.
info
(
"开始保存任务:"
+
barcode
.
getBarcode
());
List
<
Storage
>
storageList
=
Lists
.
newArrayList
(
storage
);
StoragePos
pos
=
taskService
.
findEmptyPosForPutIn
(
storageList
,
barcode
);
if
(
pos
!=
null
){
putIn
(
StorageDataController
.
getLoginUsername
(),
storage
.
getId
(),
barcode
);
return
"操作成功,请放入料架"
;
// List<Storage> storageList = Lists.newArrayList(storage);
// StoragePos pos = taskService.findEmptyPosForPutIn(storageList, barcode);
// int delayCloseTime = 30000;
// String color = "green";
// if(pos != null){
// log.info(barcode.getPartNumber()+" [ "+barcode.getBarcode()+" ] " + "入库到:" + storage.getName()+"["+cid+"] " + pos.getPosName());
// taskService.addTaskToFinished(pos,barcode,null);
// openAndCloseLights(storage,pos.getPosName(),delayCloseTime,color);
// pos.setCanCheckOutTime(System.currentTimeMillis() + delayCloseTime);
// return "OK"+getText("shelf.msg.inOk",new String[]{pos.getPosName()},request.getLocale(),"操作成功,请放入库位["+pos.getPosName()+"]");
// }else{
// //库位没找到
// String sizeInfo = barcode.getPlateSize()+" x "+ barcode.getHeight();
// String msg = "未找到适合["+sizeInfo +"]的库位";
// log.info(msg);
// msg = getText("shelf.msg.inError",new String[]{sizeInfo},request.getLocale(),msg);
// return msg;
// }
}
else
{
//库位没找到
String
msg
=
"未找到适合的库位"
;
log
.
info
(
msg
);
msg
=
getText
(
"shelf.msg.inError"
,
new
String
[]{},
request
.
getLocale
(),
msg
);
return
msg
;
}
}
catch
(
Exception
e
)
{
log
.
error
(
"Error:"
+
e
.
getMessage
());
return
getText
(
e
.
getMessage
(),
null
,
request
.
getLocale
(),
e
.
getMessage
());
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论