Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
SmdBox
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit bf230fa3
由
孙克
编写于
2023-04-11 16:05:38 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
界面展示的服务器异常消息手动清除功能
工单监控日志去除,将错误工单文件移到error文件夹
1 个父辈
c2016255
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
32 行增加
和
21 行删除
myproject/src/main/java/com/myproject/api/OrderFileWatch.java
myproject/src/main/java/com/myproject/webapp/controller/webService/ITaskService.java
myproject/src/main/java/com/myproject/webapp/controller/webService/StatusController.java
myproject/src/main/java/com/myproject/webapp/controller/webService/TaskService.java
myproject/src/main/webapp/WEB-INF/pages/storage/batchBoxView.jsp
myproject/src/main/webapp/decorators/metro.jsp
storage.iml
myproject/src/main/java/com/myproject/api/OrderFileWatch.java
查看文件 @
bf230fa
...
@@ -176,7 +176,7 @@ public class OrderFileWatch {
...
@@ -176,7 +176,7 @@ public class OrderFileWatch {
}
}
}
}
resultFile
=
new
File
(
localDir
+
File
.
separator
+
"sucess"
,
backupFileName
);
//
resultFile = new File(localDir+File.separator + "sucess",backupFileName);
}
}
if
(
resultFile
!=
null
){
if
(
resultFile
!=
null
){
...
@@ -299,10 +299,10 @@ public class OrderFileWatch {
...
@@ -299,10 +299,10 @@ public class OrderFileWatch {
reelId
=
lineValues
[
14
];
reelId
=
lineValues
[
14
];
if
(
reelId
.
contains
(
","
)){
if
(
reelId
.
contains
(
","
)){
reelId
=
reelId
.
split
(
";"
)[
0
];
reelId
=
reelId
.
split
(
";"
)[
0
];
log
.
info
(
"ReelId has more vlues, only use ["
+
reelId
+
"],ignore others."
);
//
log.info("ReelId has more vlues, only use ["+reelId+"],ignore others.");
}
}
}
else
{
}
else
{
log
.
warn
(
"行[reelId="
+
reelId
+
"]的V列["
+
needOutStr
+
"]不包含TOWER,此行忽略"
);
//
log.warn("行[reelId="+reelId + "]的V列["+needOutStr+"]不包含TOWER,此行忽略");
}
}
}
else
{
}
else
{
...
@@ -311,7 +311,7 @@ public class OrderFileWatch {
...
@@ -311,7 +311,7 @@ public class OrderFileWatch {
}
}
}
}
if
(
reelId
.
isEmpty
()){
if
(
reelId
.
isEmpty
()){
log
.
warn
(
"行[reelId="
+
reelId
+
"]中RI 为空,此行忽略"
);
//
log.warn("行[reelId="+reelId + "]中RI 为空,此行忽略");
}
else
{
}
else
{
int
num
=
1
;
int
num
=
1
;
LiteOrderItem
item
=
new
LiteOrderItem
();
LiteOrderItem
item
=
new
LiteOrderItem
();
...
...
myproject/src/main/java/com/myproject/webapp/controller/webService/ITaskService.java
查看文件 @
bf230fa
...
@@ -54,6 +54,8 @@ public interface ITaskService {
...
@@ -54,6 +54,8 @@ public interface ITaskService {
List
<
DataLog
>
getFinishedTasks
();
List
<
DataLog
>
getFinishedTasks
();
void
clearServerException
(
String
cid
);
Exception
getServerException
(
String
cid
);
Exception
getServerException
(
String
cid
);
StatusBean
getStatus
(
String
cid
);
StatusBean
getStatus
(
String
cid
);
...
...
myproject/src/main/java/com/myproject/webapp/controller/webService/StatusController.java
查看文件 @
bf230fa
...
@@ -48,6 +48,15 @@ public class StatusController extends BaseController{
...
@@ -48,6 +48,15 @@ public class StatusController extends BaseController{
return
getStatus
(
cid
,
request
);
return
getStatus
(
cid
,
request
);
}
}
@RequestMapping
(
value
=
"/clearServerMsg"
)
@ResponseBody
public
String
clearServerMsg
(
@RequestParam
String
cid
,
HttpServletRequest
request
)
{
if
(!
Strings
.
isNullOrEmpty
(
cid
)){
taskService
.
clearServerException
(
cid
);
}
return
""
;
}
private
StatusBean
getStatus
(
String
cid
,
HttpServletRequest
request
){
private
StatusBean
getStatus
(
String
cid
,
HttpServletRequest
request
){
StatusBean
statusBean
=
taskService
.
getStatus
(
cid
);
StatusBean
statusBean
=
taskService
.
getStatus
(
cid
);
statusBean
.
setShowMsg
(
request
.
getLocale
());
statusBean
.
setShowMsg
(
request
.
getLocale
());
...
...
myproject/src/main/java/com/myproject/webapp/controller/webService/TaskService.java
查看文件 @
bf230fa
...
@@ -21,8 +21,6 @@ import com.myproject.webapp.controller.webService.boxHandler.SmdXlBoxHandler;
...
@@ -21,8 +21,6 @@ import com.myproject.webapp.controller.webService.boxHandler.SmdXlBoxHandler;
import
com.myproject.webapp.controller.webService.boxHandler.VerticalBoxHandler
;
import
com.myproject.webapp.controller.webService.boxHandler.VerticalBoxHandler
;
import
com.myproject.util.HttpHelper
;
import
com.myproject.util.HttpHelper
;
import
com.myproject.util.StorageConstants
;
import
com.myproject.util.StorageConstants
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.math.RandomUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -1505,6 +1503,11 @@ public class TaskService implements ITaskService {
...
@@ -1505,6 +1503,11 @@ public class TaskService implements ITaskService {
}
}
@Override
@Override
public
void
clearServerException
(
String
cid
){
log
.
info
(
"清理["
+
cid
+
"]的异常消息"
);
serverExceptions
.
remove
(
cid
);
}
@Override
public
Exception
getServerException
(
String
cid
)
{
public
Exception
getServerException
(
String
cid
)
{
return
serverExceptions
.
get
(
cid
);
return
serverExceptions
.
get
(
cid
);
}
}
...
...
myproject/src/main/webapp/WEB-INF/pages/storage/batchBoxView.jsp
查看文件 @
bf230fa
...
@@ -660,6 +660,11 @@
...
@@ -660,6 +660,11 @@
"999":"${status_999}"
"999":"${status_999}"
};
};
clearMsg = function(){
$.get('${ctx}/service/store/clearServerMsg?cid=${show}', function (resultData) {
$("#clientMsg").html("");
});
}
function flushStatus(){
function flushStatus(){
$.get('${ctx}/service/store/status?cid=${show}', function (statusBean) {
$.get('${ctx}/service/store/status?cid=${show}', function (statusBean) {
...
@@ -691,14 +696,18 @@
...
@@ -691,14 +696,18 @@
}else{
}else{
var statusTxt = statusMsg["999"];
var statusTxt = statusMsg["999"];
$("#smdstatus").html("${boxStatus_label}: ["+statusTxt+"]");
$("#smdstatus").html("${boxStatus_label}: ["+statusTxt+"]");
var msgTxt = statusBean.msg;
if(msgTxt){
$("#clientMsg").html(msgTxt+"<a href='#' onclick='clearMsg();'> x </a>");
}else{
$("#clientMsg").html("");
$("#clientMsg").html("");
$("#clientMsg").html(statusBean.msg);
}
//$("#clientMsg").html(statusBean.msg);
//$("#doorStatus").html("${doorStatus_label}: --");
//$("#doorStatus").html("${doorStatus_label}: --");
}
}
});
});
}
}
setInterval(function(){
setInterval(function(){
updateTasks("${show}");
updateTasks("${show}");
flushUsageItem();
flushUsageItem();
...
...
myproject/src/main/webapp/decorators/metro.jsp
查看文件 @
bf230fa
...
@@ -189,7 +189,7 @@
...
@@ -189,7 +189,7 @@
Copyright
©
2021 Neotel SMF
Copyright
©
2021 Neotel SMF
<
%--
<a
href=
"${ctx}/updateHistory.html"
>
SMF
</a>
--%>
<
%--
<a
href=
"${ctx}/updateHistory.html"
>
SMF
</a>
--%>
</div>
</div>
<span
class=
"right"
style=
"color: #a3a3a3;"
>
Version:
2.6.1310
</span>
<span
class=
"right"
style=
"color: #a3a3a3;"
>
Version:
3.4.1116
</span>
<div
class=
"scroll-to-top"
>
<div
class=
"scroll-to-top"
>
<i
class=
"icon-arrow-up"
></i>
<i
class=
"icon-arrow-up"
></i>
</div>
</div>
...
...
storage.iml
deleted
100644 → 0
查看文件 @
c201625
<?xml version="1.0" encoding="UTF-8"?>
<module
org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule=
"true"
type=
"JAVA_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
LANGUAGE_LEVEL=
"JDK_1_7"
inherit-compiler-output=
"false"
>
<output
url=
"file://$MODULE_DIR$/target/classes"
/>
<output-test
url=
"file://$MODULE_DIR$/target/test-classes"
/>
<content
url=
"file://$MODULE_DIR$"
>
<excludeFolder
url=
"file://$MODULE_DIR$/target"
/>
</content>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
</module>
\ No newline at end of file
\ No newline at end of file
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论