Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
QisdaNew
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 07e69815
由
sunke
编写于
2023-02-08 09:58:32 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修正禁用托盘接口BUG
1 个父辈
40272ac3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
37 行增加
和
22 行删除
myproject/src/main/java/com/myproject/webapp/controller/webService/QisdaDisabledTrayController.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/webService/QisdaDisabledTrayController.java
查看文件 @
07e6981
...
@@ -85,30 +85,28 @@ public class QisdaDisabledTrayController {
...
@@ -85,30 +85,28 @@ public class QisdaDisabledTrayController {
if
(
Strings
.
isBlank
(
trayList
)){
if
(
Strings
.
isBlank
(
trayList
)){
trayList
=
""
;
trayList
=
""
;
}
}
if
(
Strings
.
isNotBlank
(
trayList
)){
Map
<
String
,
String
>
disableMap
=
new
HashMap
<>();
Map
<
String
,
String
>
disableMap
=
new
HashMap
<>();
List
<
String
>
newDisabeldTrayList
=
Lists
.
newArrayList
(
trayList
.
split
(
","
));
List
<
String
>
newDisabeldTrayList
=
Lists
.
newArrayList
(
trayList
.
split
(
","
));
for
(
String
disableInfo
:
newDisabeldTrayList
)
{
for
(
String
disableInfo
:
newDisabeldTrayList
)
{
String
[]
disableArr
=
disableInfo
.
split
(
"="
);
String
[]
disableArr
=
disableInfo
.
split
(
"="
);
if
(
disableArr
.
length
==
2
){
if
(
disableArr
.
length
==
2
){
String
trayId
=
disableArr
[
0
];
String
trayId
=
disableArr
[
0
];
String
disableLoc
=
disableArr
[
1
];
String
disableLoc
=
disableArr
[
1
];
disableMap
.
put
(
trayId
,
disableLoc
);
disableMap
.
put
(
trayId
,
disableLoc
);
updateTrayInfo
(
trayId
,
disableLoc
);
updateTrayInfo
(
trayId
,
disableLoc
);
}
}
}
for
(
TrayInfo
trayInfo
:
trayMap
.
values
())
{
}
String
trayId
=
trayInfo
.
getTrayId
();
for
(
TrayInfo
trayInfo
:
trayMap
.
values
())
{
String
disableLoc
=
disableMap
.
get
(
trayId
);
String
trayId
=
trayInfo
.
getTrayId
(
);
if
(
disableLoc
==
null
){
String
disableLoc
=
disableMap
.
get
(
trayId
);
//禁用托盘未包含此托盘,如果之前已经禁用,需要解除禁用
if
(
disableLoc
==
null
){
if
(
Strings
.
isNotBlank
(
trayInfo
.
getDisabledLoc
())){
//禁用托盘未包含此托盘,如果之前已经禁用,需要解除禁用
log
.
info
(
"托盘["
+
trayId
+
"]已启用,去除禁用信息["
+
trayInfo
.
getDisabledLoc
()+
"]"
);
if
(
Strings
.
isNotBlank
(
trayInfo
.
getDisabledLoc
())){
updateTrayInfo
(
trayId
,
"
"
);
log
.
info
(
"托盘["
+
trayId
+
"]已启用,去除禁用信息["
+
trayInfo
.
getDisabledLoc
()+
"]
"
);
}
updateTrayInfo
(
trayId
,
""
);
}
}
}
}
}
}
return
ResultBean
.
newOkResult
(
""
);
return
ResultBean
.
newOkResult
(
""
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
...
myproject/src/main/webapp/WEB-INF/pages/updateHistory.jsp
查看文件 @
07e6981
...
@@ -12,6 +12,23 @@
...
@@ -12,6 +12,23 @@
<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-yellow">
<div class="timeline-time">
<span class="date">2023</span>
<span class="time">2-8</span>
</div>
<div class="timeline-icon">
<i class="fa fa-clock-o"></i>
</div>
<div class="timeline-body">
<h2>版本: V2023020810</h2>
<div class="timeline-content">
<ul>
<li>修正禁用托盘接口BUG</li>
</ul>
</div>
</div>
</li>
<li class="timeline-grey">
<li class="timeline-grey">
<div class="timeline-time">
<div class="timeline-time">
<span class="date">2023</span>
<span class="date">2023</span>
...
...
myproject/src/main/webapp/decorators/metro.jsp
查看文件 @
07e6981
...
@@ -239,7 +239,7 @@
...
@@ -239,7 +239,7 @@
<div
class=
"page-footer-inner"
>
<div
class=
"page-footer-inner"
>
2016
©
<a
href=
"${ctx}/updateHistory.html"
>
SMD BOX
</a>
2016
©
<a
href=
"${ctx}/updateHistory.html"
>
SMD BOX
</a>
</div>
</div>
<span
class=
"right"
style=
"color: #a3a3a3;"
>
Version: V2023020
2
10
</span>
<span
class=
"right"
style=
"color: #a3a3a3;"
>
Version: V2023020
8
10
</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>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论