Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
Gree
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 591fe8ab
由
sunke
编写于
2020-11-03 14:53:33 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
Fixed: 已完成需求单不关闭的问题
1 个父辈
4d567aba
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
44 行增加
和
11 行删除
myproject/src/main/java/com/myproject/webapp/controller/qisda/util/OutInfoCache.java
myproject/src/main/webapp/WEB-INF/pages/updateHistory.jsp
myproject/src/main/webapp/decorators/metro.jsp
myproject/src/main/java/com/myproject/webapp/controller/qisda/util/OutInfoCache.java
查看文件 @
591fe8a
...
...
@@ -98,6 +98,21 @@ public class OutInfoCache {
OutInfo
suggestOutInfo
=
null
;
Date
now
=
new
Date
();
for
(
OutInfo
unEndOutInfo
:
getCachedOutInfos
())
{
if
(!
unEndOutInfo
.
isClosed
()
&&
unEndOutInfo
.
isTaskEnd
()
&&
!
unEndOutInfo
.
isReelCutAction
()){
long
lastEndTime
=
unEndOutInfo
.
getTaskEndTime
();
if
(
now
.
getTime
()
-
lastEndTime
>=
5
*
60
*
1000
){
//任务已结束5分钟
if
(
unEndOutInfo
.
isEndOutInfo
()){
log
.
info
(
"需求单["
+
unEndOutInfo
.
gethSerial
()+
"]已执行过,且是工单的最后一个需求单,关闭工单"
+
unEndOutInfo
.
getSo
()+
"["
+
unEndOutInfo
.
getSoseq
()+
"]"
);
closeSoSeq
(
unEndOutInfo
.
getSoseq
());
}
else
{
log
.
info
(
"需求单["
+
unEndOutInfo
.
gethSerial
()+
"]已执行过,关闭需求单,不再自动缺料重发"
);
closeHSerial
(
unEndOutInfo
.
gethSerial
());
}
}
}
if
(
unEndOutInfo
.
isReelCutAction
()
||
unEndOutInfo
.
isUrgentAction
()
||
unEndOutInfo
.
isCheckAction
()){
//单独出库,分盘料或盘点料,不按时间可直接执行,距离上次任务完成5分钟后才可再次执行
if
(
unEndOutInfo
.
isTaskEnd
()
||
unEndOutInfo
.
isNew
()){
...
...
@@ -355,6 +370,7 @@ public class OutInfoCache {
*/
public
List
<
OutInfo
>
getCachedOutInfos
(){
List
<
OutInfo
>
outInfoList
=
Lists
.
newArrayList
();
long
now
=
System
.
currentTimeMillis
();
for
(
OutInfo
outInfo
:
outInfoMap
.
values
())
{
if
(
outInfo
.
isClosed
()
||
outInfo
.
isSendEnd
()){
removeFromCache
(
outInfo
.
gethSerial
());
...
...
@@ -780,16 +796,16 @@ public class OutInfoCache {
}
}
else
{
//已经执行过的首盘和补料,如果是工单的最后一个需求单,关闭工单
if
(
outInfo
.
isFirstReelAction
()
||
outInfo
.
isTailAction
()){
if
(
outInfo
.
isEndOutInfo
()){
log
.
info
(
"需求单["
+
outInfo
.
gethSerial
()+
"]已执行过,且是工单的最后一个需求单,关闭工单"
+
outInfo
.
getSo
()+
"["
+
outInfo
.
getSoseq
()+
"]"
);
closeSoSeq
(
outInfo
.
getSoseq
());
}
else
{
log
.
info
(
"需求单["
+
outInfo
.
gethSerial
()+
"]已执行过,关闭需求单,不再自动缺料重发"
);
closeHSerial
(
outInfo
.
gethSerial
());
}
}
//
if(outInfo.isFirstReelAction() || outInfo.isTailAction()){
//
if(outInfo.isEndOutInfo()){
//
log.info("需求单["+outInfo.gethSerial()+"]已执行过,且是工单的最后一个需求单,关闭工单"+outInfo.getSo()+"["+outInfo.getSoseq()+"]");
//
closeSoSeq(outInfo.getSoseq());
//
}else{
//
log.info("需求单["+outInfo.gethSerial()+"]已执行过,关闭需求单,不再自动缺料重发");
//
closeHSerial(outInfo.gethSerial());
//
//
}
//
}
}
log
.
info
(
"执行需求单["
+
hSerial
+
"]出库"
);
...
...
myproject/src/main/webapp/WEB-INF/pages/updateHistory.jsp
查看文件 @
591fe8a
...
...
@@ -12,6 +12,23 @@
<div class="row">
<div class="col-md-12">
<ul class="timeline">
<li class="timeline-green">
<div class="timeline-time">
<span class="date">2020</span>
<span class="time">11-03</span>
</div>
<div class="timeline-icon">
<i class="fa fa-clock-o"></i>
</div>
<div class="timeline-body">
<h2>版本: V2020110309</h2>
<div class="timeline-content">
<ul>
<li>Fixed: 已完成需求单不关闭的问题</li>
</ul>
</div>
</div>
</li>
<li class="timeline-blue">
<div class="timeline-time">
<span class="date">2020 </span>
...
...
myproject/src/main/webapp/decorators/metro.jsp
查看文件 @
591fe8a
...
...
@@ -239,7 +239,7 @@
<div
class=
"page-footer-inner"
>
2016
©
<a
href=
"${ctx}/updateHistory.html"
>
SMD BOX
</a>
</div>
<span
class=
"right"
style=
"color: #a3a3a3;"
>
Version: 2020.1
0.30
</span>
<span
class=
"right"
style=
"color: #a3a3a3;"
>
Version: 2020.1
1.03
</span>
<div
class=
"scroll-to-top"
>
<i
class=
"icon-arrow-up"
></i>
</div>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论