Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
QisdaNew
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 05d7048e
由
孙克
编写于
2023-11-28 16:42:09 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
Fixed: 从流水线进入料仓验证失败导致物料一直在流水线上空转的问题
1 个父辈
f4c8f165
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
37 行增加
和
4 行删除
myproject/src/main/java/com/myproject/webapp/controller/webService/TaskService.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/TaskService.java
查看文件 @
05d7048
...
@@ -221,7 +221,10 @@ public class TaskService implements ITaskService {
...
@@ -221,7 +221,10 @@ public class TaskService implements ITaskService {
opBarcode
=
barcodeSave
.
getBarcode
();
opBarcode
=
barcodeSave
.
getBarcode
();
//入库时的RFID
//入库时的RFID
String
inRFID
=
statusBean
.
getInRfid
();
String
inRFID
=
statusBean
.
getInRfid
();
verifyBarcodePutIn
(
Lists
.
newArrayList
(
storage
),
barcodeSave
,
inRFID
);
String
posName
=
statusBean
.
getFromData
(
"inPos"
);
//如果指定库位入库, 那么就不需要再次调用佳世达接口验证
boolean
towerCheck
=
!
Strings
.
isNullOrEmpty
(
posName
);
verifyBarcodePutIn
(
Lists
.
newArrayList
(
storage
),
barcodeSave
,
inRFID
,
towerCheck
);
int
w
=
barcodeSave
.
getPlateSize
();
int
w
=
barcodeSave
.
getPlateSize
();
int
h
=
barcodeSave
.
getHeight
();
int
h
=
barcodeSave
.
getHeight
();
...
@@ -251,7 +254,7 @@ public class TaskService implements ITaskService {
...
@@ -251,7 +254,7 @@ public class TaskService implements ITaskService {
log
.
info
(
barcodeSave
.
getBarcode
()
+
" 已有任务,返回任务中的库位:"
+
executingTask
.
getPosName
());
log
.
info
(
barcodeSave
.
getBarcode
()
+
" 已有任务,返回任务中的库位:"
+
executingTask
.
getPosName
());
storagePos
=
storagePosManager
.
get
(
posId
);
storagePos
=
storagePosManager
.
get
(
posId
);
}
else
{
}
else
{
String
posName
=
statusBean
.
getFromData
(
"inPos"
);
if
(!
Strings
.
isNullOrEmpty
(
posName
)){
if
(!
Strings
.
isNullOrEmpty
(
posName
)){
log
.
info
(
barcodeSave
.
getBarcode
()
+
"指定入库到"
+
posName
);
log
.
info
(
barcodeSave
.
getBarcode
()
+
"指定入库到"
+
posName
);
...
@@ -343,10 +346,16 @@ public class TaskService implements ITaskService {
...
@@ -343,10 +346,16 @@ public class TaskService implements ITaskService {
}
}
private
Barcode
verifyBarcodePutIn
(
List
<
Storage
>
storageList
,
Barcode
barcodeSave
,
String
inRFID
)
throws
ValidateException
{
boolean
towerCheck
=
false
;
return
verifyBarcodePutIn
(
storageList
,
barcodeSave
,
inRFID
,
towerCheck
);
}
/**
/**
* 检查二维码是否合法并且可以入库,没问题的话存入到数据库
* 检查二维码是否合法并且可以入库,没问题的话存入到数据库
* towerCheck 表示是否是料仓定时任务验证, 如果是料仓定时任务验证说明在料串上扫码的时候已经验证过,这里就不再到佳世达验证了
*/
*/
private
Barcode
verifyBarcodePutIn
(
List
<
Storage
>
storageList
,
Barcode
barcodeSave
,
String
inRFID
)
throws
ValidateException
{
private
Barcode
verifyBarcodePutIn
(
List
<
Storage
>
storageList
,
Barcode
barcodeSave
,
String
inRFID
,
boolean
towerCheck
)
throws
ValidateException
{
if
(
barcodeSave
==
null
){
if
(
barcodeSave
==
null
){
throw
new
ValidateException
(
"条码无效"
);
throw
new
ValidateException
(
"条码无效"
);
...
@@ -395,6 +404,13 @@ public class TaskService implements ITaskService {
...
@@ -395,6 +404,13 @@ public class TaskService implements ITaskService {
}
}
AppendInfo
appendInfo
=
barcodeSave
.
getAppendInfo
();
AppendInfo
appendInfo
=
barcodeSave
.
getAppendInfo
();
String
oldRfid
=
appendInfo
.
getRfid
();
if
(
towerCheck
&&
!
oldRfid
.
isEmpty
()
&&
oldRfid
.
equals
(
inRFID
)){
//如果保存的RFID与本次验证的RFID是同一个,
return
barcodeSave
;
}
String
oldDnNo
=
appendInfo
.
getDnNo
();
String
oldDnNo
=
appendInfo
.
getDnNo
();
// if(Strings.isNullOrEmpty(oldDnNo)){
// if(Strings.isNullOrEmpty(oldDnNo)){
...
...
myproject/src/main/webapp/WEB-INF/pages/updateHistory.jsp
查看文件 @
05d7048
...
@@ -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-grey">
<div class="timeline-time">
<span class="date">2023</span>
<span class="time">11-28</span>
</div>
<div class="timeline-icon">
<i class="fa fa-clock-o"></i>
</div>
<div class="timeline-body">
<h2>版本: V2023112816</h2>
<div class="timeline-content">
<ul>
Fixed: 从流水线进入料仓验证失败导致物料一直在流水线上空转的问题
</ul>
</div>
</div>
</li>
<li class="timeline-purple">
<li class="timeline-purple">
<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
查看文件 @
05d7048
...
@@ -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: V202311
14
16
</span>
<span
class=
"right"
style=
"color: #a3a3a3;"
>
Version: V202311
28
16
</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
请
注册
或
登录
后发表评论