Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
Gree
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d180a30f
由
sunke
编写于
2020-09-21 11:19:34 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
自动关闭工单周期改为10天
统计需求时,如果人为调整的时间与出库时间间隔一天,使用出库时间进行统计
1 个父辈
31d0f0af
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
50 行增加
和
5 行删除
myproject/src/main/java/com/myproject/bean/update/qisda/OutInfo.java
myproject/src/main/java/com/myproject/webapp/controller/qisda/util/OutInfoCache.java
myproject/src/main/webapp/WEB-INF/pages/updateHistory.jsp
myproject/src/main/java/com/myproject/bean/update/qisda/OutInfo.java
查看文件 @
d180a30
...
@@ -448,6 +448,14 @@ public class OutInfo extends BaseMongoBean {
...
@@ -448,6 +448,14 @@ public class OutInfo extends BaseMongoBean {
this
.
totalBindNum
=
totalBindNum
;
this
.
totalBindNum
=
totalBindNum
;
}
}
public
Date
getTaskNeedOutDate
()
{
return
taskNeedOutDate
;
}
public
void
setTaskNeedOutDate
(
Date
taskNeedOutDate
)
{
this
.
taskNeedOutDate
=
taskNeedOutDate
;
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
"OutInfo{"
+
return
"OutInfo{"
+
...
...
myproject/src/main/java/com/myproject/webapp/controller/qisda/util/OutInfoCache.java
查看文件 @
d180a30
...
@@ -204,12 +204,12 @@ public class OutInfoCache {
...
@@ -204,12 +204,12 @@ public class OutInfoCache {
List
<
OutInfo
>
unEndOutInfoList
=
outInfoDao
.
findUnEndOutInfos
();
List
<
OutInfo
>
unEndOutInfoList
=
outInfoDao
.
findUnEndOutInfos
();
long
now
=
System
.
currentTimeMillis
();
long
now
=
System
.
currentTimeMillis
();
for
(
OutInfo
outInfo
:
unEndOutInfoList
)
{
for
(
OutInfo
outInfo
:
unEndOutInfoList
)
{
if
(
now
-
outInfo
.
getMdate
().
getTime
()
>
3
*
24
*
60
*
60
*
1000
){
if
(
now
-
outInfo
.
getMdate
().
getTime
()
>
10
*
24
*
60
*
60
*
1000
){
//
3
天前的需求单(非紧急料),关闭,并解绑
//
10
天前的需求单(非紧急料),关闭,并解绑
if
(!
outInfo
.
isUrgentAction
()){
if
(!
outInfo
.
isUrgentAction
()){
String
so
=
outInfo
.
getSo
();
String
so
=
outInfo
.
getSo
();
String
mDataStr
=
DateUtil
.
toDateString
(
outInfo
.
getMdate
(),
"yyyy-MM-dd HH:mm"
);
String
mDataStr
=
DateUtil
.
toDateString
(
outInfo
.
getMdate
(),
"yyyy-MM-dd HH:mm"
);
log
.
info
(
"需求单hSerial=["
+
outInfo
.
gethSerial
()+
"]工单so=["
+
so
+
"]soseq=["
+
outInfo
.
getSoseq
()+
"]的必须出库日期["
+
mDataStr
+
"]为
3
天前,关闭并解绑工单"
);
log
.
info
(
"需求单hSerial=["
+
outInfo
.
gethSerial
()+
"]工单so=["
+
so
+
"]soseq=["
+
outInfo
.
getSoseq
()+
"]的必须出库日期["
+
mDataStr
+
"]为
10
天前,关闭并解绑工单"
);
closeSoSeq
(
outInfo
.
getSoseq
());
closeSoSeq
(
outInfo
.
getSoseq
());
}
}
...
@@ -542,8 +542,8 @@ public class OutInfoCache {
...
@@ -542,8 +542,8 @@ public class OutInfoCache {
public
void
updateMustExeOutInfo
(){
public
void
updateMustExeOutInfo
(){
Date
now
=
new
Date
();
Date
now
=
new
Date
();
for
(
OutInfo
outInfo
:
outInfoMap
.
values
())
{
for
(
OutInfo
outInfo
:
outInfoMap
.
values
())
{
if
(
now
.
getTime
()
-
outInfo
.
getMdate
().
getTime
()
>
3
*
24
*
60
*
60
*
1000
){
if
(
now
.
getTime
()
-
outInfo
.
getMdate
().
getTime
()
>
10
*
24
*
60
*
60
*
1000
){
//
3
天前的需求单(非紧急料),关闭,并解绑
//
10
天前的需求单(非紧急料),关闭,并解绑
if
(!
outInfo
.
isUrgentAction
()){
if
(!
outInfo
.
isUrgentAction
()){
String
so
=
outInfo
.
getSo
();
String
so
=
outInfo
.
getSo
();
log
.
info
(
"需求单hSerial=["
+
outInfo
.
gethSerial
()+
"]工单so=["
+
so
+
"]soseq=["
+
outInfo
.
getSoseq
()+
"]的必须出库日期["
+
outInfo
.
getMdate
()+
"]为3天前,关闭并解绑工单"
);
log
.
info
(
"需求单hSerial=["
+
outInfo
.
gethSerial
()+
"]工单so=["
+
so
+
"]soseq=["
+
outInfo
.
getSoseq
()+
"]的必须出库日期["
+
outInfo
.
getMdate
()+
"]为3天前,关闭并解绑工单"
);
...
@@ -696,9 +696,27 @@ public class OutInfoCache {
...
@@ -696,9 +696,27 @@ public class OutInfoCache {
boolean
outInfoExecuted
=
outInfo
.
getFirstExecuteTime
()
>
0
;
boolean
outInfoExecuted
=
outInfo
.
getFirstExecuteTime
()
>
0
;
if
(!
outInfoExecuted
){
if
(!
outInfoExecuted
){
//如果需求时间与当前时间不是同一天,更新需求时间为当前时间
Date
needOutDate
=
outInfo
.
getTaskNeedOutDate
();
if
(
needOutDate
!=
null
){
Date
now
=
new
Date
();
String
needOutDateStr
=
DateUtil
.
toDateString
(
needOutDate
);
String
todayDateStr
=
DateUtil
.
toDateString
(
now
);
if
(!
needOutDateStr
.
equals
(
todayDateStr
)){
log
.
info
(
"需求单["
+
outInfo
.
gethSerial
()+
"]需求时间不是当天,修改为执行时间"
);
outInfo
.
setTaskNeedOutDate
(
now
);
outInfo
=
outInfoDao
.
save
(
outInfo
);
}
}
if
(
outInfo
.
isFirstReelAction
()
||
outInfo
.
isTailAction
()){
if
(
outInfo
.
isFirstReelAction
()
||
outInfo
.
isTailAction
()){
QisdaCache
.
setCurrentOrderHSerial
(
outInfo
.
gethSerial
());
QisdaCache
.
setCurrentOrderHSerial
(
outInfo
.
gethSerial
());
}
}
}
else
{
//已经执行过的首盘和补料,关闭需求单
if
(
outInfo
.
isFirstReelAction
()
||
outInfo
.
isTailAction
()){
//log.info("需求单["+outInfo.gethSerial()+"]已执行过,关闭");
//closeHSerial(outInfo.gethSerial());
}
}
}
log
.
info
(
"执行需求单["
+
hSerial
+
"]出库"
);
log
.
info
(
"执行需求单["
+
hSerial
+
"]出库"
);
...
...
myproject/src/main/webapp/WEB-INF/pages/updateHistory.jsp
查看文件 @
d180a30
...
@@ -12,6 +12,25 @@
...
@@ -12,6 +12,25 @@
<div class="row">
<div class="row">
<div class="col-md-12">
<div class="col-md-12">
<ul class="timeline">
<ul class="timeline">
<li class="timeline-blue">
<div class="timeline-time">
<span class="date">2020 </span>
<span class="time">09-18 </span>
</div>
<div class="timeline-icon">
<i class="fa fa-clock-o"></i>
</div>
<div class="timeline-body">
<h2>版本: V2020091811</h2>
<div class="timeline-content">
<ul>
<li>自动关闭工单周期改为10天</li>
<li>统计需求时,如果人为调整的时间与出库时间间隔一天,使用出库时间进行统计</li>
</ul>
</div>
</div>
</li>
<li class="timeline-yellow">
<li class="timeline-yellow">
<div class="timeline-time">
<div class="timeline-time">
<span class="date">2020 </span>
<span class="date">2020 </span>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论