Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
SmdBox
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 2a6b60e4
由
sunke
编写于
2022-11-14 10:35:51 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
MES设备状态接口增加温湿度字段
1 个父辈
125494c3
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
15 行增加
和
2 行删除
myproject/src/main/java/com/myproject/webapp/controller/webService/MesApiController.java
myproject/src/main/java/com/myproject/webapp/controller/webService/TaskService.java
myproject/src/main/java/com/myproject/webapp/controller/webService/MesApiController.java
查看文件 @
2a6b60e
...
@@ -371,6 +371,8 @@ public class MesApiController extends BaseController {
...
@@ -371,6 +371,8 @@ public class MesApiController extends BaseController {
storageList
.
add
(
storage
);
storageList
.
add
(
storage
);
}
}
String
temperature
=
""
;
String
humidity
=
""
;
List
<
Map
<
String
,
Object
>>
results
=
Lists
.
newArrayList
();
List
<
Map
<
String
,
Object
>>
results
=
Lists
.
newArrayList
();
for
(
Storage
storage
:
storageList
){
for
(
Storage
storage
:
storageList
){
StatusBean
statusBean
=
taskService
.
getStatus
(
storage
.
getCid
());
StatusBean
statusBean
=
taskService
.
getStatus
(
storage
.
getCid
());
...
@@ -380,6 +382,8 @@ public class MesApiController extends BaseController {
...
@@ -380,6 +382,8 @@ public class MesApiController extends BaseController {
BoxStatusBean
boxStatusBean
=
boxStatusMap
.
get
(
1
);
BoxStatusBean
boxStatusBean
=
boxStatusMap
.
get
(
1
);
if
(
boxStatusBean
!=
null
){
if
(
boxStatusBean
!=
null
){
status
=
boxStatusBean
.
getStatus
();
status
=
boxStatusBean
.
getStatus
();
temperature
=
boxStatusBean
.
getTemperature
();
humidity
=
boxStatusBean
.
getHumidity
();
}
}
}
}
int
storageStatus
=
status
;
int
storageStatus
=
status
;
...
@@ -419,6 +423,8 @@ public class MesApiController extends BaseController {
...
@@ -419,6 +423,8 @@ public class MesApiController extends BaseController {
}
}
itemMap
.
put
(
"emptySlot"
,
emptySlotMap
);
itemMap
.
put
(
"emptySlot"
,
emptySlotMap
);
itemMap
.
put
(
"totalSlot"
,
totalSlotMap
);
itemMap
.
put
(
"totalSlot"
,
totalSlotMap
);
itemMap
.
put
(
"temperature"
,
temperature
);
itemMap
.
put
(
"humidity"
,
humidity
);
results
.
add
(
itemMap
);
results
.
add
(
itemMap
);
}
}
return
results
;
return
results
;
...
...
myproject/src/main/java/com/myproject/webapp/controller/webService/TaskService.java
查看文件 @
2a6b60e
...
@@ -1681,7 +1681,14 @@ public class TaskService implements ITaskService {
...
@@ -1681,7 +1681,14 @@ public class TaskService implements ITaskService {
dataCache
.
updateInventory
(
pos
,
barcode
);
dataCache
.
updateInventory
(
pos
,
barcode
);
//dataCache.updateStorage(task.getCid());
//dataCache.updateStorage(task.getCid());
Storage
storage
=
dataCache
.
getStorage
(
task
.
getCid
());
if
(
storage
!=
null
)
{
if
(
DataCache
.
isProductionFor
(
DataCache
.
CUSTOMER
.
PANACIM
))
{
PanaApiController
.
checkInNotification
(
barcode
);
}
else
{
postOutNotification
(
dataCache
.
getSettings
().
getOutNotifyApi
(),
task
.
getBarcode
(),
task
.
getCid
());
}
}
}
}
task
.
setOperator
(
opUser
);
task
.
setOperator
(
opUser
);
...
@@ -1917,7 +1924,7 @@ public class TaskService implements ITaskService {
...
@@ -1917,7 +1924,7 @@ public class TaskService implements ITaskService {
//通知消息
//通知消息
Storage
storage
=
dataCache
.
getStorage
(
task
.
getCid
());
Storage
storage
=
dataCache
.
getStorage
(
task
.
getCid
());
if
(
storage
!=
null
)
{
if
(
storage
!=
null
)
{
if
(
d
ataCache
.
isProductionFor
(
DataCache
.
CUSTOMER
.
PANACIM
))
{
if
(
D
ataCache
.
isProductionFor
(
DataCache
.
CUSTOMER
.
PANACIM
))
{
PanaApiController
.
deliverNotification
(
barcode
);
PanaApiController
.
deliverNotification
(
barcode
);
}
else
{
}
else
{
postOutNotification
(
dataCache
.
getSettings
().
getOutNotifyApi
(),
task
.
getBarcode
(),
task
.
getCid
());
postOutNotification
(
dataCache
.
getSettings
().
getOutNotifyApi
(),
task
.
getBarcode
(),
task
.
getCid
());
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论